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": "dc92207f-695f-43e9-b262-502eebb33769",
"NetworkId": "b852edfb-dc4b-44d7-8f67-b166dd359293",
"NetworkName": "sample string 3",
"Code": "sample string 4",
"Name": "sample string 5",
"Description": "sample string 6",
"SingleUse": true,
"Rechargable": true,
"CurrentAccountMode": 64,
"CurrencyId": "ab5b9fce-b14d-42eb-aa20-3d24e040dd2e",
"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": "696f36d8-a04e-4314-a8b7-5f5c88739292",
"SiteId": "83be3ce6-1765-4025-ad8e-95ae3847201c",
"SiteName": "sample string 2",
"FuelId": "dd45a56a-650a-445f-8f78-a04e989a0a28",
"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": "696f36d8-a04e-4314-a8b7-5f5c88739292",
"SiteId": "83be3ce6-1765-4025-ad8e-95ae3847201c",
"SiteName": "sample string 2",
"FuelId": "dd45a56a-650a-445f-8f78-a04e989a0a28",
"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": "ea14074a-82bb-4d64-84df-6a5289feceb5",
"FuelMasterName": "sample string 2",
"Price": 1.0
},
{
"FuelMasterId": "ea14074a-82bb-4d64-84df-6a5289feceb5",
"FuelMasterName": "sample string 2",
"Price": 1.0
}
],
"Sites": [
{
"SiteId": "97288d39-5654-4dca-b323-09246e59260b",
"SiteName": "sample string 2",
"SiteCode": "sample string 3",
"Fuels": [
{
"FuelMasterId": "ea14074a-82bb-4d64-84df-6a5289feceb5",
"FuelMasterName": "sample string 2",
"Price": 1.0
},
{
"FuelMasterId": "ea14074a-82bb-4d64-84df-6a5289feceb5",
"FuelMasterName": "sample string 2",
"Price": 1.0
}
]
},
{
"SiteId": "97288d39-5654-4dca-b323-09246e59260b",
"SiteName": "sample string 2",
"SiteCode": "sample string 3",
"Fuels": [
{
"FuelMasterId": "ea14074a-82bb-4d64-84df-6a5289feceb5",
"FuelMasterName": "sample string 2",
"Price": 1.0
},
{
"FuelMasterId": "ea14074a-82bb-4d64-84df-6a5289feceb5",
"FuelMasterName": "sample string 2",
"Price": 1.0
}
]
}
],
"Values": [
{
"Id": "9f2cdd5e-0119-489d-aa00-044e3e5c49cb",
"GiftCardProgramId": "720cdb2b-6d47-4697-a57d-6e5a26e48771",
"Value": 3.0
},
{
"Id": "9f2cdd5e-0119-489d-aa00-044e3e5c49cb",
"GiftCardProgramId": "720cdb2b-6d47-4697-a57d-6e5a26e48771",
"Value": 3.0
}
],
"IdentificationsTypesModel": {
"Id": "7ac6c8a3-8ec1-4209-b7cf-2781b5d1ea24",
"NetworkId": "f5fd7401-69db-4b2c-b51f-b949d6ebac58",
"IgnoreTerminalVehicleIdBehavior": true,
"RequirePin": true,
"PinDigits": 1,
"RequiresPINChange": true,
"NotSupportOffline": true
},
"Rule": {
"Id": "3a188ba3-06f5-44fa-8aba-c38dac5365a0",
"NetworkId": "80fe5b08-18ed-4919-8e99-92a38029b7ff",
"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": "086b2e67-3905-485e-a1d7-b817b6123650",
"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>ab5b9fce-b14d-42eb-aa20-3d24e040dd2e</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>dd45a56a-650a-445f-8f78-a04e989a0a28</FuelId>
<FuelName>sample string 3</FuelName>
<Id>696f36d8-a04e-4314-a8b7-5f5c88739292</Id>
<SiteId>83be3ce6-1765-4025-ad8e-95ae3847201c</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>dd45a56a-650a-445f-8f78-a04e989a0a28</FuelId>
<FuelName>sample string 3</FuelName>
<Id>696f36d8-a04e-4314-a8b7-5f5c88739292</Id>
<SiteId>83be3ce6-1765-4025-ad8e-95ae3847201c</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>ea14074a-82bb-4d64-84df-6a5289feceb5</FuelMasterId>
<FuelMasterName>sample string 2</FuelMasterName>
<Price>1</Price>
</GiftCardProgramFuelDto>
<GiftCardProgramFuelDto>
<FuelMasterId>ea14074a-82bb-4d64-84df-6a5289feceb5</FuelMasterId>
<FuelMasterName>sample string 2</FuelMasterName>
<Price>1</Price>
</GiftCardProgramFuelDto>
</Fuels>
<Id>dc92207f-695f-43e9-b262-502eebb33769</Id>
<IdentificationsTypesModel>
<Id>7ac6c8a3-8ec1-4209-b7cf-2781b5d1ea24</Id>
<IgnoreTerminalVehicleIdBehavior>true</IgnoreTerminalVehicleIdBehavior>
<NetworkId>f5fd7401-69db-4b2c-b51f-b949d6ebac58</NetworkId>
<NotSupportOffline>true</NotSupportOffline>
<PinDigits>1</PinDigits>
<RequirePin>true</RequirePin>
<RequiresPINChange>true</RequiresPINChange>
</IdentificationsTypesModel>
<Name>sample string 5</Name>
<NetworkId>b852edfb-dc4b-44d7-8f67-b166dd359293</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>3a188ba3-06f5-44fa-8aba-c38dac5365a0</Id>
<MiscellaneousReprompt>true</MiscellaneousReprompt>
<NetworkId>80fe5b08-18ed-4919-8e99-92a38029b7ff</NetworkId>
<NetworkName>sample string 2</NetworkName>
<OdometerMaxVariation>1</OdometerMaxVariation>
<OdometerMinVariation>1</OdometerMinVariation>
<OdometerReprompt>true</OdometerReprompt>
<Owner>64</Owner>
<ProgramDescription>sample string 15</ProgramDescription>
<ProgramId>086b2e67-3905-485e-a1d7-b817b6123650</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>ea14074a-82bb-4d64-84df-6a5289feceb5</FuelMasterId>
<FuelMasterName>sample string 2</FuelMasterName>
<Price>1</Price>
</GiftCardProgramFuelDto>
<GiftCardProgramFuelDto>
<FuelMasterId>ea14074a-82bb-4d64-84df-6a5289feceb5</FuelMasterId>
<FuelMasterName>sample string 2</FuelMasterName>
<Price>1</Price>
</GiftCardProgramFuelDto>
</Fuels>
<SiteCode>sample string 3</SiteCode>
<SiteId>97288d39-5654-4dca-b323-09246e59260b</SiteId>
<SiteName>sample string 2</SiteName>
</GiftCardProgramSiteDto>
<GiftCardProgramSiteDto>
<Fuels>
<GiftCardProgramFuelDto>
<FuelMasterId>ea14074a-82bb-4d64-84df-6a5289feceb5</FuelMasterId>
<FuelMasterName>sample string 2</FuelMasterName>
<Price>1</Price>
</GiftCardProgramFuelDto>
<GiftCardProgramFuelDto>
<FuelMasterId>ea14074a-82bb-4d64-84df-6a5289feceb5</FuelMasterId>
<FuelMasterName>sample string 2</FuelMasterName>
<Price>1</Price>
</GiftCardProgramFuelDto>
</Fuels>
<SiteCode>sample string 3</SiteCode>
<SiteId>97288d39-5654-4dca-b323-09246e59260b</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>720cdb2b-6d47-4697-a57d-6e5a26e48771</GiftCardProgramId>
<Id>9f2cdd5e-0119-489d-aa00-044e3e5c49cb</Id>
<Value>3</Value>
</GiftCardProgramValueDto>
<GiftCardProgramValueDto>
<GiftCardProgramId>720cdb2b-6d47-4697-a57d-6e5a26e48771</GiftCardProgramId>
<Id>9f2cdd5e-0119-489d-aa00-044e3e5c49cb</Id>
<Value>3</Value>
</GiftCardProgramValueDto>
</Values>
</GiftCardProgramDto>