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": "03cca155-2fbe-4310-a8c2-5c54486e8c41",
"NetworkId": "8febecf1-c0a5-40f9-8aba-fb3c4f34a69d",
"NetworkName": "sample string 3",
"Code": "sample string 4",
"Name": "sample string 5",
"Description": "sample string 6",
"SingleUse": true,
"Rechargable": true,
"CurrentAccountMode": 64,
"CurrencyId": "151ece2f-d289-4531-9ef7-39f99d43c49d",
"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": "696c5492-04be-4f5c-a0e9-275053cd82ab",
"SiteId": "b1689a99-d14a-497a-9ae6-3c5097387faa",
"SiteName": "sample string 2",
"FuelId": "da69a109-7f3c-4c4d-b8b0-a58a51f1958f",
"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": "696c5492-04be-4f5c-a0e9-275053cd82ab",
"SiteId": "b1689a99-d14a-497a-9ae6-3c5097387faa",
"SiteName": "sample string 2",
"FuelId": "da69a109-7f3c-4c4d-b8b0-a58a51f1958f",
"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": "f30007de-6818-4e1d-8e03-3430289d0645",
"FuelMasterName": "sample string 2",
"Price": 1.0
},
{
"FuelMasterId": "f30007de-6818-4e1d-8e03-3430289d0645",
"FuelMasterName": "sample string 2",
"Price": 1.0
}
],
"Sites": [
{
"SiteId": "136c73a8-da2e-4fd7-a97f-0f0e590ac934",
"SiteName": "sample string 2",
"SiteCode": "sample string 3",
"Fuels": [
{
"FuelMasterId": "f30007de-6818-4e1d-8e03-3430289d0645",
"FuelMasterName": "sample string 2",
"Price": 1.0
},
{
"FuelMasterId": "f30007de-6818-4e1d-8e03-3430289d0645",
"FuelMasterName": "sample string 2",
"Price": 1.0
}
]
},
{
"SiteId": "136c73a8-da2e-4fd7-a97f-0f0e590ac934",
"SiteName": "sample string 2",
"SiteCode": "sample string 3",
"Fuels": [
{
"FuelMasterId": "f30007de-6818-4e1d-8e03-3430289d0645",
"FuelMasterName": "sample string 2",
"Price": 1.0
},
{
"FuelMasterId": "f30007de-6818-4e1d-8e03-3430289d0645",
"FuelMasterName": "sample string 2",
"Price": 1.0
}
]
}
],
"Values": [
{
"Id": "47d11582-9a93-4ac5-a032-dc31995b2beb",
"GiftCardProgramId": "44475a36-1a26-4771-9ef1-c81fec344eaf",
"Value": 3.0
},
{
"Id": "47d11582-9a93-4ac5-a032-dc31995b2beb",
"GiftCardProgramId": "44475a36-1a26-4771-9ef1-c81fec344eaf",
"Value": 3.0
}
],
"IdentificationsTypesModel": {
"Id": "6a8f55f1-e003-4b0d-af65-6c41b7d26c12",
"NetworkId": "20a3667b-861f-497d-bd83-cca662cf1ed6",
"IgnoreTerminalVehicleIdBehavior": true,
"RequirePin": true,
"PinDigits": 1,
"RequiresPINChange": true,
"NotSupportOffline": true
},
"Rule": {
"Id": "81c82707-6664-402a-b0cf-87d9e8407b4a",
"NetworkId": "c5fdb6f4-4bdf-4501-ba89-53e07b97927d",
"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": "9d838a19-45f7-464f-812c-9f08087e472a",
"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>151ece2f-d289-4531-9ef7-39f99d43c49d</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>da69a109-7f3c-4c4d-b8b0-a58a51f1958f</FuelId>
<FuelName>sample string 3</FuelName>
<Id>696c5492-04be-4f5c-a0e9-275053cd82ab</Id>
<SiteId>b1689a99-d14a-497a-9ae6-3c5097387faa</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>da69a109-7f3c-4c4d-b8b0-a58a51f1958f</FuelId>
<FuelName>sample string 3</FuelName>
<Id>696c5492-04be-4f5c-a0e9-275053cd82ab</Id>
<SiteId>b1689a99-d14a-497a-9ae6-3c5097387faa</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>f30007de-6818-4e1d-8e03-3430289d0645</FuelMasterId>
<FuelMasterName>sample string 2</FuelMasterName>
<Price>1</Price>
</GiftCardProgramFuelDto>
<GiftCardProgramFuelDto>
<FuelMasterId>f30007de-6818-4e1d-8e03-3430289d0645</FuelMasterId>
<FuelMasterName>sample string 2</FuelMasterName>
<Price>1</Price>
</GiftCardProgramFuelDto>
</Fuels>
<Id>03cca155-2fbe-4310-a8c2-5c54486e8c41</Id>
<IdentificationsTypesModel>
<Id>6a8f55f1-e003-4b0d-af65-6c41b7d26c12</Id>
<IgnoreTerminalVehicleIdBehavior>true</IgnoreTerminalVehicleIdBehavior>
<NetworkId>20a3667b-861f-497d-bd83-cca662cf1ed6</NetworkId>
<NotSupportOffline>true</NotSupportOffline>
<PinDigits>1</PinDigits>
<RequirePin>true</RequirePin>
<RequiresPINChange>true</RequiresPINChange>
</IdentificationsTypesModel>
<Name>sample string 5</Name>
<NetworkId>8febecf1-c0a5-40f9-8aba-fb3c4f34a69d</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>81c82707-6664-402a-b0cf-87d9e8407b4a</Id>
<MiscellaneousReprompt>true</MiscellaneousReprompt>
<NetworkId>c5fdb6f4-4bdf-4501-ba89-53e07b97927d</NetworkId>
<NetworkName>sample string 2</NetworkName>
<OdometerMaxVariation>1</OdometerMaxVariation>
<OdometerMinVariation>1</OdometerMinVariation>
<OdometerReprompt>true</OdometerReprompt>
<Owner>64</Owner>
<ProgramDescription>sample string 15</ProgramDescription>
<ProgramId>9d838a19-45f7-464f-812c-9f08087e472a</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>f30007de-6818-4e1d-8e03-3430289d0645</FuelMasterId>
<FuelMasterName>sample string 2</FuelMasterName>
<Price>1</Price>
</GiftCardProgramFuelDto>
<GiftCardProgramFuelDto>
<FuelMasterId>f30007de-6818-4e1d-8e03-3430289d0645</FuelMasterId>
<FuelMasterName>sample string 2</FuelMasterName>
<Price>1</Price>
</GiftCardProgramFuelDto>
</Fuels>
<SiteCode>sample string 3</SiteCode>
<SiteId>136c73a8-da2e-4fd7-a97f-0f0e590ac934</SiteId>
<SiteName>sample string 2</SiteName>
</GiftCardProgramSiteDto>
<GiftCardProgramSiteDto>
<Fuels>
<GiftCardProgramFuelDto>
<FuelMasterId>f30007de-6818-4e1d-8e03-3430289d0645</FuelMasterId>
<FuelMasterName>sample string 2</FuelMasterName>
<Price>1</Price>
</GiftCardProgramFuelDto>
<GiftCardProgramFuelDto>
<FuelMasterId>f30007de-6818-4e1d-8e03-3430289d0645</FuelMasterId>
<FuelMasterName>sample string 2</FuelMasterName>
<Price>1</Price>
</GiftCardProgramFuelDto>
</Fuels>
<SiteCode>sample string 3</SiteCode>
<SiteId>136c73a8-da2e-4fd7-a97f-0f0e590ac934</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>44475a36-1a26-4771-9ef1-c81fec344eaf</GiftCardProgramId>
<Id>47d11582-9a93-4ac5-a032-dc31995b2beb</Id>
<Value>3</Value>
</GiftCardProgramValueDto>
<GiftCardProgramValueDto>
<GiftCardProgramId>44475a36-1a26-4771-9ef1-c81fec344eaf</GiftCardProgramId>
<Id>47d11582-9a93-4ac5-a032-dc31995b2beb</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.