Vouchers are part of the Promotions module. Administrators can create vouchers based on the client configuration. If a contact meets the requirements then one or more vouchers can be granted to the contact. As an Engage user, you decide how a contact’s points are converted to vouchers. Depending on how your model is set up, you can either:Documentation Index
Fetch the complete documentation index at: https://developer.voyado.com/llms.txt
Use this file to discover all available pages before exploring further.
- Convert all earned points into the corresponding monetary value and then clear the points
- Use a step model to send out vouchers with fixed amounts
Getting a contact’s vouchers
Once a contact has been identified, and you have theircontactId, you can fetch their available vouchers with the following request:
Fetch active vouchers for customer
Fetch active, expired and redeemed vouchers for customer
Fetch only redeemed vouchers for customer
Response
Below is an example of a successful response with a HTTP 200 OK status and one voucher returned (in the items array).Example payload response
Redeem a voucher
Redeeming a voucher means telling Engage that the voucher has been used and that its status should now change from available to redeemed. To redeem a voucher for a specific contact, use this endpoint:Redeem voucher for customer
- 400: InvalidRewardVoucherId
- 404: RewardVoucherNotFound
- 409: RewardVoucherAlreadyRedeemed, RewardVoucherExpired
- 504: GatewayTimeout
Reactivate a voucher
A used voucher can be reactivated and have its status changed from redeemed back to available. To reactivate a voucher (which is connected to a specific contact) you use this endpoint:Reactivate a voucher for customer
rewardVoucherId is the reward voucher’s unique ID.
If the reactivation has worked, you’ll get a HTTP 200 OK response. Otherwise, one of these:
- 400: InvalidRewardVoucherId
- 404: RewardVoucherNotFound
- 409: RewardVoucherAlreadyActivated, RewardVoucherExpired, ReactivationLimitExceeded
Webhooks
Engage provides webhooks for working with points and vouchers.Read more about webhooks for points and vouchers
Voucher XML export
Engage can export voucher data as XML files. Using this, you can export both new (unused) and redeemed vouchers. The XML files generated are saved into your tenant-specific folder on the Engage FTP server:XML export fields
Only one contact field (marked with *) can be used together with contactKey.| Field | Example value | Description |
|---|---|---|
| checkNumber | 0000000111751 | An incremental numerical ID. The start value can be decided by the client and set by a product specialist. |
| contactKey | 1000005760 | The key value set in the environment for the client. |
| amount | 40.0000 | The monetary amount of the voucher, always shown in the group currency as configured for this Engage tenant. This is applied as a payment method or a discount on the transaction. |
| validFrom | 2020-04-21T00:00:00 | Date and time from when the voucher is valid |
| expires | 2021-04-21T00:00:00 | Date and time when the voucher expires |
| bonusPoints | 2000.0000 | Number of bonus points withdrawn to generate the voucher |
| usedDate | 2020-06-21T00:00:00 | Date and time when the voucher was redeemed in Engage. |
| contactId* | 67ea3358-0e09-484f-d1c4-aa3e00e1e29c | The contact’s unique ID in Engage. |
| externalId* | 1526235 | Identification key for external systems. |
| memberNumber* | 12345678 | Contact’s member number. |
| socialSecurityNumber* | 198101010101 | Contact’s personal identity number. |
| email* | example@example.com | Contact’s email address. |
| mobilePhone* | +46739111111 | Contact’s mobile phone number. |

