Step 1: Fetch All Available Tiers
Use the Get Tiers Configurations API to fetch the available tiers and their associated benefits. This endpoint returns the details of each tier, including the name, icon, minimum progress required, and benefits for each tier. Sample Response:
Step 2: Fetch Customer Tier Progress
Use the Get Customer Tier Progress API to get the current progress of the logged-in customer. Sample Response:Step 3: Combine Tiers and Progress for UI Display
After fetching both the tier configuration and the customer progress, you can combine the data to create an interactive and motivating display. Visual Suggestions:Completed Tiers
Use a green progress bar to indicate a completed tier and show the “Claim Benefits” button for the customer to redeem rewards.
In-Progress Tiers
Use an orange progress bar for in-progress tiers, and show a button like “Level Up” or “Keep Going!” to encourage the customer to continue earning points.
Locked Tiers
Use a gray progress bar and show the message “Locked” in a faded style to indicate that the tier has not been reached.
- Progress Bars: Use colored progress bars: green for completed, orange for in-progress, and gray for locked
- Tier Icons: Use tier-specific icons (golden badge, platinum badge) for easy recognition
- Benefits List: Show a list of benefits for each tier, with any specific rewards and links to redeem or learn more about them