Skip to content

Delete Referral Program

Tool name: delete-referral-program

Deletes a referral program, also without referral program access; one still used elsewhere is refused, and the refusal names what uses it, as the app's delete dialog does. Every contact's personal recommendation link stops working and the program's SmartTag is deleted with it, which cannot be undone; contacts, counter values and manual tags stay. Pass confirm=true only after the user confirmed deleting this program.

Input schema

idinteger, >= 1required

ID of the program, from search-referral-programs

confirmboolean

true only after the user confirmed deleting this program

Default:false
accountIdnull or integer, >= 1

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

Default:null
Input example
{ "id": 1, "confirm": false, "accountId": null }

Output schema

accountIdintegerrequired
idintegerrequired
namestringrequired
Output example
{ "accountId": 0, "id": 0, "name": "string" }