> 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/loyalty-program-management/program/sample-use-cases-and-flows.md ## Article Content: # Programs: 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. ## Build a tiered loyalty program with progressive rewards Create a multi-tiered loyalty program where customers unlock better rewards and point-earning rates as they reach higher tiers, encouraging increased engagement and retention. 1. Call [Update Loyalty Program](https://dev.wix.com/docs/api-reference/crm/loyalty-program/loyalty-program-management/program/update-loyalty-program.md) to set up the foundational program with base tier naming and branding. 1. Call [Create Reward](https://dev.wix.com/docs/api-reference/crm/loyalty-program/rewards/rewards/create-reward.md) to create different reward configurations for each tier. For example: - Base tier: 20% discount for 1000 points - Silver tier: 20% discount for 800 points - Gold tier: 20% discount for 600 points 1. Call [Query Loyalty Accounts](https://dev.wix.com/docs/api-reference/crm/loyalty-program/accounts/accounts/query-loyalty-accounts.md) to identify customers approaching tier thresholds based on their `points.earned` totals. 1. When customers qualify for tier upgrades, they're automatically transferred to a new tier level. 1. Call [Earn Points](https://dev.wix.com/docs/api-reference/crm/loyalty-program/accounts/accounts/earn-points.md) to give customers bonus points when they reach new tiers (for example, 500 bonus points for reaching Silver tier). 1. When showing available rewards to customers, call [Query Rewards](https://dev.wix.com/docs/api-reference/crm/loyalty-program/rewards/rewards/query-rewards.md) and filter results based on the customer's current tier from their loyalty account. 1. Call [Get Program Totals](https://dev.wix.com/docs/api-reference/crm/loyalty-program/accounts/accounts/get-program-totals.md) to analyze overall program performance and tier distribution across your customer base.