Rondo Docs

Redeem

POST/api/redeem

Redeems a promo code for Pro: from when your Pro would end, for the code's days. Not while a store subscription renews. On the web only (store rules).

Authorization

session
AuthorizationBearer <token>

A Kratos session tokenized as a JWT.

In: header

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

curl -X POST "https://example.com/api/redeem" \  -H "Content-Type: application/json" \  -d '{    "code": "string"  }'
{  "pro": true,  "pro_until": "2019-08-24T14:15:22Z",  "provider": "stripe",  "renews": true}