Developers can connect our platform with apps or web projects. The Coupontools REST API allows you to query meta-data about your account, campaigns, validations, usage data, distribution of coupons by email or SMS.

REST API Documentation

Authentication

Your API Keys (POST values)

client_id: Login to your account to get your API keys
client_secret: Login to your account to get your API keys

Your API Keys (Authentication headers)

X-Client-id: Login to your account to get your API keys
X-Client-secret: Login to your account to get your API keys

How to authenticate?

The API client and secret must be sent along with each API request, by providing it in the HTTP call's Authorization header or adding the client_id and client_secret parameters to the POST values.
Example response with succesful authentication
{
	"status": {
		"status": "OK"
	}
}
Example response with failed authentication
{
	"status": {
		"status": "failed",
		"errors": {
			"error_code": 1000,
			"error_message": "HTTP/1.0 401 Unauthorized. Client ID or Secret not correct."
		}
	}

}

Zapier integration

Zapier Not a developer? Automatically connect Coupontools with your teams' favorite apps like Mailchimp, Constant Contact, Zendesk, SalesForce, and many more - all without writing any code. Zapier connects Coupontools with different apps so you can automate a workflow between them.
For example: You can have the captured email address and name automatically added to a subscribers list in Mailchimp.
Read more about our Zapier integration

Get notifications for events in your account.

Use webhooks to be notified about events that happen in a Coupontools account. Webhooks are a system of automated notifications indicating that an event has occurred in your account. Rather than requiring you to pull information via our API, webhooks push information to your destination when important events occur.

Notifications are delivered via HTTP POST to a destination endpoint on your server and are sent based on the triggers you choose. Each webhook contains a notification kind and the full Coupontools object that the notification is reporting on. This information can be used to update your system or to trigger business processes.

Register now for a 7-days free trial account

Start using Coupontools today!