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": "92c1e8f2-2692-4f04-9058-423216e0449a",
"NetworkId": "54b65dd0-c961-4bf2-b86b-e0c771506c89",
"NetworkName": "sample string 3",
"Code": "sample string 4",
"Name": "sample string 5",
"Description": "sample string 6",
"SingleUse": true,
"Rechargable": true,
"CurrentAccountMode": 64,
"CurrencyId": "67ff5d00-79d1-406a-a7f5-b8660b68ae87",
"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": "1923f19b-0206-48b4-b620-93e848d86ae4",
"SiteId": "6367e1e1-f05b-4d39-a173-79e1952d5e18",
"SiteName": "sample string 2",
"FuelId": "75e78a1d-e06e-4e9b-ae99-0efb9ae828c4",
"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": "1923f19b-0206-48b4-b620-93e848d86ae4",
"SiteId": "6367e1e1-f05b-4d39-a173-79e1952d5e18",
"SiteName": "sample string 2",
"FuelId": "75e78a1d-e06e-4e9b-ae99-0efb9ae828c4",
"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": "89f35a3a-c5fb-440d-acc9-bff022463625",
"FuelMasterName": "sample string 2",
"Price": 1.0
},
{
"FuelMasterId": "89f35a3a-c5fb-440d-acc9-bff022463625",
"FuelMasterName": "sample string 2",
"Price": 1.0
}
],
"Sites": [
{
"SiteId": "f27c117d-5ffc-4c20-8060-2f1bd146d031",
"SiteName": "sample string 2",
"SiteCode": "sample string 3",
"Fuels": [
{
"FuelMasterId": "89f35a3a-c5fb-440d-acc9-bff022463625",
"FuelMasterName": "sample string 2",
"Price": 1.0
},
{
"FuelMasterId": "89f35a3a-c5fb-440d-acc9-bff022463625",
"FuelMasterName": "sample string 2",
"Price": 1.0
}
]
},
{
"SiteId": "f27c117d-5ffc-4c20-8060-2f1bd146d031",
"SiteName": "sample string 2",
"SiteCode": "sample string 3",
"Fuels": [
{
"FuelMasterId": "89f35a3a-c5fb-440d-acc9-bff022463625",
"FuelMasterName": "sample string 2",
"Price": 1.0
},
{
"FuelMasterId": "89f35a3a-c5fb-440d-acc9-bff022463625",
"FuelMasterName": "sample string 2",
"Price": 1.0
}
]
}
],
"Values": [
{
"Id": "8b6482f1-6055-4f58-847f-22a59a5e0fe3",
"GiftCardProgramId": "1e1d93d4-6964-45b8-8a06-1ff47138e99a",
"Value": 3.0
},
{
"Id": "8b6482f1-6055-4f58-847f-22a59a5e0fe3",
"GiftCardProgramId": "1e1d93d4-6964-45b8-8a06-1ff47138e99a",
"Value": 3.0
}
],
"IdentificationsTypesModel": {
"Id": "46a8f364-7d26-4fdd-880b-81d112568a14",
"NetworkId": "95c45537-1454-43f0-abf1-8c9642022909",
"IgnoreTerminalVehicleIdBehavior": true,
"RequirePin": true,
"PinDigits": 1,
"RequiresPINChange": true,
"NotSupportOffline": true
},
"Rule": {
"Id": "7d4ddd24-fe11-420f-9b2c-97ea904ff466",
"NetworkId": "dc2ada17-71d0-4fd2-b77e-db97ea600ffe",
"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": "a0a75b76-e348-41f0-9fe3-b49392183eeb",
"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>67ff5d00-79d1-406a-a7f5-b8660b68ae87</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>75e78a1d-e06e-4e9b-ae99-0efb9ae828c4</FuelId>
<FuelName>sample string 3</FuelName>
<Id>1923f19b-0206-48b4-b620-93e848d86ae4</Id>
<SiteId>6367e1e1-f05b-4d39-a173-79e1952d5e18</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>75e78a1d-e06e-4e9b-ae99-0efb9ae828c4</FuelId>
<FuelName>sample string 3</FuelName>
<Id>1923f19b-0206-48b4-b620-93e848d86ae4</Id>
<SiteId>6367e1e1-f05b-4d39-a173-79e1952d5e18</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>89f35a3a-c5fb-440d-acc9-bff022463625</FuelMasterId>
<FuelMasterName>sample string 2</FuelMasterName>
<Price>1</Price>
</GiftCardProgramFuelDto>
<GiftCardProgramFuelDto>
<FuelMasterId>89f35a3a-c5fb-440d-acc9-bff022463625</FuelMasterId>
<FuelMasterName>sample string 2</FuelMasterName>
<Price>1</Price>
</GiftCardProgramFuelDto>
</Fuels>
<Id>92c1e8f2-2692-4f04-9058-423216e0449a</Id>
<IdentificationsTypesModel>
<Id>46a8f364-7d26-4fdd-880b-81d112568a14</Id>
<IgnoreTerminalVehicleIdBehavior>true</IgnoreTerminalVehicleIdBehavior>
<NetworkId>95c45537-1454-43f0-abf1-8c9642022909</NetworkId>
<NotSupportOffline>true</NotSupportOffline>
<PinDigits>1</PinDigits>
<RequirePin>true</RequirePin>
<RequiresPINChange>true</RequiresPINChange>
</IdentificationsTypesModel>
<Name>sample string 5</Name>
<NetworkId>54b65dd0-c961-4bf2-b86b-e0c771506c89</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>7d4ddd24-fe11-420f-9b2c-97ea904ff466</Id>
<MiscellaneousReprompt>true</MiscellaneousReprompt>
<NetworkId>dc2ada17-71d0-4fd2-b77e-db97ea600ffe</NetworkId>
<NetworkName>sample string 2</NetworkName>
<OdometerMaxVariation>1</OdometerMaxVariation>
<OdometerMinVariation>1</OdometerMinVariation>
<OdometerReprompt>true</OdometerReprompt>
<Owner>64</Owner>
<ProgramDescription>sample string 15</ProgramDescription>
<ProgramId>a0a75b76-e348-41f0-9fe3-b49392183eeb</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>89f35a3a-c5fb-440d-acc9-bff022463625</FuelMasterId>
<FuelMasterName>sample string 2</FuelMasterName>
<Price>1</Price>
</GiftCardProgramFuelDto>
<GiftCardProgramFuelDto>
<FuelMasterId>89f35a3a-c5fb-440d-acc9-bff022463625</FuelMasterId>
<FuelMasterName>sample string 2</FuelMasterName>
<Price>1</Price>
</GiftCardProgramFuelDto>
</Fuels>
<SiteCode>sample string 3</SiteCode>
<SiteId>f27c117d-5ffc-4c20-8060-2f1bd146d031</SiteId>
<SiteName>sample string 2</SiteName>
</GiftCardProgramSiteDto>
<GiftCardProgramSiteDto>
<Fuels>
<GiftCardProgramFuelDto>
<FuelMasterId>89f35a3a-c5fb-440d-acc9-bff022463625</FuelMasterId>
<FuelMasterName>sample string 2</FuelMasterName>
<Price>1</Price>
</GiftCardProgramFuelDto>
<GiftCardProgramFuelDto>
<FuelMasterId>89f35a3a-c5fb-440d-acc9-bff022463625</FuelMasterId>
<FuelMasterName>sample string 2</FuelMasterName>
<Price>1</Price>
</GiftCardProgramFuelDto>
</Fuels>
<SiteCode>sample string 3</SiteCode>
<SiteId>f27c117d-5ffc-4c20-8060-2f1bd146d031</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>1e1d93d4-6964-45b8-8a06-1ff47138e99a</GiftCardProgramId>
<Id>8b6482f1-6055-4f58-847f-22a59a5e0fe3</Id>
<Value>3</Value>
</GiftCardProgramValueDto>
<GiftCardProgramValueDto>
<GiftCardProgramId>1e1d93d4-6964-45b8-8a06-1ff47138e99a</GiftCardProgramId>
<Id>8b6482f1-6055-4f58-847f-22a59a5e0fe3</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.