Update Affiliate Referral Id
PUT/affiliate-manager/affiliate-campaign/affiliate/:affiliateId/referral-id
Set the referral id an affiliate is tracked by within a location.
Request
Version stringrequired
API Version
Available options
v4affiliateId stringrequired
Affiliate Id
- application/json
- Body
- Example (auto)
Bodyrequired
campaignIdstringrequired
Campaign the affiliate is enrolled in
referralIdstringrequired
New referral id. Must be unused across the location.
Possible values: >= 3 characters and <= 64 characters, Value must match regular expression ^[A-Za-z0-9_]{3,64}$
locationIdstringrequired
Location Id
{
"campaignId": "6385d230f6d19db03eef6fb2",
"referralId": "john122",
"locationId": "ve9EPM428h8vShlRW1KT"
}
Successful response
- application/json
- Schema
- Example (auto)
Schema
referralIdstringrequired
The referral id now stored for this affiliate
referralLinkstringrequired
Referral link carrying the new referral id
campaignIdstringrequired
Campaign the referral id belongs to
{
"referralId": "john122",
"referralLink": "https://link.example.com/campaign?am_id=john122",
"campaignId": "6385d230f6d19db03eef6fb2"
}