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.
GiftCardProgramDtoName | 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": "e0f8004b-d541-4ebe-abf5-41c53716b615", "NetworkId": "62ea5395-df14-4a4b-91d0-3934d9af9757", "NetworkName": "sample string 3", "Code": "sample string 4", "Name": "sample string 5", "Description": "sample string 6", "SingleUse": true, "Rechargable": true, "CurrentAccountMode": 64, "CurrencyId": "873e8958-8a86-4bf2-8437-0f0efcdad2ce", "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": "0093ef21-2b79-42b9-af1c-e913b21b39bc", "SiteId": "0b1c1b01-d9fc-4dcd-9bcb-cd5270936896", "SiteName": "sample string 2", "FuelId": "94bdbdd0-9f98-4703-9c00-78c28c48740d", "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": "0093ef21-2b79-42b9-af1c-e913b21b39bc", "SiteId": "0b1c1b01-d9fc-4dcd-9bcb-cd5270936896", "SiteName": "sample string 2", "FuelId": "94bdbdd0-9f98-4703-9c00-78c28c48740d", "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": "aef0d042-8e2c-46aa-8d41-072280bd13bf", "FuelMasterName": "sample string 2", "Price": 1.0 }, { "FuelMasterId": "aef0d042-8e2c-46aa-8d41-072280bd13bf", "FuelMasterName": "sample string 2", "Price": 1.0 } ], "Sites": [ { "SiteId": "2491c422-6185-4c89-9719-63ad5585cc96", "SiteName": "sample string 2", "SiteCode": "sample string 3", "Fuels": [ { "FuelMasterId": "aef0d042-8e2c-46aa-8d41-072280bd13bf", "FuelMasterName": "sample string 2", "Price": 1.0 }, { "FuelMasterId": "aef0d042-8e2c-46aa-8d41-072280bd13bf", "FuelMasterName": "sample string 2", "Price": 1.0 } ] }, { "SiteId": "2491c422-6185-4c89-9719-63ad5585cc96", "SiteName": "sample string 2", "SiteCode": "sample string 3", "Fuels": [ { "FuelMasterId": "aef0d042-8e2c-46aa-8d41-072280bd13bf", "FuelMasterName": "sample string 2", "Price": 1.0 }, { "FuelMasterId": "aef0d042-8e2c-46aa-8d41-072280bd13bf", "FuelMasterName": "sample string 2", "Price": 1.0 } ] } ], "Values": [ { "Id": "8d577a8b-f281-415f-8713-3ed0cc67ae02", "GiftCardProgramId": "2a579660-b5ee-4b4b-81a7-c587d0383bcf", "Value": 3.0 }, { "Id": "8d577a8b-f281-415f-8713-3ed0cc67ae02", "GiftCardProgramId": "2a579660-b5ee-4b4b-81a7-c587d0383bcf", "Value": 3.0 } ], "IdentificationsTypesModel": { "Id": "fa84f72b-553e-491a-beb5-58a7c3ab808c", "NetworkId": "2a7c245d-fd77-40c6-a5e5-ddb802798816", "IgnoreTerminalVehicleIdBehavior": true, "RequirePin": true, "PinDigits": 1, "RequiresPINChange": true, "NotSupportOffline": true }, "Rule": { "Id": "3a60b3bb-3b22-473c-b6e1-2c7b5fc5a01c", "NetworkId": "703ec6a4-3200-48c5-9558-1e4c09340563", "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": "1b776501-f21b-4cc8-bb0d-1590bda5fdda", "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>873e8958-8a86-4bf2-8437-0f0efcdad2ce</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>94bdbdd0-9f98-4703-9c00-78c28c48740d</FuelId> <FuelName>sample string 3</FuelName> <Id>0093ef21-2b79-42b9-af1c-e913b21b39bc</Id> <SiteId>0b1c1b01-d9fc-4dcd-9bcb-cd5270936896</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>94bdbdd0-9f98-4703-9c00-78c28c48740d</FuelId> <FuelName>sample string 3</FuelName> <Id>0093ef21-2b79-42b9-af1c-e913b21b39bc</Id> <SiteId>0b1c1b01-d9fc-4dcd-9bcb-cd5270936896</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>aef0d042-8e2c-46aa-8d41-072280bd13bf</FuelMasterId> <FuelMasterName>sample string 2</FuelMasterName> <Price>1</Price> </GiftCardProgramFuelDto> <GiftCardProgramFuelDto> <FuelMasterId>aef0d042-8e2c-46aa-8d41-072280bd13bf</FuelMasterId> <FuelMasterName>sample string 2</FuelMasterName> <Price>1</Price> </GiftCardProgramFuelDto> </Fuels> <Id>e0f8004b-d541-4ebe-abf5-41c53716b615</Id> <IdentificationsTypesModel> <Id>fa84f72b-553e-491a-beb5-58a7c3ab808c</Id> <IgnoreTerminalVehicleIdBehavior>true</IgnoreTerminalVehicleIdBehavior> <NetworkId>2a7c245d-fd77-40c6-a5e5-ddb802798816</NetworkId> <NotSupportOffline>true</NotSupportOffline> <PinDigits>1</PinDigits> <RequirePin>true</RequirePin> <RequiresPINChange>true</RequiresPINChange> </IdentificationsTypesModel> <Name>sample string 5</Name> <NetworkId>62ea5395-df14-4a4b-91d0-3934d9af9757</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>3a60b3bb-3b22-473c-b6e1-2c7b5fc5a01c</Id> <MiscellaneousReprompt>true</MiscellaneousReprompt> <NetworkId>703ec6a4-3200-48c5-9558-1e4c09340563</NetworkId> <NetworkName>sample string 2</NetworkName> <OdometerMaxVariation>1</OdometerMaxVariation> <OdometerMinVariation>1</OdometerMinVariation> <OdometerReprompt>true</OdometerReprompt> <Owner>64</Owner> <ProgramDescription>sample string 15</ProgramDescription> <ProgramId>1b776501-f21b-4cc8-bb0d-1590bda5fdda</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>aef0d042-8e2c-46aa-8d41-072280bd13bf</FuelMasterId> <FuelMasterName>sample string 2</FuelMasterName> <Price>1</Price> </GiftCardProgramFuelDto> <GiftCardProgramFuelDto> <FuelMasterId>aef0d042-8e2c-46aa-8d41-072280bd13bf</FuelMasterId> <FuelMasterName>sample string 2</FuelMasterName> <Price>1</Price> </GiftCardProgramFuelDto> </Fuels> <SiteCode>sample string 3</SiteCode> <SiteId>2491c422-6185-4c89-9719-63ad5585cc96</SiteId> <SiteName>sample string 2</SiteName> </GiftCardProgramSiteDto> <GiftCardProgramSiteDto> <Fuels> <GiftCardProgramFuelDto> <FuelMasterId>aef0d042-8e2c-46aa-8d41-072280bd13bf</FuelMasterId> <FuelMasterName>sample string 2</FuelMasterName> <Price>1</Price> </GiftCardProgramFuelDto> <GiftCardProgramFuelDto> <FuelMasterId>aef0d042-8e2c-46aa-8d41-072280bd13bf</FuelMasterId> <FuelMasterName>sample string 2</FuelMasterName> <Price>1</Price> </GiftCardProgramFuelDto> </Fuels> <SiteCode>sample string 3</SiteCode> <SiteId>2491c422-6185-4c89-9719-63ad5585cc96</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>2a579660-b5ee-4b4b-81a7-c587d0383bcf</GiftCardProgramId> <Id>8d577a8b-f281-415f-8713-3ed0cc67ae02</Id> <Value>3</Value> </GiftCardProgramValueDto> <GiftCardProgramValueDto> <GiftCardProgramId>2a579660-b5ee-4b4b-81a7-c587d0383bcf</GiftCardProgramId> <Id>8d577a8b-f281-415f-8713-3ed0cc67ae02</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.