Skip to main content
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:
  • 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
Your points model also determines what the minimum points are for vouchers to be paid out.

Getting a contact’s vouchers

Once a contact has been identified, and you have their contactId, you can fetch their available vouchers with the following request:
Fetch active vouchers for customer
You can also fetch all of their vouchers (expired and redeemed as well as available) like this:
Fetch active, expired and redeemed vouchers for customer
Or you can fetch only those vouchers with the status redeemed:
Fetch only redeemed vouchers for customer
In all these cases, the GUID of the contact is appended to the URL as the parameter contactId as in this example:

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
Since the rewardVoucherId is unique for the contact who has it, the contactId does not need to be sent.
After 4.5 seconds this endpoint will give up and time out, provided it has not already saved the voucher as redeemed. If the voucher has been redeemed (this is also also known as the “point of no return”) when the 4.5 seconds limit is passed, the request will be processed until completion.It is recommended to not have a timeout shorter than 60 seconds, in order to avoid situations where a voucher is redeemed in Engage but the calling system does not know it due to aborting the request.
If the request has been successful, you’ll get a HTTP 200 OK response. Otherwise you’ll get one of these:
  • 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
Where 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
In the voucher configuration in Engage you can specify how many times a voucher can be reactivated. 3 times is the default. It you try to reactivate the voucher more times than that, you will get the 409 error above.
Reactivating a voucher does not change any of its data, such as the value, the expiry date and so on. These will remain as they were when the voucher was created.

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:
This is done using a scheduled job (called “Export reward vouchers”). How often this job runs can be configured. Your Voyado team can help you with setting up the FTP folders as well as the scheduled job.

XML export fields

Only one contact field (marked with *) can be used together with contactKey.

Default XML format

This export cannot be transformed or modified through an XSLT-transformation. The format is fixed.

New (unused and available) vouchers

Used (redeemed) vouchers