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. |
|
| SupportsDryProducts | 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": "34e1b4b6-d1e4-4dd8-a974-d1b56676d62f",
"NetworkId": "270281d4-7f12-40d3-9a68-a68af4829e12",
"NetworkName": "sample string 3",
"Code": "sample string 4",
"Name": "sample string 5",
"Description": "sample string 6",
"SingleUse": true,
"Rechargable": true,
"CurrentAccountMode": 64,
"CurrencyId": "3f2753f3-df6b-4720-9b6b-1c55e8e79759",
"CurrencyCode": "sample string 11",
"Periodicity": 64,
"Duration": 13,
"StartDate": "sample string 14",
"ValidateSites": true,
"SupportsDryProducts": true,
"ValidateExpirationDate": true,
"UseCreationDateOnExpirationStrategy": true,
"ActiveCards": true,
"CardPeriodicity": 64,
"CardDuration": 1,
"BINRange": "sample string 20",
"Discounts": [
{
"Id": "5b3b4b68-2a61-4118-a705-4fff65414f2a",
"SiteId": "c1d12747-db37-43b3-849f-94241e279eb4",
"SiteName": "sample string 2",
"FuelId": "5fe54591-e302-463a-b1cc-525342db8ec2",
"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": "5b3b4b68-2a61-4118-a705-4fff65414f2a",
"SiteId": "c1d12747-db37-43b3-849f-94241e279eb4",
"SiteName": "sample string 2",
"FuelId": "5fe54591-e302-463a-b1cc-525342db8ec2",
"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": "7d6e2792-81a1-4b50-b819-5e2913d50726",
"FuelMasterName": "sample string 2",
"Price": 1.0
},
{
"FuelMasterId": "7d6e2792-81a1-4b50-b819-5e2913d50726",
"FuelMasterName": "sample string 2",
"Price": 1.0
}
],
"Sites": [
{
"SiteId": "23073c29-9ae8-4828-aab7-340ee7380a95",
"SiteName": "sample string 2",
"SiteCode": "sample string 3",
"Fuels": [
{
"FuelMasterId": "7d6e2792-81a1-4b50-b819-5e2913d50726",
"FuelMasterName": "sample string 2",
"Price": 1.0
},
{
"FuelMasterId": "7d6e2792-81a1-4b50-b819-5e2913d50726",
"FuelMasterName": "sample string 2",
"Price": 1.0
}
]
},
{
"SiteId": "23073c29-9ae8-4828-aab7-340ee7380a95",
"SiteName": "sample string 2",
"SiteCode": "sample string 3",
"Fuels": [
{
"FuelMasterId": "7d6e2792-81a1-4b50-b819-5e2913d50726",
"FuelMasterName": "sample string 2",
"Price": 1.0
},
{
"FuelMasterId": "7d6e2792-81a1-4b50-b819-5e2913d50726",
"FuelMasterName": "sample string 2",
"Price": 1.0
}
]
}
],
"Values": [
{
"Id": "e65ba18f-b86e-40e6-a9c6-76c9526775cd",
"GiftCardProgramId": "3a417aff-4cf4-471f-ae91-f30989cbaa03",
"Value": 3.0
},
{
"Id": "e65ba18f-b86e-40e6-a9c6-76c9526775cd",
"GiftCardProgramId": "3a417aff-4cf4-471f-ae91-f30989cbaa03",
"Value": 3.0
}
],
"IdentificationsTypesModel": {
"Id": "25f0d8ac-d04f-437e-84cf-b54f6e7f299c",
"NetworkId": "3ebcb593-9513-4173-a7d4-691ba20d606d",
"IgnoreTerminalVehicleIdBehavior": true,
"RequirePin": true,
"PinDigits": 1,
"RequiresPINChange": true,
"NotSupportOffline": true
},
"Rule": {
"Id": "59d38cc8-0397-4641-bb09-207b54d25b29",
"NetworkId": "a697c49d-de6f-4ee7-bfbe-533574082e9a",
"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": "d6b64043-5176-42e2-a4f9-ee277d589d67",
"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 20</BINRange>
<CardDuration>1</CardDuration>
<CardPeriodicity>64</CardPeriodicity>
<Code>sample string 4</Code>
<CurrencyCode>sample string 11</CurrencyCode>
<CurrencyId>3f2753f3-df6b-4720-9b6b-1c55e8e79759</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>5fe54591-e302-463a-b1cc-525342db8ec2</FuelId>
<FuelName>sample string 3</FuelName>
<Id>5b3b4b68-2a61-4118-a705-4fff65414f2a</Id>
<SiteId>c1d12747-db37-43b3-849f-94241e279eb4</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>5fe54591-e302-463a-b1cc-525342db8ec2</FuelId>
<FuelName>sample string 3</FuelName>
<Id>5b3b4b68-2a61-4118-a705-4fff65414f2a</Id>
<SiteId>c1d12747-db37-43b3-849f-94241e279eb4</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>7d6e2792-81a1-4b50-b819-5e2913d50726</FuelMasterId>
<FuelMasterName>sample string 2</FuelMasterName>
<Price>1</Price>
</GiftCardProgramFuelDto>
<GiftCardProgramFuelDto>
<FuelMasterId>7d6e2792-81a1-4b50-b819-5e2913d50726</FuelMasterId>
<FuelMasterName>sample string 2</FuelMasterName>
<Price>1</Price>
</GiftCardProgramFuelDto>
</Fuels>
<Id>34e1b4b6-d1e4-4dd8-a974-d1b56676d62f</Id>
<IdentificationsTypesModel>
<Id>25f0d8ac-d04f-437e-84cf-b54f6e7f299c</Id>
<IgnoreTerminalVehicleIdBehavior>true</IgnoreTerminalVehicleIdBehavior>
<NetworkId>3ebcb593-9513-4173-a7d4-691ba20d606d</NetworkId>
<NotSupportOffline>true</NotSupportOffline>
<PinDigits>1</PinDigits>
<RequirePin>true</RequirePin>
<RequiresPINChange>true</RequiresPINChange>
</IdentificationsTypesModel>
<Name>sample string 5</Name>
<NetworkId>270281d4-7f12-40d3-9a68-a68af4829e12</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>59d38cc8-0397-4641-bb09-207b54d25b29</Id>
<MiscellaneousReprompt>true</MiscellaneousReprompt>
<NetworkId>a697c49d-de6f-4ee7-bfbe-533574082e9a</NetworkId>
<NetworkName>sample string 2</NetworkName>
<OdometerMaxVariation>1</OdometerMaxVariation>
<OdometerMinVariation>1</OdometerMinVariation>
<OdometerReprompt>true</OdometerReprompt>
<Owner>64</Owner>
<ProgramDescription>sample string 15</ProgramDescription>
<ProgramId>d6b64043-5176-42e2-a4f9-ee277d589d67</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>7d6e2792-81a1-4b50-b819-5e2913d50726</FuelMasterId>
<FuelMasterName>sample string 2</FuelMasterName>
<Price>1</Price>
</GiftCardProgramFuelDto>
<GiftCardProgramFuelDto>
<FuelMasterId>7d6e2792-81a1-4b50-b819-5e2913d50726</FuelMasterId>
<FuelMasterName>sample string 2</FuelMasterName>
<Price>1</Price>
</GiftCardProgramFuelDto>
</Fuels>
<SiteCode>sample string 3</SiteCode>
<SiteId>23073c29-9ae8-4828-aab7-340ee7380a95</SiteId>
<SiteName>sample string 2</SiteName>
</GiftCardProgramSiteDto>
<GiftCardProgramSiteDto>
<Fuels>
<GiftCardProgramFuelDto>
<FuelMasterId>7d6e2792-81a1-4b50-b819-5e2913d50726</FuelMasterId>
<FuelMasterName>sample string 2</FuelMasterName>
<Price>1</Price>
</GiftCardProgramFuelDto>
<GiftCardProgramFuelDto>
<FuelMasterId>7d6e2792-81a1-4b50-b819-5e2913d50726</FuelMasterId>
<FuelMasterName>sample string 2</FuelMasterName>
<Price>1</Price>
</GiftCardProgramFuelDto>
</Fuels>
<SiteCode>sample string 3</SiteCode>
<SiteId>23073c29-9ae8-4828-aab7-340ee7380a95</SiteId>
<SiteName>sample string 2</SiteName>
</GiftCardProgramSiteDto>
</Sites>
<StartDate>sample string 14</StartDate>
<SupportsDryProducts>true</SupportsDryProducts>
<UseCreationDateOnExpirationStrategy>true</UseCreationDateOnExpirationStrategy>
<ValidateExpirationDate>true</ValidateExpirationDate>
<ValidateSites>true</ValidateSites>
<Values>
<GiftCardProgramValueDto>
<GiftCardProgramId>3a417aff-4cf4-471f-ae91-f30989cbaa03</GiftCardProgramId>
<Id>e65ba18f-b86e-40e6-a9c6-76c9526775cd</Id>
<Value>3</Value>
</GiftCardProgramValueDto>
<GiftCardProgramValueDto>
<GiftCardProgramId>3a417aff-4cf4-471f-ae91-f30989cbaa03</GiftCardProgramId>
<Id>e65ba18f-b86e-40e6-a9c6-76c9526775cd</Id>
<Value>3</Value>
</GiftCardProgramValueDto>
</Values>
</GiftCardProgramDto>