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.

596

Configuring the Workflow

1999

The blocks Task – Create promo code and Mobile push (or other channel) are used in the workflow. Read more how to set up Create promo code block.

In Mobile push block choose preliminarily created message and indicate parameters from the event, which contains token.

Of course, you can use other channels in a similar way.

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.