PUT GiftCardPrograms/{id}
Updates the getGiftCardProgram.
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| id |
The ID of the getGiftCardProgram. |
globally unique identifier |
Required |
Body Parameters
The new data of the getGiftCardProgram.
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. |
Request Formats
application/json, text/json
Sample:
{
"Id": "5ebee964-753f-452a-96c8-59c8f820fa5b",
"NetworkId": "e59a5f76-dd7e-4668-ab06-f57bff9ac2ef",
"NetworkName": "sample string 3",
"Code": "sample string 4",
"Name": "sample string 5",
"Description": "sample string 6",
"SingleUse": true,
"Rechargable": true,
"CurrentAccountMode": 64,
"CurrencyId": "3b859c22-a140-48fa-88a4-8a882d685acc",
"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": "61e496ef-8674-40b1-b747-170d9c8eab95",
"SiteId": "884bc4f4-f8ba-4941-9e78-588df2f8b5b7",
"SiteName": "sample string 2",
"FuelId": "ad4fcd07-89c5-4243-b050-0bc8a200ad0f",
"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": "61e496ef-8674-40b1-b747-170d9c8eab95",
"SiteId": "884bc4f4-f8ba-4941-9e78-588df2f8b5b7",
"SiteName": "sample string 2",
"FuelId": "ad4fcd07-89c5-4243-b050-0bc8a200ad0f",
"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": "1655c295-7e58-485e-ac79-7ff821f54601",
"FuelMasterName": "sample string 2",
"Price": 1.0
},
{
"FuelMasterId": "1655c295-7e58-485e-ac79-7ff821f54601",
"FuelMasterName": "sample string 2",
"Price": 1.0
}
],
"Sites": [
{
"SiteId": "4759de60-1fb0-4fd3-a98a-7d99584d7f0f",
"SiteName": "sample string 2",
"SiteCode": "sample string 3",
"Fuels": [
{
"FuelMasterId": "1655c295-7e58-485e-ac79-7ff821f54601",
"FuelMasterName": "sample string 2",
"Price": 1.0
},
{
"FuelMasterId": "1655c295-7e58-485e-ac79-7ff821f54601",
"FuelMasterName": "sample string 2",
"Price": 1.0
}
]
},
{
"SiteId": "4759de60-1fb0-4fd3-a98a-7d99584d7f0f",
"SiteName": "sample string 2",
"SiteCode": "sample string 3",
"Fuels": [
{
"FuelMasterId": "1655c295-7e58-485e-ac79-7ff821f54601",
"FuelMasterName": "sample string 2",
"Price": 1.0
},
{
"FuelMasterId": "1655c295-7e58-485e-ac79-7ff821f54601",
"FuelMasterName": "sample string 2",
"Price": 1.0
}
]
}
],
"Values": [
{
"Id": "6d09a038-5f0c-4a5c-bb95-61f4b40799df",
"GiftCardProgramId": "a35a1a80-041d-4ae9-b6c9-d4f232d29cf0",
"Value": 3.0
},
{
"Id": "6d09a038-5f0c-4a5c-bb95-61f4b40799df",
"GiftCardProgramId": "a35a1a80-041d-4ae9-b6c9-d4f232d29cf0",
"Value": 3.0
}
],
"IdentificationsTypesModel": {
"Id": "950fcf19-1229-47e7-bac6-3252ddaae0b5",
"NetworkId": "80f52d38-d698-4726-8a53-d8dc5c5b3f71",
"IgnoreTerminalVehicleIdBehavior": true,
"RequirePin": true,
"PinDigits": 1,
"RequiresPINChange": true,
"NotSupportOffline": true
},
"Rule": {
"Id": "c712c6b0-6de3-49d1-8a57-918f855b38a9",
"NetworkId": "fd2bd57b-1fca-4640-913d-291e469d8c61",
"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": "2f6d5844-a58e-4126-ba43-970507c363c3",
"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>3b859c22-a140-48fa-88a4-8a882d685acc</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>ad4fcd07-89c5-4243-b050-0bc8a200ad0f</FuelId>
<FuelName>sample string 3</FuelName>
<Id>61e496ef-8674-40b1-b747-170d9c8eab95</Id>
<SiteId>884bc4f4-f8ba-4941-9e78-588df2f8b5b7</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>ad4fcd07-89c5-4243-b050-0bc8a200ad0f</FuelId>
<FuelName>sample string 3</FuelName>
<Id>61e496ef-8674-40b1-b747-170d9c8eab95</Id>
<SiteId>884bc4f4-f8ba-4941-9e78-588df2f8b5b7</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>1655c295-7e58-485e-ac79-7ff821f54601</FuelMasterId>
<FuelMasterName>sample string 2</FuelMasterName>
<Price>1</Price>
</GiftCardProgramFuelDto>
<GiftCardProgramFuelDto>
<FuelMasterId>1655c295-7e58-485e-ac79-7ff821f54601</FuelMasterId>
<FuelMasterName>sample string 2</FuelMasterName>
<Price>1</Price>
</GiftCardProgramFuelDto>
</Fuels>
<Id>5ebee964-753f-452a-96c8-59c8f820fa5b</Id>
<IdentificationsTypesModel>
<Id>950fcf19-1229-47e7-bac6-3252ddaae0b5</Id>
<IgnoreTerminalVehicleIdBehavior>true</IgnoreTerminalVehicleIdBehavior>
<NetworkId>80f52d38-d698-4726-8a53-d8dc5c5b3f71</NetworkId>
<NotSupportOffline>true</NotSupportOffline>
<PinDigits>1</PinDigits>
<RequirePin>true</RequirePin>
<RequiresPINChange>true</RequiresPINChange>
</IdentificationsTypesModel>
<Name>sample string 5</Name>
<NetworkId>e59a5f76-dd7e-4668-ab06-f57bff9ac2ef</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>c712c6b0-6de3-49d1-8a57-918f855b38a9</Id>
<MiscellaneousReprompt>true</MiscellaneousReprompt>
<NetworkId>fd2bd57b-1fca-4640-913d-291e469d8c61</NetworkId>
<NetworkName>sample string 2</NetworkName>
<OdometerMaxVariation>1</OdometerMaxVariation>
<OdometerMinVariation>1</OdometerMinVariation>
<OdometerReprompt>true</OdometerReprompt>
<Owner>64</Owner>
<ProgramDescription>sample string 15</ProgramDescription>
<ProgramId>2f6d5844-a58e-4126-ba43-970507c363c3</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>1655c295-7e58-485e-ac79-7ff821f54601</FuelMasterId>
<FuelMasterName>sample string 2</FuelMasterName>
<Price>1</Price>
</GiftCardProgramFuelDto>
<GiftCardProgramFuelDto>
<FuelMasterId>1655c295-7e58-485e-ac79-7ff821f54601</FuelMasterId>
<FuelMasterName>sample string 2</FuelMasterName>
<Price>1</Price>
</GiftCardProgramFuelDto>
</Fuels>
<SiteCode>sample string 3</SiteCode>
<SiteId>4759de60-1fb0-4fd3-a98a-7d99584d7f0f</SiteId>
<SiteName>sample string 2</SiteName>
</GiftCardProgramSiteDto>
<GiftCardProgramSiteDto>
<Fuels>
<GiftCardProgramFuelDto>
<FuelMasterId>1655c295-7e58-485e-ac79-7ff821f54601</FuelMasterId>
<FuelMasterName>sample string 2</FuelMasterName>
<Price>1</Price>
</GiftCardProgramFuelDto>
<GiftCardProgramFuelDto>
<FuelMasterId>1655c295-7e58-485e-ac79-7ff821f54601</FuelMasterId>
<FuelMasterName>sample string 2</FuelMasterName>
<Price>1</Price>
</GiftCardProgramFuelDto>
</Fuels>
<SiteCode>sample string 3</SiteCode>
<SiteId>4759de60-1fb0-4fd3-a98a-7d99584d7f0f</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>a35a1a80-041d-4ae9-b6c9-d4f232d29cf0</GiftCardProgramId>
<Id>6d09a038-5f0c-4a5c-bb95-61f4b40799df</Id>
<Value>3</Value>
</GiftCardProgramValueDto>
<GiftCardProgramValueDto>
<GiftCardProgramId>a35a1a80-041d-4ae9-b6c9-d4f232d29cf0</GiftCardProgramId>
<Id>6d09a038-5f0c-4a5c-bb95-61f4b40799df</Id>
<Value>3</Value>
</GiftCardProgramValueDto>
</Values>
</GiftCardProgramDto>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
State of the action.
IHttpActionResultNone.
Response Formats
application/json, text/json, application/xml, text/xml
Sample:
Sample not available.