Unique coupon codes can be sent automatically to users in transactional campaigns only. The reason to only have them only in transactional campaigns are two:
- sending unique codes makes sense for ongoing campaigns, that are running for a longer period of time
- having them in bulk campaigns (recurring/newsletter) have the risk of either finishing the ones you copied in our platform or overloading your servers (in the case of using API’s)
There are a few ways we handle promotional coupon codes for you:
- Generate many at once in your ecommerce crm and add them in our platform. You need to copy/paste them, one per line, into Setup -> Coupon Codes
- Request for a specific URL you need to create on your server. We can pass the email as param, using the following syntax: **|user.email|**. See more details below.
Integration modules with support for coupon code generation on the fly, for each email sent:
- Prestashop. You can set value, type and expiration and minimum spend.
- Woocommerce. You can set value, type and expiration and minimum spend.
- Magento. You can set value, type and expiration and minimum spend.
Here’s a screenshot of Coupon editor for Prestashop/Woocommerce. Similar settings are available for the rest of modules.
How to create a server side URL to generate coupons
Our server will make a GET request to the URL specified in coupon settings. We replace **|user.email|** with the actual user email address for which we send the email.
Your request must respond in the following formats:
When the request is successful. If the response field element is a list, will use the first element of the list.
{"status": true, "response":"coupon_code_unique"}
For unsuccessful requests:
{"status": false, "error":"Error description whatever"}
The request has only 1 try, with a timeout of 3 seconds.