The RETAIL7 Gift Card API can be used to perform a variety of actions related to gift cards. These actions include e.g.:
Status check
Sell
Load
Redeem
Cancel
Create without sell
Update
Lock
Unlock
Close
If you want to get information about gift card status (e.g. balance, validity, etc.) you can use the following request:
The valid json looks like that:
{
"requestIDExternal": "GC10",
"timestamp": "2021-02-21T11:30:25.930Z",
"trainingFlag": false,
"operationType": "STATUS",
"cardID": "12399",
"clientStore": "1001",
"clientCountry": "US",
"clientID": "1001"
}
Field | |
| Type: string (40) Sample: "12345" Description: ID of the STATUS request. Must be unique. Mandantory: M |
| Type: timestamp Sample: "2021-02-21T11:30:25.930Z" Description: Timestamp of the operation. Mandantory: M |
| Type: boolean Sample: "True" or "False" Description: Flag which reflects if operating in training mode (true) or not (false). Mandantory: M |
| Type: string (40) Sample: "STATUS" Description: Type of the requested gift card operation. Mandantory: M |
| Type: string (40) Sample: "12345" Description: ID of the gift card relevant to the operation. Mandantory: M |
| Type: string (40) Sample: "12345" Description: Store ID Mandantory: M |
| Type: string (40) Sample: "DE" Description: ISO 3166-1 alpha-2 code of the country. Mandantory: M |
| Type: string (40) Sample: "12345" Description: ID of the client posting the request. Mandantory: M |
The valid json looks like that:
{
"requestIDExternal": "GC10",
"timestamp": "2021-02-21T11:30:25.930Z",
"trainingFlag": false,
"operationType": "SELL",
"cardID": "1234567",
"amount": 5.00,
"currencyCode": "USD",
"clientStore": "1001",
"clientCountry": "US",
"clientID": "1001",
"clientTrx": "1001201910311001000004"
"issuedByClient": false,
"validFrom": "2021-02-20",
"validUntil": "2023-02-20"
}
Field | |
| Type: string (40) Sample: - Description: ID of the SELL request. Must be unique. Mandatory: M |
| Type: timestamp Sample: "2019-10-31T21:29:51.779Z" Description: Timestamp of the operation. Mandatory: M |
| Type: boolean Sample: "false" Description: Indicator, if operating in training mode (true) or not (false). Mandatory: M |
| Type: string (40) Sample: "SELL" Description: Type of the requested gift card operation. Mandatory: M |
| Type: string (40) Sample: "12399" Description: ID of the gift card relevant to the operation. Mandatory: M |
| Type: string (40) Sample: "01" Description: Used only when gift card is issued by the client - it defines the type code of the gift card. Mandatory: O |
| Type: number Sample: "5.00" Description: Amount of the operation. In case of SELL operation it defines the initial gift card balance. Mandatory: M |
| Type: number Sample: "500.00" Description: Used only when gift card is issued by the client - it defines the maximum balance. The value can be taken from configuration. If not defined by the request, server default is used. Mandatory: O |
| Type: string (3) Sample: "EUR" Description: ISO 4217 code of the currency of the operation. Mandatory: M |
| Type: string (40) Sample: "1001" Description: Store ID of the client posting the request. Mandatory: M |
| Type: string (40) Sample: "DE" Description: ISO 3166-1 alpha-2 code of the country of the client posting the request. Mandatory: M |
| Type: string (40) Sample: "1001" Description: ID of the client posting the request. Mandatory: M |
| Type: string (40) Sample: "1001201910311001000004" Description: ID of the transaction containing gift card sale / return / tender line item, created by the client. Mandatory: M |
| Type: boolean Sample: "false" Description: Indicator, if the gift card was issued by client (true) or not (false). Mandatory: M |
| Type: date Sample: "2021-02-20" Description: This defines from when is the gift card valid for redemption. Usually it is the date of sale. If it is not filled in the request, then it is set to current date. Mandatory: O |
| Type: date Sample: "2023-02-20" Description: This defines until when is the gift card valid for redemption. If it is not filled in the request, then:
Mandatory: O |
| Type: boolean Sample: "false" Description: Used only when gift card is issued by the client - it defines if gift card is re-loadable. The value can be taken from configuration. If not defined by the request, server default is used. Mandatory: O |
| Type: boolean Sample: "true" Description: Used only when gift card is issued by the client - it defines if gift card can be returned. The value can be taken from configuration. If not defined by the request, server default is used. Mandatory: O |
| Type: boolean Sample: "true" Description: Used only when gift card is issued by the client - it defines if gift card can be redeemed in part. The value can be taken from configuration. If not defined by the request, server default is used. Mandatory: O |
| Type: string (40) Sample: - Description: If captured a reason code during the process, it is also passed on in the request. Mandatory: O |
The valid json looks like that:
{
"requestIDExternal": "GC111",
"timestamp": "2021-02-21T11:30:25.930Z",
"trainingFlag": false,
"operationType": "LOAD",
"cardID": "12300",
"amount": 5.00,
"currencyCode": "USD",
"clientStore": "1001",
"clientCountry": "US",
"clientID": "1001",
"clientTrx": "1001201910311001000004"
}
Field | |
| Type: string (40) Sample: - Description: ID of the LOAD request assigned by the client. Must be unique. Madatory: M |
| Type: timestamp Sample: "2021-02-21T11:30:25.930Z" Description: Timestamp of the operation (on client side). Madatory: M |
| Type: boolean Sample: "false" Description: Indicator, if the client is operating in training mode (true) or not (false). Madatory: M |
| Type: string (40) Sample: "LOAD" Description: Type of the requested gift card operation. Madatory: M |
| Type: string (40) Sample: "12399" Description: ID of the gift card relevant to the operation. Madatory: M |
| Type: number Sample: "5.00" Description: Amount of the operation. Madatory: M |
| Type: string (3) Sample: "EUR" Description: ISO 4217 code of the currency of the operation. Madatory: M |
| Type: string (40) Sample: "1001" Description: ID of the client posting the request. Madatory: M |
| Type: string (40) Sample: "DE" Description: ISO 3166-1 alpha-2 code of the country of the client posting the request. Madatory: M |
| Type: string (40) Sample: "1001" Description: ID of the client posting the request. Madatory: M |
| Type: string (40) Sample: "1001201910311001000004" Description: ID of the transaction containing gift card sale / return / tender line item, created by the client. Madatory: M |
| Type: string (40) Sample: - Description: If client captured a reason code during the process, it is also passed on in the request. Madatory: O |