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": "d26f6195-5cd5-4c95-80fa-115ca67d7737",
"NetworkId": "e04e2180-24d3-44f0-b45b-593a1c1f6807",
"NetworkName": "sample string 3",
"Code": "sample string 4",
"Name": "sample string 5",
"Description": "sample string 6",
"SingleUse": true,
"Rechargable": true,
"CurrentAccountMode": 64,
"CurrencyId": "316896d7-a854-46e0-98b7-14918ca5f395",
"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": "661e014e-4b5a-4198-8eb4-f7ca6fcad1bc",
"SiteId": "d16e8a52-9c36-400e-8ca6-2cc7a82163e2",
"SiteName": "sample string 2",
"FuelId": "69b96a69-83ee-4b18-ae10-47fe2e53d193",
"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": "661e014e-4b5a-4198-8eb4-f7ca6fcad1bc",
"SiteId": "d16e8a52-9c36-400e-8ca6-2cc7a82163e2",
"SiteName": "sample string 2",
"FuelId": "69b96a69-83ee-4b18-ae10-47fe2e53d193",
"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": "c47198f5-6f61-4ed3-ae04-343f3f107082",
"FuelMasterName": "sample string 2",
"Price": 1.0
},
{
"FuelMasterId": "c47198f5-6f61-4ed3-ae04-343f3f107082",
"FuelMasterName": "sample string 2",
"Price": 1.0
}
],
"Sites": [
{
"SiteId": "cfd3295d-7253-4bc0-b02c-bb32b158ff01",
"SiteName": "sample string 2",
"SiteCode": "sample string 3",
"Fuels": [
{
"FuelMasterId": "c47198f5-6f61-4ed3-ae04-343f3f107082",
"FuelMasterName": "sample string 2",
"Price": 1.0
},
{
"FuelMasterId": "c47198f5-6f61-4ed3-ae04-343f3f107082",
"FuelMasterName": "sample string 2",
"Price": 1.0
}
]
},
{
"SiteId": "cfd3295d-7253-4bc0-b02c-bb32b158ff01",
"SiteName": "sample string 2",
"SiteCode": "sample string 3",
"Fuels": [
{
"FuelMasterId": "c47198f5-6f61-4ed3-ae04-343f3f107082",
"FuelMasterName": "sample string 2",
"Price": 1.0
},
{
"FuelMasterId": "c47198f5-6f61-4ed3-ae04-343f3f107082",
"FuelMasterName": "sample string 2",
"Price": 1.0
}
]
}
],
"Values": [
{
"Id": "817ac946-36a5-457d-904c-cb5fd7a903e7",
"GiftCardProgramId": "40d21e2f-173d-4f12-8b1a-a8265afb8fed",
"Value": 3.0
},
{
"Id": "817ac946-36a5-457d-904c-cb5fd7a903e7",
"GiftCardProgramId": "40d21e2f-173d-4f12-8b1a-a8265afb8fed",
"Value": 3.0
}
],
"IdentificationsTypesModel": {
"Id": "a2c90f7d-37fc-40f5-87e8-dab5c054fcc4",
"NetworkId": "ade056a6-47c8-41c5-8de2-97dd1b11027a",
"IgnoreTerminalVehicleIdBehavior": true,
"RequirePin": true,
"PinDigits": 1,
"RequiresPINChange": true,
"NotSupportOffline": true
},
"Rule": {
"Id": "8843bd49-b072-4d93-b92d-9e3c6542e008",
"NetworkId": "cfe69b35-f384-4020-9715-3618a79cfb24",
"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": "d6da86f6-b9cd-4d41-ba97-8ad0e776c58c",
"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>316896d7-a854-46e0-98b7-14918ca5f395</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>69b96a69-83ee-4b18-ae10-47fe2e53d193</FuelId>
<FuelName>sample string 3</FuelName>
<Id>661e014e-4b5a-4198-8eb4-f7ca6fcad1bc</Id>
<SiteId>d16e8a52-9c36-400e-8ca6-2cc7a82163e2</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>69b96a69-83ee-4b18-ae10-47fe2e53d193</FuelId>
<FuelName>sample string 3</FuelName>
<Id>661e014e-4b5a-4198-8eb4-f7ca6fcad1bc</Id>
<SiteId>d16e8a52-9c36-400e-8ca6-2cc7a82163e2</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>c47198f5-6f61-4ed3-ae04-343f3f107082</FuelMasterId>
<FuelMasterName>sample string 2</FuelMasterName>
<Price>1</Price>
</GiftCardProgramFuelDto>
<GiftCardProgramFuelDto>
<FuelMasterId>c47198f5-6f61-4ed3-ae04-343f3f107082</FuelMasterId>
<FuelMasterName>sample string 2</FuelMasterName>
<Price>1</Price>
</GiftCardProgramFuelDto>
</Fuels>
<Id>d26f6195-5cd5-4c95-80fa-115ca67d7737</Id>
<IdentificationsTypesModel>
<Id>a2c90f7d-37fc-40f5-87e8-dab5c054fcc4</Id>
<IgnoreTerminalVehicleIdBehavior>true</IgnoreTerminalVehicleIdBehavior>
<NetworkId>ade056a6-47c8-41c5-8de2-97dd1b11027a</NetworkId>
<NotSupportOffline>true</NotSupportOffline>
<PinDigits>1</PinDigits>
<RequirePin>true</RequirePin>
<RequiresPINChange>true</RequiresPINChange>
</IdentificationsTypesModel>
<Name>sample string 5</Name>
<NetworkId>e04e2180-24d3-44f0-b45b-593a1c1f6807</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>8843bd49-b072-4d93-b92d-9e3c6542e008</Id>
<MiscellaneousReprompt>true</MiscellaneousReprompt>
<NetworkId>cfe69b35-f384-4020-9715-3618a79cfb24</NetworkId>
<NetworkName>sample string 2</NetworkName>
<OdometerMaxVariation>1</OdometerMaxVariation>
<OdometerMinVariation>1</OdometerMinVariation>
<OdometerReprompt>true</OdometerReprompt>
<Owner>64</Owner>
<ProgramDescription>sample string 15</ProgramDescription>
<ProgramId>d6da86f6-b9cd-4d41-ba97-8ad0e776c58c</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>c47198f5-6f61-4ed3-ae04-343f3f107082</FuelMasterId>
<FuelMasterName>sample string 2</FuelMasterName>
<Price>1</Price>
</GiftCardProgramFuelDto>
<GiftCardProgramFuelDto>
<FuelMasterId>c47198f5-6f61-4ed3-ae04-343f3f107082</FuelMasterId>
<FuelMasterName>sample string 2</FuelMasterName>
<Price>1</Price>
</GiftCardProgramFuelDto>
</Fuels>
<SiteCode>sample string 3</SiteCode>
<SiteId>cfd3295d-7253-4bc0-b02c-bb32b158ff01</SiteId>
<SiteName>sample string 2</SiteName>
</GiftCardProgramSiteDto>
<GiftCardProgramSiteDto>
<Fuels>
<GiftCardProgramFuelDto>
<FuelMasterId>c47198f5-6f61-4ed3-ae04-343f3f107082</FuelMasterId>
<FuelMasterName>sample string 2</FuelMasterName>
<Price>1</Price>
</GiftCardProgramFuelDto>
<GiftCardProgramFuelDto>
<FuelMasterId>c47198f5-6f61-4ed3-ae04-343f3f107082</FuelMasterId>
<FuelMasterName>sample string 2</FuelMasterName>
<Price>1</Price>
</GiftCardProgramFuelDto>
</Fuels>
<SiteCode>sample string 3</SiteCode>
<SiteId>cfd3295d-7253-4bc0-b02c-bb32b158ff01</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>40d21e2f-173d-4f12-8b1a-a8265afb8fed</GiftCardProgramId>
<Id>817ac946-36a5-457d-904c-cb5fd7a903e7</Id>
<Value>3</Value>
</GiftCardProgramValueDto>
<GiftCardProgramValueDto>
<GiftCardProgramId>40d21e2f-173d-4f12-8b1a-a8265afb8fed</GiftCardProgramId>
<Id>817ac946-36a5-457d-904c-cb5fd7a903e7</Id>
<Value>3</Value>
</GiftCardProgramValueDto>
</Values>
</GiftCardProgramDto>