Menu
Create Referrals For Multiple Advocates
Create referral codes for multiple advocates
POST
/v1/referrals_for_multiple_advocatesUse it in a workflow
- Add a step and choose the Talon.One connector.
- Pick the Create Referrals For Multiple Advocates action (under integration).
- Fill in the fields below, then reference the result from later steps as
{{createReferralsForMultipleAdvocates.response.data}}.
Request
Query parameters
Request body
Enter the body as JSON in the step's Body field.
{
"usageLimit": 1,
"campaignId": 45,
"advocateProfileIntegrationIds": [
"URNGV8294NV",
"DRPVV9476AF"
],
"startDate": {},
"expiryDate": {},
"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-###-###"
}
Response
Returns 201 with an object. Read it in later steps with {{createReferralsForMultipleAdvocates.response.data.<field>}}.
{
"totalResultSize": 1,
"data": [
{
"code": "27G47Y54VH9L",
"created": {},
"usageLimit": 1,
"campaignId": 78,
"usageCounter": 1,
"batchId": "tqyrgahe",
"advocateProfileIntegrationId": "URNGV8294NV",
"expiryDate": {},
"importId": 4,
"friendProfileIntegrationId": "BZGGC2454PA",
"attributes": {
"channel": "web"
},
"id": 6,
"startDate": {}
}
]
}
Need more? See the Talon.One guide for connection setup and behaviour shared by every action.
Was this page helpful?