Codes

Codes are used to credit users with $TOKENs. Each code has two required parameters, a reward amount and total number of times the code can be redeemed.

The code object

This object represents a code. It lets you retrieve information about the code including amount, status, redemptions, and redemptions remaining.

Retrieve code

Get token code status

get
Authorizations
OAuth2clientCredentialsRequired
Token URL:
Path parameters
codeIdstringRequired
Responses
200

Ok

application/json
get
/codes/{codeId}
200

Ok

Redeem code for user

For a more seamless UX, you can instantly credit a user by redeeming a code on their behalf.

Redeem a token code for a user

post
Authorizations
OAuth2clientCredentialsRequired
Token URL:
Body
userany ofRequired
or
or
codeIdstringRequired
Responses
200

Ok

No content

post
/codes/redemptions
200

Ok

No content

Last updated