Reward Campaigns
Reward campaigns are a great way to inspire and engage your customers. But to make them truly effective, customers need a simple and clear way to see what’s available and how they’re progressing. That’s where a thoughtful approach to displaying reward campaigns comes in. In this tutorial, we’ll show you how to use two essential APIs to create a user experience that’s both interactive and transparent:- Get Reward Campaigns Configurations API :This gives you all the details about active campaigns—what they’re about, the rewards on offer, and who’s eligible.
- Get Customer Reward Campaigns Progress API : With this, you can show real-time updates on how close someone is to earning their rewards.
- How to display active campaigns with all the details customers care about.
- How to track progress so customers can see exactly where they stand.
- How to bring it all together in a way that’s easy to understand and engaging.
1️⃣ 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 to create a visually engaging list.
- Description: Use descriptions to explain the campaign, e.g., “Welcome to the family! Check out your new reward for signing up 😉”.
- 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.
Example Campaign Data:
- Render the campaigns as a scrollable grid or list, with icons and descriptions.
- Add a “Check Your Rewards” button using the
redirectionButtonTextandredirectionButtonLinkfields.

2️⃣ Step 2: Fetch Customer Progress for Campaigns
To provide a personalized experience, fetch progress for the displayed campaigns using the/customers/rewards-campaigns-progress endpoint. 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 🛍️”).
Example Progress Response:
- Use completionPercentage to display progress as a progress bar or circle.
- Highlight completed campaigns where
completionPercentage = 100and dim or gray-out incomplete campaigns.

3️⃣ 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.
- Dim or hide campaigns where
isUnlocked = false.
Visual Mockup Suggestion:
- Grid Layout of Campaigns:
- Campaign name and icon at the top.
- Progress bar or circle beneath the name.
- Rewards displayed below the progress bar (e.g., “Earn 2x points!”).
- 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.
Example UI Flow:
- Step 1: Sarah logs into her account and sees a list of reward campaigns:
- “Join our family 👯♂️”: Completed with a glowing green progress bar.
- “Double points”: 50% complete with an orange progress bar.
- “Third Order Campaign 🛍️”: Not started, dimmed icon.
- Step 2: Sarah clicks “Check Your Rewards” and sees detailed rewards for each campaign, including wallet rewards or coupon links.
- Step 3: Sarah is motivated to complete “Double points” by making another purchase.
Why This Matters:
Combining the Get Reward Campaigns Configurations API and the Get Customer Reward Campaigns Progress API ensures:- Personalized Experience: Customers can track their progress and rewards in real time.
- Increased Engagement: Clear visual indicators motivate customers to complete campaigns.
- Streamlined Interaction: Integrated call-to-action buttons encourage immediate participation.