REVERSE/EVENT
Take a look at our OpenAPI (Swagger-Spec) schema to learn more about the API calls.
The REVERSE/EVENT
endpoint is used to reverse AIR MILES from a Collector’s account in real-time for a
non-transactional reason (e.g., issuing a manual correction to a Collector’s account). With this method selected the
total AIR MILES to be reversed are calculated by the Partner.
API call validation process
After making a call to REVERSE/EVENT
, you will receive one of the following responses:
- If the call is SUCCESSFUL
- You will receive a response code of
200
- No further action is required
- You will receive a response code of
- If the call is SUCCESSFUL but issuances are pending and causing a delay
- You will receive a response code of
202
- No further action is required
- Resubmitting the same request will have no effect on the transaction
- You will receive a response code of
- If the call is REJECTED due to incorrect or invalid details
- You will receive a response code of
400
- You must retry the request with a valid transaction record and/or the corrected details
- You will receive a response code of
- If the call FAILS due to an error or other issue
- You will receive a response code of
500
- It’s recommended you retry the request at least 2 additional times
- You will receive a response code of
Note
The “FAIL” response above could indicate a system error on our end. If this happens, please contact our Support Desk for assistance.Sample request
Request parameters
* required field
Parameter | Description |
---|---|
clientTransactionId * |
Unique identifier generated by the Partner for the event transaction.
Example: |
collectorNumber * |
The customer’s AIR MILES account number.
Example: |
coupon |
A list of all coupon codes applied to the bill at checkout.
Example: |
context |
Notes or additional information that is desired on each request as a key value pair.
Example: |
deviceId |
ID number used to identify the POS terminal currently in use.
Example: |
issuances * |
This mandatory object contains data elements related to issuance data.
Example:
|
originalClientTransactionId |
This value represents the clientTransactionId returned in the POST/EVENT transaction response from AIR MILES. Alternatively the checkoutTransactionId supplied by the Partner in an POST transaction can be sent in this field.
Example: |
sponsorCode * |
Alpha-numeric value used to identify the Partner.
Example: |
transactionDateTime * |
The date and time the request was sent.
Example: |
Sample response
Response parameters
Only parameters unique to the Sample Response are listed below. For all other parameters, refer to the table above.
Parameter | Description |
---|---|
issuances |
Array value describing the issuance offers redeemed by the Collector.
Example:
|
transactionId |
A unique ID created for the particular transaction.
Example: |
Status codes
Refer to our Audit report errors table for more information.
Status Code | Description |
---|---|
200 | Request processed successfully. |
202 | Request still processing, please wait. |
400 | Bad request, failed to process. |
500 | Request failed due to internal error. |