Get a rewardType by ID
GET/rewardType/:rewardTypeId
Get a rewardType by ID
Request
Path Parameters
rewardTypeId rewardTypeIdrequired
The unique identifier for the rewardType
Responses
- 200
- 404
- 500
rewardType retrieved successfully
- application/json
- Schema
- Example (from schema)
Schema
data stringrequired
JSON string containing metadata, actions, and functions associated with the reward.
singleUse boolean
Boolean to specify if the rewardType can reeemed once.
thumbnail stringnullable
URL of the thumbnail for the reward type.
description string
Detailed description of the reward type.
createdAt date-time
The date and time when the reward type was created.
title stringrequired
Title of the reward type.
id rewardTypeId (string)
Unique identifier for RewardType
name stringrequired
Name of the reward type.
category stringrequired
Category of the reward type.
{
"data": "{\"validity\": \"30 days\", \"features\": [\"no ads\", \"exclusive content\"]}",
"singleUse": "true",
"thumbnail": "https://example.com/thumbnail.png",
"description": "This reward gives you access to premium features for one month.",
"createdAt": "2023-10-23T10:00:00Z",
"title": "One Month Premium Subscription",
"id": "R3b19Z1n",
"name": "Premium Subscription",
"category": "Digital Goods"
}
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...