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": "28a4a648-8923-46ba-8598-64dcf4df1dbe",
"NetworkId": "190ff545-d07a-4eaa-8fab-4ce678215280",
"NetworkName": "sample string 3",
"Code": "sample string 4",
"Name": "sample string 5",
"Description": "sample string 6",
"SingleUse": true,
"Rechargable": true,
"CurrentAccountMode": 64,
"CurrencyId": "12397c23-6d08-4f30-b317-bdfcdf25f41d",
"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": "8d1a160b-8cf3-42a3-888a-a844554968da",
"SiteId": "cf92d297-fe22-4c7f-8af4-9c6332ab6710",
"SiteName": "sample string 2",
"FuelId": "1f4a1543-de47-4e10-b608-22263fe65fc9",
"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": "8d1a160b-8cf3-42a3-888a-a844554968da",
"SiteId": "cf92d297-fe22-4c7f-8af4-9c6332ab6710",
"SiteName": "sample string 2",
"FuelId": "1f4a1543-de47-4e10-b608-22263fe65fc9",
"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": "e3e1456f-63b6-4117-b02f-10e87e2cdc99",
"FuelMasterName": "sample string 2",
"Price": 1.0
},
{
"FuelMasterId": "e3e1456f-63b6-4117-b02f-10e87e2cdc99",
"FuelMasterName": "sample string 2",
"Price": 1.0
}
],
"Sites": [
{
"SiteId": "0f7dc81b-d688-4860-bb55-981426eb239d",
"SiteName": "sample string 2",
"SiteCode": "sample string 3",
"Fuels": [
{
"FuelMasterId": "e3e1456f-63b6-4117-b02f-10e87e2cdc99",
"FuelMasterName": "sample string 2",
"Price": 1.0
},
{
"FuelMasterId": "e3e1456f-63b6-4117-b02f-10e87e2cdc99",
"FuelMasterName": "sample string 2",
"Price": 1.0
}
]
},
{
"SiteId": "0f7dc81b-d688-4860-bb55-981426eb239d",
"SiteName": "sample string 2",
"SiteCode": "sample string 3",
"Fuels": [
{
"FuelMasterId": "e3e1456f-63b6-4117-b02f-10e87e2cdc99",
"FuelMasterName": "sample string 2",
"Price": 1.0
},
{
"FuelMasterId": "e3e1456f-63b6-4117-b02f-10e87e2cdc99",
"FuelMasterName": "sample string 2",
"Price": 1.0
}
]
}
],
"Values": [
{
"Id": "16ffa672-5179-4c6d-828b-853dd6e41938",
"GiftCardProgramId": "4e277492-ebc9-4175-b4a7-ad602561f1bf",
"Value": 3.0
},
{
"Id": "16ffa672-5179-4c6d-828b-853dd6e41938",
"GiftCardProgramId": "4e277492-ebc9-4175-b4a7-ad602561f1bf",
"Value": 3.0
}
],
"IdentificationsTypesModel": {
"Id": "27699278-f102-4e37-a396-16bc1e381a38",
"NetworkId": "d9f09ef8-31e5-4466-8eb4-ab85d5ba2224",
"IgnoreTerminalVehicleIdBehavior": true,
"RequirePin": true,
"PinDigits": 1,
"RequiresPINChange": true,
"NotSupportOffline": true
},
"Rule": {
"Id": "2e5a016f-1557-42f5-9423-d5a3f206dbe3",
"NetworkId": "166f9752-db38-4fda-8f62-d7e58884b8b0",
"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": "072633fb-0da1-46fc-bd87-adb4679f3a06",
"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>12397c23-6d08-4f30-b317-bdfcdf25f41d</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>1f4a1543-de47-4e10-b608-22263fe65fc9</FuelId>
<FuelName>sample string 3</FuelName>
<Id>8d1a160b-8cf3-42a3-888a-a844554968da</Id>
<SiteId>cf92d297-fe22-4c7f-8af4-9c6332ab6710</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>1f4a1543-de47-4e10-b608-22263fe65fc9</FuelId>
<FuelName>sample string 3</FuelName>
<Id>8d1a160b-8cf3-42a3-888a-a844554968da</Id>
<SiteId>cf92d297-fe22-4c7f-8af4-9c6332ab6710</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>e3e1456f-63b6-4117-b02f-10e87e2cdc99</FuelMasterId>
<FuelMasterName>sample string 2</FuelMasterName>
<Price>1</Price>
</GiftCardProgramFuelDto>
<GiftCardProgramFuelDto>
<FuelMasterId>e3e1456f-63b6-4117-b02f-10e87e2cdc99</FuelMasterId>
<FuelMasterName>sample string 2</FuelMasterName>
<Price>1</Price>
</GiftCardProgramFuelDto>
</Fuels>
<Id>28a4a648-8923-46ba-8598-64dcf4df1dbe</Id>
<IdentificationsTypesModel>
<Id>27699278-f102-4e37-a396-16bc1e381a38</Id>
<IgnoreTerminalVehicleIdBehavior>true</IgnoreTerminalVehicleIdBehavior>
<NetworkId>d9f09ef8-31e5-4466-8eb4-ab85d5ba2224</NetworkId>
<NotSupportOffline>true</NotSupportOffline>
<PinDigits>1</PinDigits>
<RequirePin>true</RequirePin>
<RequiresPINChange>true</RequiresPINChange>
</IdentificationsTypesModel>
<Name>sample string 5</Name>
<NetworkId>190ff545-d07a-4eaa-8fab-4ce678215280</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>2e5a016f-1557-42f5-9423-d5a3f206dbe3</Id>
<MiscellaneousReprompt>true</MiscellaneousReprompt>
<NetworkId>166f9752-db38-4fda-8f62-d7e58884b8b0</NetworkId>
<NetworkName>sample string 2</NetworkName>
<OdometerMaxVariation>1</OdometerMaxVariation>
<OdometerMinVariation>1</OdometerMinVariation>
<OdometerReprompt>true</OdometerReprompt>
<Owner>64</Owner>
<ProgramDescription>sample string 15</ProgramDescription>
<ProgramId>072633fb-0da1-46fc-bd87-adb4679f3a06</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>e3e1456f-63b6-4117-b02f-10e87e2cdc99</FuelMasterId>
<FuelMasterName>sample string 2</FuelMasterName>
<Price>1</Price>
</GiftCardProgramFuelDto>
<GiftCardProgramFuelDto>
<FuelMasterId>e3e1456f-63b6-4117-b02f-10e87e2cdc99</FuelMasterId>
<FuelMasterName>sample string 2</FuelMasterName>
<Price>1</Price>
</GiftCardProgramFuelDto>
</Fuels>
<SiteCode>sample string 3</SiteCode>
<SiteId>0f7dc81b-d688-4860-bb55-981426eb239d</SiteId>
<SiteName>sample string 2</SiteName>
</GiftCardProgramSiteDto>
<GiftCardProgramSiteDto>
<Fuels>
<GiftCardProgramFuelDto>
<FuelMasterId>e3e1456f-63b6-4117-b02f-10e87e2cdc99</FuelMasterId>
<FuelMasterName>sample string 2</FuelMasterName>
<Price>1</Price>
</GiftCardProgramFuelDto>
<GiftCardProgramFuelDto>
<FuelMasterId>e3e1456f-63b6-4117-b02f-10e87e2cdc99</FuelMasterId>
<FuelMasterName>sample string 2</FuelMasterName>
<Price>1</Price>
</GiftCardProgramFuelDto>
</Fuels>
<SiteCode>sample string 3</SiteCode>
<SiteId>0f7dc81b-d688-4860-bb55-981426eb239d</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>4e277492-ebc9-4175-b4a7-ad602561f1bf</GiftCardProgramId>
<Id>16ffa672-5179-4c6d-828b-853dd6e41938</Id>
<Value>3</Value>
</GiftCardProgramValueDto>
<GiftCardProgramValueDto>
<GiftCardProgramId>4e277492-ebc9-4175-b4a7-ad602561f1bf</GiftCardProgramId>
<Id>16ffa672-5179-4c6d-828b-853dd6e41938</Id>
<Value>3</Value>
</GiftCardProgramValueDto>
</Values>
</GiftCardProgramDto>