Codes
The code object
Retrieve code
Redeem code for user
Last updated
Last updated
GET /v1/codes/{codeId} HTTP/1.1
Host: localhost:8080
Authorization: Bearer YOUR_OAUTH2_TOKEN
Accept: */*
{
"status": "ACTIVE",
"redemptions": 1,
"reward": 1,
"number": 1
}POST /v1/codes/redemptions HTTP/1.1
Host: localhost:8080
Authorization: Bearer YOUR_OAUTH2_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 51
{
"user": {
"email": "name@gmail.com"
},
"codeId": "text"
}