Loyalty
List loyalty cards
Retrieve a list of all loyalty cards.
GET
https://api.coupontools.com/v4/loyalty/loyalty-cards
Authentication:
API KeysExample
Loading...
Response
Loading...
Copy loyalty card
Make a copy of a loyalty card.
POST
https://api.coupontools.com/v4/loyalty/loyalty-cards/{id}/copy
Authentication:
API KeysParameters
Optional
name String
New card name. Max. 50 characters
Example
Loading...
Response
Loading...
Loyalty users
Get user
Retrieve a list of all users connected to a loyalty card.
GET
https://api.coupontools.com/v4/loyalty/loyalty-cards/{loyaltyCardId}/stats
Authentication:
API KeysParameters
Optional
filter Object
Contains settings to filter the users.
Optional
pagination Object
Contains settings to paginate the users.
Optional
include_voided true | false
Toggle to include voided users
Example
Loading...
Response
Loading...
Get user
Retrieve all data from a single user.
GET
https://api.coupontools.com/v4/loyalty/loyalty-cards/{loyaltyCardId}/stats/{userId}
Authentication:
API KeysExample
Loading...
Response
Loading...
Create user
Create a single user with or without additional user data.
POST
https://api.coupontools.com/v4/loyalty/loyalty-cards/{id}/stats
Authentication:
API KeysParameters
Optional
first_name First name
Optional
last_name Last name
Optional
address Address
Optional
zip Zip
Optional
city City
Optional
phone Phone
Optional
email Email address
Optional
custom_1 - custom_8 String
Custom value 1 through 8
Example
Loading...
Response
Loading...
Create users
Create a batch of users. Each user can contain additional user data.
POST
https://api.coupontools.com/v4/loyalty/loyalty-cards/{id}/stats/bulk
Authentication:
API KeysParameters
Optional
first_name First name
Optional
last_name Last name
Optional
address Address
Optional
zip Zip
Optional
city City
Optional
phone Phone
Optional
email Email address
Optional
custom_1 - custom_8 String
Custom value 1 through 8
Example
Loading...
Response
Loading...
Update User
Update the data of a user.
POST
https://api.coupontools.com/v4/loyalty/loyalty-cards/{loyaltyCardId}/stats/{userId}
Authentication:
API KeysParameters
Optional
first_name First name
Optional
last_name Last name
Optional
address Address
Optional
zip Zip
Optional
city City
Optional
phone Phone number
Optional
email Email address
Optional
custom_1 - custom_8 String
Custom value 1 through 8
Example
Loading...
Response
Loading...
Add stamps
Add stamps to a user's card.
POST
https://api.coupontools.com/v4/loyalty/loyalty-cards/{loyaltyCardId}/stats/{userId}
Authentication:
API KeysParameters
Required
amount Number
The amount of stamps that gets added to the user's card. Min. 1
Example
Loading...
Response
Loading...
Use rewards
Use rewards of a user.
PUT
https://api.coupontools.com/v4/loyalty/loyalty-cards/{loyaltyCardId}/stats/{userId}/rewards
Authentication:
API KeysParameters
Required
reward_ids List of reward ids
Example
Loading...
Response
Loading...
Void user
Void a user's card.
PUT
https://api.coupontools.com/v4/loyalty/loyalty-cards/{loyaltyCardId}/stats/{userId}/void
Authentication:
API KeysExample
Loading...
Response
Loading...
Delete user
Delete a user.
DELETE
https://api.coupontools.com/v4/loyalty/loyalty-cards/{loyaltyCardId}/stats/{userId}
Authentication:
API KeysExample
Loading...
Notification
Send push notification
Send push notifications to (select) users.
POST
https://api.coupontools.com/v4/loyalty/loyalty-cards/{id}/push-notifications
Authentication:
API KeysParameters
Required
message String
Push notification message shown to the user.
Optional
recipient_stat_ids List of user ids
List of user ids to send the push notification to. If not provided, the message will be send to all users.
Example
Loading...
Response
Loading...