GET GiftCardPrograms/{id}
Gets a giftCardProgram by it's ID, represented as GiftCardProgramDto.
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| id |
The ID of the giftCardProgram. |
globally unique identifier |
Required |
Body Parameters
None.
Response Information
Resource Description
The giftCardProgram data.
GiftCardProgramDto| Name | Description | Type | Additional information |
|---|---|---|---|
| Id | globally unique identifier |
None. |
|
| NetworkId | globally unique identifier |
None. |
|
| NetworkName | string |
None. |
|
| Code | string |
None. |
|
| Name | string |
None. |
|
| Description | string |
None. |
|
| SingleUse | boolean |
None. |
|
| Rechargable | boolean |
None. |
|
| CurrentAccountMode | byte |
None. |
|
| CurrencyId | globally unique identifier |
None. |
|
| CurrencyCode | string |
None. |
|
| Periodicity | byte |
None. |
|
| Duration | integer |
None. |
|
| StartDate | string |
None. |
|
| ValidateSites | boolean |
None. |
|
| ValidateExpirationDate | boolean |
None. |
|
| UseCreationDateOnExpirationStrategy | boolean |
None. |
|
| ActiveCards | boolean |
None. |
|
| CardPeriodicity | byte |
None. |
|
| CardDuration | integer |
None. |
|
| BINRange | string |
None. |
|
| Discounts | Collection of GiftCardProgramDiscountDto |
None. |
|
| Fuels | Collection of GiftCardProgramFuelDto |
None. |
|
| Sites | Collection of GiftCardProgramSiteDto |
None. |
|
| Values | Collection of GiftCardProgramValueDto |
None. |
|
| IdentificationsTypesModel | GiftCardProgramIdentificationTypeModelDto |
None. |
|
| Rule | GiftCardProgramRuleDto |
None. |
Response Formats
application/json, text/json
Sample:
{
"Id": "5c08cd71-88f8-4b17-b2a2-e7a4681ec084",
"NetworkId": "595c6b59-355a-4b62-bc7e-6d842ccb1a4c",
"NetworkName": "sample string 3",
"Code": "sample string 4",
"Name": "sample string 5",
"Description": "sample string 6",
"SingleUse": true,
"Rechargable": true,
"CurrentAccountMode": 64,
"CurrencyId": "7cc2529b-f16e-41c3-a3e7-f0335cd57a0d",
"CurrencyCode": "sample string 11",
"Periodicity": 64,
"Duration": 13,
"StartDate": "sample string 14",
"ValidateSites": true,
"ValidateExpirationDate": true,
"UseCreationDateOnExpirationStrategy": true,
"ActiveCards": true,
"CardPeriodicity": 64,
"CardDuration": 1,
"BINRange": "sample string 19",
"Discounts": [
{
"Id": "1ba90ae0-836c-40a6-a2a3-db6e38867d87",
"SiteId": "d5f97c0b-77ce-4c3d-80d5-461ecdcc1a1c",
"SiteName": "sample string 2",
"FuelId": "41d8d8fd-9448-4634-b0b8-95a5e78914e1",
"FuelName": "sample string 3",
"Type": 64,
"TypeName": "sample string 5",
"Value": 6.0,
"DateFrom": "sample string 7",
"TimeFrom": "sample string 8",
"DateTo": "sample string 9",
"TimeTo": "sample string 10",
"State": 64,
"Description": "sample string 12"
},
{
"Id": "1ba90ae0-836c-40a6-a2a3-db6e38867d87",
"SiteId": "d5f97c0b-77ce-4c3d-80d5-461ecdcc1a1c",
"SiteName": "sample string 2",
"FuelId": "41d8d8fd-9448-4634-b0b8-95a5e78914e1",
"FuelName": "sample string 3",
"Type": 64,
"TypeName": "sample string 5",
"Value": 6.0,
"DateFrom": "sample string 7",
"TimeFrom": "sample string 8",
"DateTo": "sample string 9",
"TimeTo": "sample string 10",
"State": 64,
"Description": "sample string 12"
}
],
"Fuels": [
{
"FuelMasterId": "902610a5-c5dd-4647-8ddf-b4fcf32e9c67",
"FuelMasterName": "sample string 2",
"Price": 1.0
},
{
"FuelMasterId": "902610a5-c5dd-4647-8ddf-b4fcf32e9c67",
"FuelMasterName": "sample string 2",
"Price": 1.0
}
],
"Sites": [
{
"SiteId": "0391de9f-a53d-4fc9-b3b7-7dd2a9034399",
"SiteName": "sample string 2",
"SiteCode": "sample string 3",
"Fuels": [
{
"FuelMasterId": "902610a5-c5dd-4647-8ddf-b4fcf32e9c67",
"FuelMasterName": "sample string 2",
"Price": 1.0
},
{
"FuelMasterId": "902610a5-c5dd-4647-8ddf-b4fcf32e9c67",
"FuelMasterName": "sample string 2",
"Price": 1.0
}
]
},
{
"SiteId": "0391de9f-a53d-4fc9-b3b7-7dd2a9034399",
"SiteName": "sample string 2",
"SiteCode": "sample string 3",
"Fuels": [
{
"FuelMasterId": "902610a5-c5dd-4647-8ddf-b4fcf32e9c67",
"FuelMasterName": "sample string 2",
"Price": 1.0
},
{
"FuelMasterId": "902610a5-c5dd-4647-8ddf-b4fcf32e9c67",
"FuelMasterName": "sample string 2",
"Price": 1.0
}
]
}
],
"Values": [
{
"Id": "8e358d79-def5-49b4-ae8b-f0b7f26ab8b3",
"GiftCardProgramId": "83f9c206-0fbc-4c9b-81e7-249a74ae8c97",
"Value": 3.0
},
{
"Id": "8e358d79-def5-49b4-ae8b-f0b7f26ab8b3",
"GiftCardProgramId": "83f9c206-0fbc-4c9b-81e7-249a74ae8c97",
"Value": 3.0
}
],
"IdentificationsTypesModel": {
"Id": "803054a5-d0c0-46a3-81a4-f8ac5e877501",
"NetworkId": "ae5b1343-ad2e-4c5d-8ab0-81eb156a77a4",
"IgnoreTerminalVehicleIdBehavior": true,
"RequirePin": true,
"PinDigits": 1,
"RequiresPINChange": true,
"NotSupportOffline": true
},
"Rule": {
"Id": "965ed149-a453-4964-b998-3b6463890942",
"NetworkId": "2c1fa4d8-a9e7-4fad-8b01-4b5ad892241e",
"NetworkName": "sample string 2",
"Retries": 1,
"VehiclePINReprompt": true,
"SecondaryTrackReprompt": true,
"MiscellaneousReprompt": true,
"OdometerReprompt": true,
"OdometerMinVariation": 1,
"OdometerMaxVariation": 1,
"EngineHoursReprompt": true,
"EngineHoursMinVariation": 1,
"EngineHoursMaxVariation": 1,
"RuleType": 1,
"Description": "sample string 8",
"DriverIdReprompt": true,
"DriverPINReprompt": true,
"TruckUnitNumberReprompt": true,
"TrailerNumberReprompt": true,
"Owner": 64,
"RuleTypeDescription": "sample string 14",
"ProgramId": "bdb6f900-d0ae-429a-9ed0-a82c6ed9932c",
"ProgramDescription": "sample string 15",
"VehicleIdReprompt": true,
"SecondaryTrack": true
}
}
application/xml, text/xml
Sample:
<GiftCardProgramDto xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Ationet.Model">
<ActiveCards>true</ActiveCards>
<BINRange>sample string 19</BINRange>
<CardDuration>1</CardDuration>
<CardPeriodicity>64</CardPeriodicity>
<Code>sample string 4</Code>
<CurrencyCode>sample string 11</CurrencyCode>
<CurrencyId>7cc2529b-f16e-41c3-a3e7-f0335cd57a0d</CurrencyId>
<CurrentAccountMode>64</CurrentAccountMode>
<Description>sample string 6</Description>
<Discounts>
<GiftCardProgramDiscountDto>
<DateFrom>sample string 7</DateFrom>
<DateTo>sample string 9</DateTo>
<Description>sample string 12</Description>
<FuelId>41d8d8fd-9448-4634-b0b8-95a5e78914e1</FuelId>
<FuelName>sample string 3</FuelName>
<Id>1ba90ae0-836c-40a6-a2a3-db6e38867d87</Id>
<SiteId>d5f97c0b-77ce-4c3d-80d5-461ecdcc1a1c</SiteId>
<SiteName>sample string 2</SiteName>
<State>64</State>
<TimeFrom>sample string 8</TimeFrom>
<TimeTo>sample string 10</TimeTo>
<Type>64</Type>
<TypeName>sample string 5</TypeName>
<Value>6</Value>
</GiftCardProgramDiscountDto>
<GiftCardProgramDiscountDto>
<DateFrom>sample string 7</DateFrom>
<DateTo>sample string 9</DateTo>
<Description>sample string 12</Description>
<FuelId>41d8d8fd-9448-4634-b0b8-95a5e78914e1</FuelId>
<FuelName>sample string 3</FuelName>
<Id>1ba90ae0-836c-40a6-a2a3-db6e38867d87</Id>
<SiteId>d5f97c0b-77ce-4c3d-80d5-461ecdcc1a1c</SiteId>
<SiteName>sample string 2</SiteName>
<State>64</State>
<TimeFrom>sample string 8</TimeFrom>
<TimeTo>sample string 10</TimeTo>
<Type>64</Type>
<TypeName>sample string 5</TypeName>
<Value>6</Value>
</GiftCardProgramDiscountDto>
</Discounts>
<Duration>13</Duration>
<Fuels>
<GiftCardProgramFuelDto>
<FuelMasterId>902610a5-c5dd-4647-8ddf-b4fcf32e9c67</FuelMasterId>
<FuelMasterName>sample string 2</FuelMasterName>
<Price>1</Price>
</GiftCardProgramFuelDto>
<GiftCardProgramFuelDto>
<FuelMasterId>902610a5-c5dd-4647-8ddf-b4fcf32e9c67</FuelMasterId>
<FuelMasterName>sample string 2</FuelMasterName>
<Price>1</Price>
</GiftCardProgramFuelDto>
</Fuels>
<Id>5c08cd71-88f8-4b17-b2a2-e7a4681ec084</Id>
<IdentificationsTypesModel>
<Id>803054a5-d0c0-46a3-81a4-f8ac5e877501</Id>
<IgnoreTerminalVehicleIdBehavior>true</IgnoreTerminalVehicleIdBehavior>
<NetworkId>ae5b1343-ad2e-4c5d-8ab0-81eb156a77a4</NetworkId>
<NotSupportOffline>true</NotSupportOffline>
<PinDigits>1</PinDigits>
<RequirePin>true</RequirePin>
<RequiresPINChange>true</RequiresPINChange>
</IdentificationsTypesModel>
<Name>sample string 5</Name>
<NetworkId>595c6b59-355a-4b62-bc7e-6d842ccb1a4c</NetworkId>
<NetworkName>sample string 3</NetworkName>
<Periodicity>64</Periodicity>
<Rechargable>true</Rechargable>
<Rule>
<Description>sample string 8</Description>
<DriverIdReprompt>true</DriverIdReprompt>
<DriverPINReprompt>true</DriverPINReprompt>
<EngineHoursMaxVariation>1</EngineHoursMaxVariation>
<EngineHoursMinVariation>1</EngineHoursMinVariation>
<EngineHoursReprompt>true</EngineHoursReprompt>
<Id>965ed149-a453-4964-b998-3b6463890942</Id>
<MiscellaneousReprompt>true</MiscellaneousReprompt>
<NetworkId>2c1fa4d8-a9e7-4fad-8b01-4b5ad892241e</NetworkId>
<NetworkName>sample string 2</NetworkName>
<OdometerMaxVariation>1</OdometerMaxVariation>
<OdometerMinVariation>1</OdometerMinVariation>
<OdometerReprompt>true</OdometerReprompt>
<Owner>64</Owner>
<ProgramDescription>sample string 15</ProgramDescription>
<ProgramId>bdb6f900-d0ae-429a-9ed0-a82c6ed9932c</ProgramId>
<Retries>1</Retries>
<RuleType>1</RuleType>
<RuleTypeDescription>sample string 14</RuleTypeDescription>
<SecondaryTrack>true</SecondaryTrack>
<SecondaryTrackReprompt>true</SecondaryTrackReprompt>
<TrailerNumberReprompt>true</TrailerNumberReprompt>
<TruckUnitNumberReprompt>true</TruckUnitNumberReprompt>
<VehicleIdReprompt>true</VehicleIdReprompt>
<VehiclePINReprompt>true</VehiclePINReprompt>
</Rule>
<SingleUse>true</SingleUse>
<Sites>
<GiftCardProgramSiteDto>
<Fuels>
<GiftCardProgramFuelDto>
<FuelMasterId>902610a5-c5dd-4647-8ddf-b4fcf32e9c67</FuelMasterId>
<FuelMasterName>sample string 2</FuelMasterName>
<Price>1</Price>
</GiftCardProgramFuelDto>
<GiftCardProgramFuelDto>
<FuelMasterId>902610a5-c5dd-4647-8ddf-b4fcf32e9c67</FuelMasterId>
<FuelMasterName>sample string 2</FuelMasterName>
<Price>1</Price>
</GiftCardProgramFuelDto>
</Fuels>
<SiteCode>sample string 3</SiteCode>
<SiteId>0391de9f-a53d-4fc9-b3b7-7dd2a9034399</SiteId>
<SiteName>sample string 2</SiteName>
</GiftCardProgramSiteDto>
<GiftCardProgramSiteDto>
<Fuels>
<GiftCardProgramFuelDto>
<FuelMasterId>902610a5-c5dd-4647-8ddf-b4fcf32e9c67</FuelMasterId>
<FuelMasterName>sample string 2</FuelMasterName>
<Price>1</Price>
</GiftCardProgramFuelDto>
<GiftCardProgramFuelDto>
<FuelMasterId>902610a5-c5dd-4647-8ddf-b4fcf32e9c67</FuelMasterId>
<FuelMasterName>sample string 2</FuelMasterName>
<Price>1</Price>
</GiftCardProgramFuelDto>
</Fuels>
<SiteCode>sample string 3</SiteCode>
<SiteId>0391de9f-a53d-4fc9-b3b7-7dd2a9034399</SiteId>
<SiteName>sample string 2</SiteName>
</GiftCardProgramSiteDto>
</Sites>
<StartDate>sample string 14</StartDate>
<UseCreationDateOnExpirationStrategy>true</UseCreationDateOnExpirationStrategy>
<ValidateExpirationDate>true</ValidateExpirationDate>
<ValidateSites>true</ValidateSites>
<Values>
<GiftCardProgramValueDto>
<GiftCardProgramId>83f9c206-0fbc-4c9b-81e7-249a74ae8c97</GiftCardProgramId>
<Id>8e358d79-def5-49b4-ae8b-f0b7f26ab8b3</Id>
<Value>3</Value>
</GiftCardProgramValueDto>
<GiftCardProgramValueDto>
<GiftCardProgramId>83f9c206-0fbc-4c9b-81e7-249a74ae8c97</GiftCardProgramId>
<Id>8e358d79-def5-49b4-ae8b-f0b7f26ab8b3</Id>
<Value>3</Value>
</GiftCardProgramValueDto>
</Values>
</GiftCardProgramDto>