Checkout Discount: Sample Use Cases and Flows

This article shares a possible use case you could support. This can be a helpful jumping off point as you plan your implementation.

Apply pre-redeemed loyalty rewards during checkout

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.

  1. Call Get Current Member Account to retrieve the customer's loyalty account details and available point balance.
  2. Call Query Rewards and filter results based on the customer's tier (configsByTier.tierId field) to display available rewards they can redeem.
  3. When a customer sele ts a reward, call Redeem Current Member Points For Coupon to convert points into a usable coupon.
  4. During checkout, call Create Checkout to initialize the checkout session with cart items.
  5. Call Query Loyalty Checkout Discounts to retrieve all available loyalty discounts for this customer, including their redeemed coupons.
  6. Present the customer with their available redeemed coupons (those with LOYALTY_COUPON discount type) in the checkout interface.
  7. When the customer selects a coupon to apply, call Apply Discount to Checkout with the checkout ID and the selected coupon details.
  8. Complete the purchase using Create Order or the appropriate payment processing API.
Did this help?