rewards
POST /v1/rewards.redeem
Redeem a reward promo code for a customer.
Request
- Base URLhttps://api.useautumn.com
- AuthHTTP bearer
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Headers
x-api-versionstring required
Request body
Example request
{
"code": "REWARD10",
"customer_id": "cus_456"
}Response
OK
Example response
{
"reward_id": "reward_789",
"entitlements_granted": [
{
"feature_id": "messages",
"balance": 100
}
]
}Changes
No recorded changes to this operation across all 1 revision of this API.