cURL
curl --request PUT \ --url https://api.affonso.io/v1/referrals/{id} \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data ' { "email": "[email protected]", "subscription_id": "<string>", "customer_id": "<string>", "status": "lead", "name": "<string>", "metadata": {} } '
{ "success": true, "data": { "id": "<string>", "affiliate_id": "<string>", "program_id": "<string>", "email": "<string>", "customer_id": "<string>", "subscription_id": "<string>", "status": "lead", "name": "<string>", "metadata": {}, "created_at": "2023-11-07T05:31:56Z", "converted_at": "2023-11-07T05:31:56Z" } }
Update a referral’s details or status.
API key authentication. Prefix with 'sk_live_' for production or 'sk_dev_' for development.
Referral ID
lead
trialing
customer
active
canceled
rejected
Customer name
Custom key-value data
Referral updated
Show child attributes
Was this page helpful?