cURL
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" } }
Redeem Code Payload
Descripción del código
"Promo 1"
Monto del código
100
El código para redimir
"CJXEQZK"
Fecha de expiración del código
"2020-01-01T00:00:00.000Z"
The OpenAPI spec
true
Show child attributes