Create referral
GET {{integrationBaseUrl}}/customer_engagement/referral?campaignId={{campaignId}}&advocateProfileIntegrationId=testAdvocateProfile&friendProfileIntegrationId=testFriendProfile&startDate=2022-09-30T15:35:02Z&expiryDate=2022-10-30T15:35:02Z&usageLimit=1&.firstName=john&.country=DE
Create a referral code in Talon.One. See the tutorial.
Request Params
| Key | Datatype | Required | Description | 
|---|---|---|---|
| campaignId | string | (Required) The ID of the campaign in Talon.One. | |
| advocateProfileIntegrationId | string | (Required) The integration ID of the advocate. | |
| friendProfileIntegrationId | string | The profile ID of the referred customer. | |
| startDate | string | The date when the code becomes usable. | |
| expiryDate | string | The date when the code becomes unusable. | |
| usageLimit | number | Number of times a referral code can be used. This can be set to 0 for no limit, but any campaign usage limits will still apply. | |
| .firstName | string | Optional parameter to set the value of custom attributes. They are defined in the Campaign Manager, | |
| see Managing attributes. | 
Prefix each attribute name with ..
Certain attributes can also be set to mandatory in your Application settings. If your Application uses mandatory attributes, you must use this parameter to set their value.
Full URI example: https://<url>?applicationId=5&.myAttribute1=1234&.myAttribute2=abc.
|
| .country | string |  | Optional parameter to set the value of custom attributes. They are defined in the Campaign Manager,
see Managing attributes.
Prefix each attribute name with ..
Certain attributes can also be set to mandatory in your Application settings. If your Application uses mandatory attributes, you must use this parameter to set their value.
Full URI example: https://<url>?applicationId=5&.myAttribute1=1234&.myAttribute2=abc.
|
HEADERS
| Key | Datatype | Required | Description | 
|---|---|---|---|
| customer-engagement-platform-name | string | (Required) The name of the third-party platform. | |
| destination-hostname | string | (Required) The base URL of your Talon.One deployment. | |
| X-DRY-RUN | boolean | Indicates whether to persist the changes. Changes are ignored when X-DRY-RUN=true. | |
| Accept | string |