Affiliate API Documentation
Affiliate Assets
Affiliate Campaigns
Affiliate Commissions
Affiliate Contract Documents
Affiliate Email Settings
Affiliate Payout Methods
Affiliate Payouts
Affiliate Promo Codes
Affiliate Promoter Campaigns
Affiliate Promoters
Affiliate Referral Links
Affiliate Referrals
Affiliate Reports
Affiliate Referrals
Update referral
PUT
/
referrals
/
{id}
curl --request PUT \
--url https://v2.firstpromoter.com/api/v2/affiliate/referrals/{id} \
--header 'ACCOUNT-ID: <api-key>' \
--header 'Account-ID: <account-id>' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"email": "[email protected]",
"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>"
}
}
}
Authorizations
Access token passed as a Bearer token in the Authorization header
Account ID required with bearer token
Headers
Account identifier that specifies which account is making the request
Example:
"acc_123456"
Path Parameters
Body
application/json
Response
200
application/json
Successful response
The response is of type object
.
curl --request PUT \
--url https://v2.firstpromoter.com/api/v2/affiliate/referrals/{id} \
--header 'ACCOUNT-ID: <api-key>' \
--header 'Account-ID: <account-id>' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"email": "[email protected]",
"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>"
}
}
}
Assistant
Responses are generated using AI and may contain mistakes.