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