v1
latestOpenAPI 3.1.02026-07-265817860.8 KBreferrals
Create or fetch a referral code for a customer in a referral program.
post/v1/referrals.create_code
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
}