Create referral codes for multiple advocates
POST {{baseUrl}}/v1/referrals_for_multiple_advocates?silent=yes
Creates unique referral codes for multiple advocates. The code will be valid for the referral campaign for which it is created, indicated in the campaignId parameter, and one referral code will be associated with one advocate using the profile specified in the advocateProfileIntegrationId parameter as the advocate's profile.
Request Params
| Key | Datatype | Required | Description | 
|---|---|---|---|
| silent | string | Possible values: yesorno. | 
- yes: Increases the perfomance of the API call by returning a 204 response.
- no: Returns a 200 response that contains the updated customer profiles. |
Request Body
{"startDate"=>"2020-11-10T23:00:00Z", "expiryDate"=>"2021-11-10T23:00:00Z", "usageLimit"=>1, "campaignId"=>45, "advocateProfileIntegrationIds"=>["URNGV8294NV", "DRPVV9476AF"], "attributes"=>{"channel"=>"web"}, "validCharacters"=>["A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M", "N", "O", "P", "Q", "R", "S", "T", "U", "V", "W", "X", "Y", "Z"], "referralPattern"=>"REF-###-###"}
HEADERS
| Key | Datatype | Required | Description | 
|---|---|---|---|
| Content-Type | string | ||
| Accept | string |