Campaigns Configurations
Retrieve active campaigns configuration for the loyalty program.
Streak campaign rewards
For campaigns withtype set to Streak, the response includes the interval used to count the streak and the step range for every reward.
streakIntervalUnit is Day, Week, or Month. Each reward’s startStep and endStep are measured in that unit: day 7 of a daily streak, week 7 of a weekly streak, or month 7 of a monthly streak.
walletReward of 0 are progress ranges with no points. Use them to render the full streak timeline, then highlight the tiers that grant points or a coupon.
Example: Daily streak campaign
streakIntervalUnit: "Day"):
startStep 30 and no endStep, so it applies from day 30 onward.
To read a customer’s position against these steps, call Customer Campaigns Progress with campaignId.Headers
Query Parameters
Unique identifier for the customer that you can reference across the customer's whole lifetime. Could be a database ID, random string, email, or anything that uniquely identifies the customer. If provided, the API filters and returns only the campaigns that can be achieved by this customer.
Response
Campaigns retrieved successfully
Specifies the maximum number of times the campaign can be earned if the value of isRepeatable is true. If the value is -1, it means the campaign can be earned indefinitely. Example: A value of 3 means the customer can earn the campaign reward up to three times before it is no longer available.
The type of the campaign. Possible values: SignUp (Reward is given when a user signs up), SocialMedia (Reward is linked to social media activity), ScheduledChallenge (A time-based challenge that gives rewards), Spin The Wheel (Rewards are given based on a spin-the-wheel game), EventBased (Reward is given based on specific customer events), HighScore (Reward is given based on achieving high scores in a campaign), Birthday (Reward is given for birthday-related activity), Streak (Reward is given for consecutive actions over a Day, Week, or Month interval).
The URL that the redirection button points to. When customers click the button, they will be redirected to this link. It should lead to a relevant page that provides more information or facilitates the reward campaign achievement. Example: "https://yourwebsite.com/rewards" directs customers to a page where they can view their rewards.