> Portal Navigation: > > - Append `.md` to any URL under `https://dev.wix.com/docs/` to get its markdown version. > - Pages are either content pages (article or reference text) or menu pages (a list of links to child pages). > - To get a menu page, truncate any URL to a parent path and append `.md` (e.g. `https://dev.wix.com/docs/sdk.md`, `https://dev.wix.com/docs/sdk/core-modules.md`). > - Top-level index of all portals: https://dev.wix.com/docs/llms.txt > - Full concatenated docs: https://dev.wix.com/docs/llms-full.txt ## Resource: Sample Use Cases and Flows ## Article: Sample Use Cases and Flows ## Article Link: https://dev.wix.com/docs/api-reference/crm/loyalty-program/rewards/coupons/sample-use-cases-and-flows.md ## Article Content: # Coupons: 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. ## Redeem loyalty points for coupons Build a loyalty rewards system where customers can exchange their earned points for discount coupons, creating an incentive for repeat purchases and increased engagement. 1. Call [Get Current Member Account](https://dev.wix.com/docs/api-reference/crm/loyalty-program/accounts/accounts/get-current-member-account.md) to retrieve the customer's current point balance and loyalty account details. 1. Call [Query Rewards](https://dev.wix.com/docs/api-reference/crm/loyalty-program/rewards/rewards/query-rewards.md) to display available rewards the customer can redeem with their points. 1. When a customer selects a reward, call [Redeem Current Member Points For Coupon](https://dev.wix.com/docs/api-reference/crm/loyalty-program/rewards/coupons/redeem-current-member-points-for-coupon.md) to convert their points into a usable coupon. 1. Call [Get Current Member Coupons](https://dev.wix.com/docs/api-reference/crm/loyalty-program/rewards/coupons/get-current-member-coupons.md) to show the customer all their available loyalty coupons. 1. During checkout, you can apply the loyalty coupon using the [Apply Discount To Checkout](https://dev.wix.com/docs/api-reference/crm/loyalty-program/rewards/checkout-discount/apply-discount-to-checkout.md) to receive the discount.