v1
latestOpenAPI 3.0.02026-07-264731126.7 KBReferrals
Update referral
Update a specific referral. The id can be a referral ID, email, uid, or username when used with the find_by parameter in the request body. <Tip>HTTP Request <br/>PUT https://api.firstpromoter.com/api/v2/company/referrals/{id}</Tip>
put/referrals/{id}
Path parameters
idstring required
ID of the referral
Headers
Account-IDstring required
Account id. You can find your Account ID on Your FirstPromoter Dashboard. Navigate to Settings → Integrations
Request body
Example request
{
"split_details": [
{
"promoter_campaign_id": 1002,
"percentage": 25
},
{
"promoter_campaign_id": 1003,
"percentage": 30
}
]
}Response
Referral updated successfully
Example response
{
"promoter_campaign": {
"promoter": {
"id": 3920164,
"status": "active",
"email": "peluwydo@mailinator.com",
"created_at": "2022-04-26T15:28:24.800Z",
"temp_password": "xxxxxxxxxx",
"default_promotion_id": 4210919,
"pref": "db1znwe",
"default_ref_id": "8yi2epelut",
"note": "This is a note",
"parent_promoter_id": 577918,
"earnings_balance": {
"cash": 50744
},
"current_balance": {
"cash": 20044
},
"paid_balance": {
"cash": 30700
},
"auth_token": "xxxxxxxxxxxxxx"
}
}
}