- Points can be transferred between cards in the same and different loyalty campaigns.
- Points can be transferred to the same and different customers.
Reward qualification
First, we need to call the qualification endpoint. It returns a list of loyalty cards that can be used for redeeming a reward specified in the request.Loyalty card validation
The validation API method should be used to verify whether the customer has enough points for receiving a reward. Here’s an endpoint and example request. POST: {{url}}/vouchers/{code}/validate- code - a code of customer’s loyalty card
The loyalty points transfer
This entity describes loyalty points transfer between Campaigns and Customers. If the customer has two or more assigned loyalty cards, Voucherify gives the opportunity to transfer points from one card to another - e.g., when the customer does not have enough points on the loyalty card to receive the reward. Points can be transferred between cards in the same and different loyalty campaigns and for the same and different customers. To transfer points from one card to another ({id}), we need to call the transfer endpoint with the following request body: POST: https://api.voucherify.io/v1/loyalties/{campaignId}/members/{memberId}/transfers In the path parameters, you need to include:- campaignId - a unique identifier of the loyalty campaign containing the voucher to which the loyalty points are to be sent.
- memberId – a unique code identifying the loyalty card to which the user wants to transfer loyalty points.
- code – a unique identifier of the loyalty card from which you want to transfer points.
- points – the number of loyalty points that you want to transfer to another loyalty card.
The number of points in the request body cannot be higher than the current balance on the loyalty card.