POST
/
royalty
/
coins-redeem-codes
curl --request POST \
  --url https://api.service.getjusto.com/v3/royalty/coins-redeem-codes \
  --header 'Content-Type: application/json' \
  --data '{
  "description": "Promo 1",
  "code": "CJXEQZK",
  "amount": 100,
  "expirationDate": "2020-01-01T00:00:00.000Z"
}'
{
  "success": true,
  "data": {
    "_id": "tab-4c48bf33-1411-4c3f-adac-db39b4631cb8",
    "websiteId": "3omj3",
    "code": "CJXEQZK",
    "description": "Justo C#16699-02",
    "source": "api",
    "amount": 100,
    "expirationDate": "2020-01-01T00:00:00.000Z",
    "isRedeemed": false,
    "redeemedAt": "2020-01-01T00:00:00.000Z",
    "redeemedById": "3omj3",
    "redeemedByEmail": "example@email.com",
    "createdAt": "2020-01-01T00:00:00.000Z",
    "createdById": "3omj3",
    "deletedAt": "2020-01-01T00:00:00.000Z"
  }
}

Body

application/json

Redeem Code Payload

The body is of type object.

Response

200
application/json

The OpenAPI spec

The response is of type object.