cURL
curl --request POST \ --url https://api.firstpromoter.com/api/v2/affiliate/referrals \ --header 'Account-ID: <account-id>' \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data ' { "email": "[email protected]", "promoter_campaign_id": 123, "uid": "<string>" } '
{ "id": 123, "uid": "<string>", "state": "subscribed", "metadata": {}, "created_at": "2023-11-07T05:31:56Z", "customer_since": "2023-11-07T05:31:56Z", "email": "[email protected]", "promoter_campaign": { "id": 123, "campaign_id": 123, "created_at": "2023-11-07T05:31:56Z", "campaign": { "id": 123, "name": "<string>", "color": "<string>" } } }
Access token passed as a Bearer token in the Authorization header
Account identifier that specifies which account is making the request
"acc_123456"
Email of the referral
The ID of the promoter campaign
Unique ID of the referral
Successful response
subscribed
signup
active
cancelled
refunded
denied
pending
moved
Show child attributes