Get Reward Code
GET/coins/:mint/redeem/:code
Gets information about a specific reward code for a coin
Request
Path Parameters
mint stringrequired
The mint address of the coin
code stringrequired
The reward code to retrieve
Responses
- 200
- 400
Success
- application/json
- Schema
- Example (from schema)
Schema
code stringrequired
The reward code
amount integerrequired
The amount of coins rewarded by this code
{
"code": "XYZ123",
"amount": 100
}
Bad request - Code is invalid or already used
- application/json
- Schema
- Example (from schema)
Schema
error string
Possible values: [used, invalid]
Error message indicating why the code cannot be redeemed
{
"error": "used"
}
Loading...