referrals
POST /v1/referrals.redeem_code
Redeem a referral 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": "REF123",
"customer_id": "cus_456"
}Response
OK
Example response
{
"id": "<string>",
"customer_id": "<string>",
"reward_id": "<string>"
}Changes
No recorded changes to this operation across all 1 revision of this API.