product_discount_voucher
reward, which will
apply a percentage discount to a specific product and, optionally, a specific
product variant. If the redemption is successful, the new claimed reward and a
unique voucher (coupon) code will be included in the response.
You can show the voucher code to the customer and instruct them to apply it to
their cart later.
Details of the product to which this voucher applies can be found in
claimed_reward.redeemable.product
, and this should be shown
to the customer.Authorizations
An API key linked to a Program in LoyaltyLion, with a set of permissions (scopes). API keys can be created manually, or acquired through an OAuth2 flow. The API key should be provided as a Bearer
token in the Authorization
header
Path Parameters
Your LoyaltyLion Site ID
Query Parameters
The sales channel from which this request is made. Must be provided as this query parameter, or the X-LoyaltyLion-Channel
header
web
, pos
, mobile
Body
Body
The LoyaltyLion ID of the reward to redeem
Response
201
The unique voucher code that will apply the discount
"LL-XYA3816"
The new claimed reward. The voucher code can be found in claimed_reward.redeemable.code
The customer object, updated as of the reward redemption, i.e. their claimed_rewards
will include the new redemption. This customer will always have state
set to enrolled
, as only enrolled customers can redeem rewards