Login

Omnichannel

Security and Compliance

Promo Code Generated in a Workflow

One can generate promo codes directly in the workflow when sending the message. The expiration date, type, and discount will be codified in the promo code itself.

On your site, using reverse algorithm, you can decode promo code, entered by user, and grant him respective discount or bonuses in accordance with conditions of your sale. Promo code encoding/decoding algorithm is described in this document.

Configuring process looks like following:

Creating encoding key

Promo codes are encoded using key, which third persons don’t need to know. Generate the key in eSSuperKeyXXXXXXXXXXXXXX, where XXXXXXXXXXXXXX - 14 any numbers. Tell us the key. We will attach it to your account.

Creating message for sending

It is necessary to substitute $!data.get(‘promocode’) variable in the message.

Variable in the message

Configuring the workflow

Workflow

The blocks Task – Create promo code and Send message are used in the workflow. Read more how to set up Create promo code block.

In Message block choose preliminarily created message and indicate parameters from the event, which contains contact ID.

Decoding promo code

Recipient will obtain promo code in following format CRRH-ASDF-HGVB-MNCA.

You will be able to decode this promo code on your site using algorithm and key. Successfully decoding the promo code you will, firstly, validate it; secondly, obtain following data: expiration date, discount, type of promo code. Algorithm is described in the document.

Any Questions?
We’re always happy to help!
Discount services
Schedule a Call
Fill in the form, and our specialists will call you back as soon as possible.
Discount services
Chat Support
We’re waiting for your questions!
Discount services
Email
Contact the support team