Get a reward by ID
GET/reward/:rewardId
Get a reward by ID
Request
Path Parameters
rewardId rewardIdrequired
The unique identifier for the reward
Responses
- 200
- 403
- 404
- 500
Reward retrieved successfully
- application/json
- Schema
- Example (from schema)
Schema
description stringrequired
Detailed description of the reward
thumbnail urinullable
Optional URL for the reward's thumbnail image.
id rewardId (string)
Unique identifier for Reward
projectId stringrequired
ID of the project associated with the reward
expiresAt date-timenullable
Expiration date for special rewards
rewardTypeId rewardTypeId (string)required
Unique identifier for RewardType
userRewardCount integer
Number of times this reward has been redeemed.
myUserRewardCount integer
Number of times this reward has been redeemed by the current user.
requiredPoints integer
Possible values: <= 1000000
Points required to claim the reward
name stringrequired
Name of the reward
createdAt date-time
Time representation of entity creation
data stringnullable
Additional JSON metadata for triggers, actions or general easy-access data
maxClaims integernullable
Maximum number of times this reward can be redeemed.
{
"description": "By completing the quest you're awarded with a shimmery golden badge",
"thumbnail": "https://file.playmakers.co/r15Y7T4sM/r15Y7T4sM_thumbnail.png",
"id": "r3b19Z1n",
"projectId": "pGdouyKfY",
"expiresAt": "2025-01-01T09:00:00.00Z",
"rewardTypeId": "R3b19Z1n",
"userRewardCount": 1,
"myUserRewardCount": 2,
"requiredPoints": 10,
"name": "Achievement Unlocked: Explorer",
"createdAt": "2024-01-01T09:00:00.00Z",
"data": "{\"criteria\": \"complete_all_adventure_quests\", \"icon\": \"explorer_badge_icon.png\"}",
"maxClaims": null
}
Forbidden
- application/json
- Schema
- Example (from schema)
- Example
Schema
error string
{
"error": "string"
}
{
"error": "Forbidden access"
}
NotFound
- application/json
- Schema
- Example (from schema)
- Example
Schema
error string
{
"error": "string"
}
{
"error": "A mandatory item was not found"
}
Internal Server Error
- application/json
- Schema
- Example (from schema)
- Example
Schema
error string
{
"error": "string"
}
{
"error": "Internal Server Error"
}
Loading...