This article shares a possible use case you could support. This can be a helpful jumping off point as you plan your implementation.
Build a checkout where customers can easily apply loyalty coupons they've already redeemed to their cart, providing instant savings and encouraging loyalty program engagement.
- Call Get Current Member Account to retrieve the customer's loyalty account details and available point balance.
- Call Query Rewards and filter results based on the customer's tier (
configsByTier.tierId field) to display available rewards they can redeem.
- When a customer sele ts a reward, call Redeem Current Member Points For Coupon to convert points into a usable coupon.
- During checkout, call Create Checkout to initialize the checkout session with cart items.
- Call Query Loyalty Checkout Discounts to retrieve all available loyalty discounts for this customer, including their redeemed coupons.
- Present the customer with their available redeemed coupons (those with
LOYALTY_COUPON discount type) in the checkout interface.
- When the customer selects a coupon to apply, call Apply Discount to Checkout with the checkout ID and the selected coupon details.
- Complete the purchase using Create Order or the appropriate payment processing API.