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

Authorization
string
header
required

Access token passed as a Bearer token in the Authorization header

ACCOUNT-ID
string
header
required

Account ID required with bearer token

Headers

Account-ID
string
required

Account identifier that specifies which account is making the request

Example:

"acc_123456"

Path Parameters

id
integer
required

Body

application/json

Response

200
application/json

Successful response

The response is of type object.