Message service

List groups

Retrieve a list of all SMS groups.

POST https://api.coupontools.com/v3/smstool/grouplist

Authentication:

API Keys

Example

Loading...

Response

Loading...

Possible errors

103: Your account is not connected with the Coupontools SMS services

List contacts

Retrieve a list of all contacts from an SMS group.

POST https://api.coupontools.com/v3/smstool/userlist

Authentication:

API Keys

Parameters

Required smsgroup SMS group ID (gro_XXXXXX)
Can be found in the 'List groups' API response

Example

Loading...

Response

Loading...

Possible errors

103: Your account is not connected with the Coupontools SMS services
200: Missing parameter: smsgroup
301: Invalid character in parameter: smsgroup
514: Group ID not found

Create group

Create an SMS group.

POST https://api.coupontools.com/v3/smstool/addgroup

Authentication:

API Keys

Parameters

Required group_name String
Name of the group

Example

Loading...

Response

Loading...

Possible errors

103: Your account is not connected with the Coupontools SMS services

Add contact

Add a contact to an SMS group.

POST https://api.coupontools.com/v3/smstool/addcontact

Authentication:

API Keys

Parameters

Required smsgroup SMS group ID (gro_XXXXXX)
Can be found in the 'List groups' API response
Required phone Phone number
Phone number. International E.164 notation
Optional first_name First name
 
Optional last_name Last name
 
Optional customfield1 - customfield7 String
Add data to custom field 1 through 7

Example

Loading...

Response

Loading...

Possible errors

103: Your account is not connected with the Coupontools SMS services
200: Missing parameter: phone
200: Missing parameter: smsgroup
301: Invalid character in parameter: smsgroup
303: incorrect format in birthday field, must be yyyy-MM-dd
514: Group ID not found

Email service

List groups

Retrieve a list of all email groups.

POST https://api.coupontools.com/v3/emailtool/grouplist

Authentication:

API Keys

Example

Loading...

Response

Loading...

Possible errors

103: Your account is not connected with the Coupontools Email services

List contacts

Retrieve a list of all contacts from an email group.

POST https://api.coupontools.com/v3/emailtool/userlist

Authentication:

API Keys

Parameters

Required emailgroup Email group ID (gro_XXXXXX)
Can be found in the 'List groups' API response

Example

Loading...

Response

Loading...

Possible errors

103: Your account is not connected with the Coupontools Email services
200: Missing parameter: emailgroup
301: Invalid character in parameter: emailgroup
514: Group ID not found

Create group

Create an email group.

POST https://api.coupontools.com/v3/emailtool/addgroup

Authentication:

API Keys

Parameters

Required group_name String
Name of the group

Example

Loading...

Response

Loading...

Possible errors

103: Your account is not connected with the Coupontools Email services

Add contact

Add a contact to an email group.

POST https://api.coupontools.com/v3/emailtool/addcontact

Authentication:

API Keys

Parameters

Required emailgroup Email group ID (gro_XXXXXX)
Can be found in the 'List groups' API response
Required email Email address
Valid email address
Optional first_name First name
 
Optional last_name Last name
 
Optional custom1 - custom10 String
Add data to custom field 1 through 10

Example

Loading...

Response

Loading...

Possible errors

103: Your account is not connected with the Coupontools Email services
200: Missing parameter: email
200: Missing parameter: emailgroup
301: Invalid character in parameter: emailgroup
303: incorrect format in birthday field, must be yyyy-MM-dd
514: Group ID not found

Webhooks

Example webhooks for coupon, coupon edit, subaccount and, landing page.

Coupon

Loading...

Coupon edit

Loading...

Subaccount

Loading...

Web Loyalty (legacy)

Loading...

Wallet Loyalty

Loading...

Landing page

Loading...

Directory page

Loading...

Verification

Get important information about a webhook which can be used as verification.

POST https://api.coupontools.com/v4/webhook/verification

Authentication:

API Keys

Parameters

Required webhook Webhook id (evt_XXXXXXXXXXXXXXXXXXXX)
Can be found in the "id" property of a webhook payload

Example

Loading...

Response

Loading...

Possible errors

200: Missing parameter: webhook
509: Webhook not found