Redeem voucher code
Overview
In the scenarios where Airship is the gatekeeper for voucher codes, an unredeemed single use voucher can be marked as 'Redeemed' within Airship, so any subsequent Voucher Checks return the status of 'Redeemed', or attempted Redemptions return an 'Already Redeemed' style message.
Example Request
Configuration
Headers
Field | Notes |
---|---|
| The authentication token is linked to the account that you are searching bookings in. If you are unsure of what your Authentication token is, ask our support team to confirm. |
Body
Field | Notes |
---|---|
| The account ID represents the account that you are searching bookings in. If you are unsure of what your account ID is, ask our support team to confirm. |
| Airship has predefined locations or "units" to store contacts for different physical locations. The units object represents which location which the voucher code was redeemed at. You can fetch a list of units for your account using the |
| Optional (providing the voucher codes are set to The unique voucher code group which the voucher is associated with. As the same voucher code can exist in different code groups (be issued in different campaigns at different points in time) - the UCGID enables us to narrow down which campaign the voucher belongs to when codes are not unique by account. |
| The unique voucher code which you are attempting to redeem. |
| Optional The date time that the voucher was redeemed. If this is not included, the current date time of the request will be used |
Basic Payload example
Results
Once a voucher has successfully been redeemed, if it is assigned to a contact - then you will be able to check if the voucher has been redeemed in Airship.
Once a voucher is redeemed, you should see the Redemption date (based on the date/time the call was made) and Redeemed at unit populated (based on the Unit ID provided in the redemption call).
Last updated