Step 1: Fetch All Available Reward Campaigns
Use the Get Reward Campaigns Configurations API endpoint to list all active and visible campaigns. This response provides:- Campaign Name and Icon: Display campaign names like “Join our family 👯♂️” and their corresponding icons
- Description: Use descriptions to explain the campaign
- Rewards: Highlight the rewards customers will earn, such as double points (
walletRewardFactor: 2) - Visibility and Activation: Ensure only visible and active campaigns are displayed based on
visibilityandactivationfields
- Render the campaigns as a scrollable grid or list, with icons and descriptions
- Add a “Check Your Rewards” button using the
redirectionButtonTextandredirectionButtonLinkfields

Step 2: Fetch Customer Progress for Campaigns
To provide a personalized experience, fetch progress for the displayed campaigns using the Get Customer Campaigns Progress API. This response includes:- achievedCount: Indicates how many times the customer has achieved the campaign
- completionPercentage: Shows progress for ongoing campaigns (e.g., 33% for “Third Order Campaign 🛍️”)
- Use completionPercentage to display progress as a progress bar or circle
- Highlight completed campaigns where
completionPercentage = 100and dim or gray-out incomplete campaigns

Step 3: Integrating Rewards and Progress
Combine data from both endpoints to create a seamless user experience: For Completed Campaigns:- Use
achievedCountandcompletionPercentage = 100to highlight campaigns - Show rewards (e.g., “Sign-up bonus unlocked!”) prominently for completed campaigns
- Use
completionPercentageto display a progress bar (e.g., “50% complete”) - Include a call-to-action, such as “Complete your next purchase to earn double points!” using the campaign description or custom text
- Grid Layout of Campaigns: Campaign name and icon at the top, progress bar or circle beneath the name, rewards displayed below the progress bar
- Color Coding: Use green for completed campaigns, orange for in-progress, and gray for locked
- Actionable Buttons: Include “Claim Reward” for completed campaigns or “Learn More” for ongoing ones