Menu
Create Referral
Create referral code for an advocate
POST
/v1/referralsUse it in a workflow
- Add a step and choose the Talon.One connector.
- Pick the Create Referral action (under integration).
- Fill in the fields below, then reference the result from later steps as
{{createReferral.response.data}}.
Request
Request body
Enter the body as JSON in the step's Body field.
{
"campaignId": 78,
"advocateProfileIntegrationId": "URNGV8294NV",
"startDate": {},
"expiryDate": {},
"usageLimit": 1,
"friendProfileIntegrationId": "BZGGC2454PA",
"attributes": {
"channel": "web"
}
}
Response
Returns 201 with an object. Read it in later steps with {{createReferral.response.data.<field>}}.
{
"id": 6,
"created": {},
"usageLimit": 1,
"campaignId": 78,
"advocateProfileIntegrationId": "URNGV8294NV",
"code": "27G47Y54VH9L",
"usageCounter": 1,
"startDate": {},
"expiryDate": {},
"friendProfileIntegrationId": "BZGGC2454PA",
"attributes": {
"channel": "web"
},
"importId": 4
}
Need more? See the Talon.One guide for connection setup and behaviour shared by every action.
Was this page helpful?