Last updated
Last updated
POST
GetBadgeDetailsByIdThe GetBadgeDetailsById
API endpoint retrieves the detailed information of a specific badge challenge based on the provided ChallengeId
and UserId
.
The returned data includes challenge metadata, milestones, prizes, rewards, group progress, and trigger progress, along with additional details about any locked parent challenges.
This API works only with challenges that have a badge reward type. For points and voucher reward challenge details check GetDetailsById.
Display Badge and Reward Information: Retrieves and displays badge-related information and rewards available in a challenge, customized to the user's progress and achievements.
Basic Badge Challenge Retrieval: Retrieve details for a specific badge challenge using the challenge ID and user ID.
Locked Challenge Handling: Fetch and display challenge details, even when it is locked, showing parent challenge information.
Determine Challenge Lock Status: Checks if a challenge is locked for a user based on their progress in related parent challenges, providing the user with details on how to unlock it.
X-ClientId and X-Message are only required with V1 API.
Returns a challenge object if success. Otherwise, return status Code message error.
Response Fields:
data
(List): A list of challenges.
pagesNum
(int): The current page number.
count
(int): The total number of challenges matching the criteria.
Category: Category information of the challenge.
Rewards (Object): List of rewards that user won over that challenge.
Prizes (List of Milestones): The milestones won on the challenge.
Prizes (List of Prizes): List of prize details
LockedEvent (Object): Details of the parent challenge if the current challenge is locked.
GroupProgress (List of Triggers Groups): Progress of triggers groups within the challenge.
TriggersProgress (List of Triggers Progress): Progress of individual triggers within the challenge.
Earned Points = 1
Subscribe Vouchers Count = 2
Redeemed Points = 3
Redeemed Vouchers Count = 4
Total Points Balance = 5
Hit Tier = 6
Attribute | Type | Options | Description |
---|---|---|---|
Property | Type | Options | Description |
---|---|---|---|
Property | Type | Description |
---|---|---|
Property | Type | Description |
---|---|---|
Property | Type | Description |
---|---|---|
Property | Type | Description |
---|---|---|
Property | Type | Description |
---|---|---|
Property | Type | Description |
---|---|---|
Property | Type | Description |
---|---|---|
Parameter | Type | Description |
---|---|---|
X-ClientId
Provided Client Id.
X-Message
Provided encrypted message.
Accept-language
Selected language for response.
UserId
The phone number of the user for whom challenges are being retrieved.
ChallengeId
Unique identifier for the badge challenge.
Id
Unique identifier for the challenge.
Name
The name of the challenge.
Description
Brief summary of the challenge.
Startdate
Challenge start date.
Enddate
Challenge end date.
PeopleFinished
Number of people that completed the challenge.
EndsAfter
Days left until the challenge ends.
IsLocked
If isLocked
equals 1 it waits until the parent challenge is achieved.
LockedEvent
Details of the parent challenge if the current challenge is locked.
Category*
Category info of the challenge.
Image
The URL for the challenge's image.
Prizes*
List of milestones that users have on that challenge.
GroupProgress*
An object that shows user progress over the triggers group.
Rewards*
List of rewards that user won over that challenge.
Id
Unique identifier of the category.
Name
Name of the category.
RewardId
The unique identifier of the reward.
RewardName
The name of the reward.
Duration
The duration for which the reward is valid.
DurationType*
The type of duration (e.g., Days
, Months
).
RewardType*
The type of reward (e.g., Points
, Voucher
).
RewardValue
The value of the reward (e.g., 10% Off
).
User ID
User phone number associated with the milestone.
MilestoneId
ID of the milestone associated with the prize
Prizes*
List of prize details, The prize appears only when it is not claimed, once claimed, it moves to history.
Value
Value of the prize, either be points amount or voucher code.
ExpirationDate
Expiration date of the prize.
Description
Description of the prize.
RewardType*
Type of reward.
Id
The unique identifier of the parent challenge.
Name
The name of the parent challenge.
Description
A brief description of the parent challenge.
StartDate
The start date of the parent challenge.
EndDate
The end date of the parent challenge.
Image
URL to the parent challenge image.
GroupId
Unique identifier of the group.
GroupOrder
Order of the group.
Operator*
Logical operator used between groups (e.g., AND, OR).
TriggersProgress*
List of triggers within the group.
TriggerId*
Unique identifier of the trigger.
TriggerType*
Type of the trigger (e.g., Voucher, Points).
TriggerName
Name of the trigger.
TriggerOrder
Order of the trigger within the group.
Operator*
Logical operator used between triggers (e.g., AND, OR).
TriggerFrequency
The amount of actions required to complete the trigger.
ActionLeft
Number of actions left to complete the trigger.
Progress
Progress percentage of the trigger.