referrals
POST /v1/referrals.create_code
Create or fetch a referral code for a customer in a referral program.
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
{
"customer_id": "cus_123",
"program_id": "prog_123"
}Response
OK
Example response
{
"code": "<string>",
"customer_id": "<string>",
"created_at": 123
}Changes
No recorded changes to this operation across all 1 revision of this API.