Skip to content

Create Referral Program

Tool name: create-referral-program

Creates a referral program; refused for accounts without referral program access. Contacts can then recommend the account through their personal link, and contacts reaching the threshold are tagged, which may start automations. The counter field is set only here and cannot be changed later; change the rest with update-referral-program.

Input schema

namestring, [ 1 .. 250 ] charactersrequired

Name of the program in KlickTipp

targetUrlstring, [ 1 .. 2000 ] charactersrequired

Absolute URL of the page a recommended person is sent to

thresholdinteger, [ 1 .. 1000000000 ]required

Successful recommendations a contact needs before the program tags them

counterCustomFieldIdnull or string, [ 1 .. 64 ] characters

ID of a number custom field, not multi-value, that counts a contact's successful recommendations; cannot be changed later

Default:null
metaLabelsArray of strings

Labels of the program

Default:null
notesnull or string, <= 1000 characters

Internal note

Default:null
accountIdnull or integer, >= 1

User ID of the account; omit for the account of the access token

Default:null
Input example
{ "name": "string", "targetUrl": "string", "threshold": 1, "counterCustomFieldId": null, "metaLabels": null, "notes": null, "accountId": null }

Output schema

accountIdintegerrequired
idintegerrequired
namestringrequired
notesstringrequired
metaLabelsArray of stringsrequired
targetUrlstringrequired
thresholdintegerrequired
counterCustomFieldIdstringrequired
editUrlstringrequired
Output example
{ "accountId": 0, "id": 0, "name": "string", "notes": "string", "metaLabels": [ "string" ], "targetUrl": "string", "threshold": 0, "counterCustomFieldId": "string", "editUrl": "string" }