Get user reward by userRewardId
GET/userReward/:userRewardId
Get user reward by userRewardId
Request
Path Parameters
userRewardId userRewardIdrequired
The unique identifier for the userReward
Responses
- 200
- 403
- 404
- 500
UserRewards retrieved successfully
- application/json
- Schema
- Example (from schema)
Schema
expiresAt date-time
state userRewardState (string)
Possible values: [pending
, redeemed
, cancelled
]
rewardId string
userId string
remainingUses integer
id userRewardId (string)
Unique identifier for UserReward
createdAt date-time
{
"expiresAt": "2024-07-29T15:51:28.071Z",
"state": "pending",
"rewardId": "string",
"userId": "string",
"remainingUses": 0,
"id": "UR3b19Z1n",
"createdAt": "2024-07-29T15:51:28.071Z"
}
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...