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>"
}
}
}
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>"
}
}
}
Access token passed as a Bearer token in the Authorization header
Account ID required with bearer token
Account identifier that specifies which account is making the request
"acc_123456"
Successful response
The response is of type object
.