Create referral code for an advocate
POST {{baseUrl}}/v1/referrals
Creates a referral code for an advocate. The code will be valid for the referral campaign for which is created, indicated in the campaignId
parameter, and will be associated with the profile specified in the advocateProfileIntegrationId
parameter as the advocate's profile.
Request Body
{"startDate"=>"2020-11-10T23:00:00Z", "expiryDate"=>"2021-11-10T23:00:00Z", "usageLimit"=>1, "campaignId"=>78, "advocateProfileIntegrationId"=>"URNGV8294NV", "friendProfileIntegrationId"=>"BZGGC2454PA", "attributes"=>{"channel"=>"web"}}
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
Content-Type | string | ||
Accept | string |