Try pre-set campaigns and get your first conversions within 15 minutes.
Mailocator / Promocodes 2025-01-24 11:37:37

Reading promocodes from e-shop API

Mailocator also allows you to retrieve promocodes via an API provided directly by the e-shop, usually on a secret URL.

What you need to prepare

The URL that Mailocator will call when the subscribe action occurs and to which JSON data will be returned

The URL may include a hash identifying the service of the counterparty (Mailocator)

For this call, Mailocator does not support authentication other than using the GET parameter

Connection

In Settings go to Promo Codes and click on Create New Group.

Select Codes from API as the code type.

Enter the URL of your e-shop that will return the codes in JSON format

Enter a custom value name for the code and, if applicable, a description of the coupon if you will be using it in communication with the client

Example JSON response from the server

Code only

{"coupon":"123ABC"} 

Code with description

{"coupon":"123ABC", "coupon_description":"Sale 10%"} 

Any other responses will cause the temporary unavailability of the service to be displayed