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. |
|
| 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": "1a37a563-02e7-40c3-8c33-bbdb15e59b55",
"NetworkId": "d421da7d-2d4f-48ac-90fa-454a46762f1a",
"NetworkName": "sample string 3",
"Code": "sample string 4",
"Name": "sample string 5",
"Description": "sample string 6",
"SingleUse": true,
"Rechargable": true,
"CurrentAccountMode": 64,
"CurrencyId": "bf4a2bf6-c64c-4f50-8dd9-d6be393f112d",
"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": "e2b93417-18a7-46f5-adf1-0a2eec0963d5",
"SiteId": "72ed553c-864a-42e4-8668-9c10cbface7a",
"SiteName": "sample string 2",
"FuelId": "401ae8c1-acdf-4b26-9ea6-f556434d9eeb",
"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": "e2b93417-18a7-46f5-adf1-0a2eec0963d5",
"SiteId": "72ed553c-864a-42e4-8668-9c10cbface7a",
"SiteName": "sample string 2",
"FuelId": "401ae8c1-acdf-4b26-9ea6-f556434d9eeb",
"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": "5c776a7c-2b0d-4e43-b6a2-26bfadb90a2e",
"FuelMasterName": "sample string 2",
"Price": 1.0
},
{
"FuelMasterId": "5c776a7c-2b0d-4e43-b6a2-26bfadb90a2e",
"FuelMasterName": "sample string 2",
"Price": 1.0
}
],
"Sites": [
{
"SiteId": "780720d5-4089-4ca7-a79b-d48fed4a8f9d",
"SiteName": "sample string 2",
"SiteCode": "sample string 3",
"Fuels": [
{
"FuelMasterId": "5c776a7c-2b0d-4e43-b6a2-26bfadb90a2e",
"FuelMasterName": "sample string 2",
"Price": 1.0
},
{
"FuelMasterId": "5c776a7c-2b0d-4e43-b6a2-26bfadb90a2e",
"FuelMasterName": "sample string 2",
"Price": 1.0
}
]
},
{
"SiteId": "780720d5-4089-4ca7-a79b-d48fed4a8f9d",
"SiteName": "sample string 2",
"SiteCode": "sample string 3",
"Fuels": [
{
"FuelMasterId": "5c776a7c-2b0d-4e43-b6a2-26bfadb90a2e",
"FuelMasterName": "sample string 2",
"Price": 1.0
},
{
"FuelMasterId": "5c776a7c-2b0d-4e43-b6a2-26bfadb90a2e",
"FuelMasterName": "sample string 2",
"Price": 1.0
}
]
}
],
"Values": [
{
"Id": "ca3b6797-117a-46c2-b4d9-291d0ea65370",
"GiftCardProgramId": "47a1c267-987b-416e-ba16-932e0aeea7a8",
"Value": 3.0
},
{
"Id": "ca3b6797-117a-46c2-b4d9-291d0ea65370",
"GiftCardProgramId": "47a1c267-987b-416e-ba16-932e0aeea7a8",
"Value": 3.0
}
],
"IdentificationsTypesModel": {
"Id": "a6983d17-f862-41a8-9dec-8272c1ea29dc",
"NetworkId": "a6b85c71-8922-403f-b268-7dd5c24d50cc",
"IgnoreTerminalVehicleIdBehavior": true,
"RequirePin": true,
"PinDigits": 1,
"RequiresPINChange": true,
"NotSupportOffline": true
},
"Rule": {
"Id": "2e347a6c-b047-447d-8ad7-650ae80c02c4",
"NetworkId": "0208f986-190d-4544-8e80-2680fd695cef",
"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": "4cc985b5-60c3-4ebe-af9d-7613b71d8bda",
"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>bf4a2bf6-c64c-4f50-8dd9-d6be393f112d</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>401ae8c1-acdf-4b26-9ea6-f556434d9eeb</FuelId>
<FuelName>sample string 3</FuelName>
<Id>e2b93417-18a7-46f5-adf1-0a2eec0963d5</Id>
<SiteId>72ed553c-864a-42e4-8668-9c10cbface7a</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>401ae8c1-acdf-4b26-9ea6-f556434d9eeb</FuelId>
<FuelName>sample string 3</FuelName>
<Id>e2b93417-18a7-46f5-adf1-0a2eec0963d5</Id>
<SiteId>72ed553c-864a-42e4-8668-9c10cbface7a</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>5c776a7c-2b0d-4e43-b6a2-26bfadb90a2e</FuelMasterId>
<FuelMasterName>sample string 2</FuelMasterName>
<Price>1</Price>
</GiftCardProgramFuelDto>
<GiftCardProgramFuelDto>
<FuelMasterId>5c776a7c-2b0d-4e43-b6a2-26bfadb90a2e</FuelMasterId>
<FuelMasterName>sample string 2</FuelMasterName>
<Price>1</Price>
</GiftCardProgramFuelDto>
</Fuels>
<Id>1a37a563-02e7-40c3-8c33-bbdb15e59b55</Id>
<IdentificationsTypesModel>
<Id>a6983d17-f862-41a8-9dec-8272c1ea29dc</Id>
<IgnoreTerminalVehicleIdBehavior>true</IgnoreTerminalVehicleIdBehavior>
<NetworkId>a6b85c71-8922-403f-b268-7dd5c24d50cc</NetworkId>
<NotSupportOffline>true</NotSupportOffline>
<PinDigits>1</PinDigits>
<RequirePin>true</RequirePin>
<RequiresPINChange>true</RequiresPINChange>
</IdentificationsTypesModel>
<Name>sample string 5</Name>
<NetworkId>d421da7d-2d4f-48ac-90fa-454a46762f1a</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>2e347a6c-b047-447d-8ad7-650ae80c02c4</Id>
<MiscellaneousReprompt>true</MiscellaneousReprompt>
<NetworkId>0208f986-190d-4544-8e80-2680fd695cef</NetworkId>
<NetworkName>sample string 2</NetworkName>
<OdometerMaxVariation>1</OdometerMaxVariation>
<OdometerMinVariation>1</OdometerMinVariation>
<OdometerReprompt>true</OdometerReprompt>
<Owner>64</Owner>
<ProgramDescription>sample string 15</ProgramDescription>
<ProgramId>4cc985b5-60c3-4ebe-af9d-7613b71d8bda</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>5c776a7c-2b0d-4e43-b6a2-26bfadb90a2e</FuelMasterId>
<FuelMasterName>sample string 2</FuelMasterName>
<Price>1</Price>
</GiftCardProgramFuelDto>
<GiftCardProgramFuelDto>
<FuelMasterId>5c776a7c-2b0d-4e43-b6a2-26bfadb90a2e</FuelMasterId>
<FuelMasterName>sample string 2</FuelMasterName>
<Price>1</Price>
</GiftCardProgramFuelDto>
</Fuels>
<SiteCode>sample string 3</SiteCode>
<SiteId>780720d5-4089-4ca7-a79b-d48fed4a8f9d</SiteId>
<SiteName>sample string 2</SiteName>
</GiftCardProgramSiteDto>
<GiftCardProgramSiteDto>
<Fuels>
<GiftCardProgramFuelDto>
<FuelMasterId>5c776a7c-2b0d-4e43-b6a2-26bfadb90a2e</FuelMasterId>
<FuelMasterName>sample string 2</FuelMasterName>
<Price>1</Price>
</GiftCardProgramFuelDto>
<GiftCardProgramFuelDto>
<FuelMasterId>5c776a7c-2b0d-4e43-b6a2-26bfadb90a2e</FuelMasterId>
<FuelMasterName>sample string 2</FuelMasterName>
<Price>1</Price>
</GiftCardProgramFuelDto>
</Fuels>
<SiteCode>sample string 3</SiteCode>
<SiteId>780720d5-4089-4ca7-a79b-d48fed4a8f9d</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>47a1c267-987b-416e-ba16-932e0aeea7a8</GiftCardProgramId>
<Id>ca3b6797-117a-46c2-b4d9-291d0ea65370</Id>
<Value>3</Value>
</GiftCardProgramValueDto>
<GiftCardProgramValueDto>
<GiftCardProgramId>47a1c267-987b-416e-ba16-932e0aeea7a8</GiftCardProgramId>
<Id>ca3b6797-117a-46c2-b4d9-291d0ea65370</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.