Redeem a reward for the currently logged-in customer. Deducts points from their balance and generates a Shopify discount code.Documentation Index
Fetch the complete documentation index at: https://developers.mageloyalty.com/llms.txt
Use this file to discover all available pages before exploring further.
Usage
Parameters
The ID of the reward to redeem. You can get reward IDs from
getShopRewards.Response
Whether the redemption was successful.
The generated Shopify discount code.
Details of the redeemed reward.
Errors
| Error | Cause |
|---|---|
"Customer not found" | Customer is not logged in or not enrolled |
"Insufficient points" | Customer does not have enough points |
"Reward not found" | The reward ID is invalid |