Loyalty
List loyalty cards
Retrieve a list of all loyalty cards.
POST
https://api.coupontools.com/v3/loyalty/list
Authentication:
API KeysParameters
When set to true, only campaigns marked as 'active' will be returned.
Example
Response
Get loyalty card
Retrieve loyalty card information by ID.
POST
https://api.coupontools.com/v3/loyalty/info
Authentication:
API KeysParameters
Can be found in the list of all loyalty cards
Example
Response
Possible errors
Loyalty users
Create user
Create a loyalty card user.
POST
https://api.coupontools.com/v3/loyaltyusers/create
Authentication:
API KeysParameters
Example
Response
Possible errors
Link user
Link a user to a loyalty card.
POST
https://api.coupontools.com/v3/loyaltyusers/link
Authentication:
API KeysParameters
Can be found in the list of all loyalty cards
Can be found in the list of all loyalty cards users or with the search function
Example
Response
Possible errors
List users
Retrieve a list of all users for a loyalty card.
POST
https://api.coupontools.com/v3/loyaltyusers/list
Authentication:
API KeysParameters
Can be found in the list of all loyalty cards
Example
Response
Possible errors
Search users
Find a user based on first name, last name, email, phone or ID.
POST
https://api.coupontools.com/v3/loyaltyusers/search
Authentication:
API KeysParameters
Can be found in the list of all loyalty cards
Minimum 3 characters needed in the search field. (Allowed characters: AZaZ09-_@)
Example
Response
Possible errors
Update points
Update the points for a loyalty user
POST
https://api.coupontools.com/v3/loyaltyusers/update
Authentication:
API KeysParameters
Can be found in the list of all loyalty cards
Can be found in the list of all loyalty cards users or with the search function
Amount of points/stamps
Can be found in the list of all loyalty cards.
Example
Response
Possible errors
Distribution
Send loyalty card by email
You need to have an email marketing platform connected to be able to send out marketing emails (check out: integrations -> email marketing).
POST
https://api.coupontools.com/v3/send/email
Authentication:
API KeysParameters
Can be found in the list of all loyalty cards
Email address receiving loyalty card
Subject of email
Example
Response
Possible errors
Send loyalty card by text message
You need to have an SMS marketing platform connected to be able to send out SMS messages (check out: integrations -> SMS marketing).
E.164 phone number format:
First of all, in the international E.164 notation, a leading '0' is removed.
The UK mobile phone number '07911 123456' in international format is '+44 7911 123456', so without the leading zero.
Secondly, in the E.164 notation, all spaces, dashes ['-'] and parentheses [ '(' and ')'] are removed, besides the leading '+', all characters should be numeric.
Example: +447911123456
POST
https://api.coupontools.com/v3/send/sms
Authentication:
API KeysParameters
Can be found in the list of all directories
Phone number receiving loyalty. International E.164 notation
SMS body text. The loyalty URL will be added to each message
Example
Response
Possible errors
Notification
Send push notification
Send push notification to all users of a loyalty card. This requires the card to be added in the mobile wallet.
POST
https://api.coupontools.com/v3/loyalty/pushnotification/list
Authentication:
API KeysParameters
Can be found in the list of all loyalty cards
Push notification message