Login

Omnichannel

Security and Compliance

Promo Code Sent from a Workflow

There is a possibility to preliminarily upload the list of promo codes in the system for trigger messages, sent from workflow. In the moment of sending the message the workflow will obtain next promo code from the list. The system guarantees that one promo code will be used only once.

The system of promo codes is uploaded in the system using special API methods:

The process of configuring looks like following:

Generating promo codes and transferring them using API

Create enough quantity of promo codes and them not to run out suddenly.

Upload promo codes in our system by API using method, convenient for you. Uploading CSV-file or use JSON with next characteristics of promo codes:

  • code – value of promo code
  • expirationDate – expiration date of the promo code. Date format is next: 2017-12-31T23:59
  • discount – discount. Indicate value from 0 up to 99.
  • type – promo code type. Indicate any value. For example, birthday, blackfriday, christmas etc.
  • inUse – flag if promo code is already used or not.

discount and type are created for segmentation promo codes in database. Technically it is not important, what discount is indicated. Real discount for the customer will be as you grant it on your site.

It is impossible to delete uploaded, but not used promo code. That is why if some promo codes are not urgent, update them by indicated true value for inUse flag. During using, the system will change statuses of using promo codes from false to true.

Creating the message

It is necessary to substitute variable $!data.get(‘promocode’) in the message on the place of promo code.

Variable in the message

Configuring the workflow

It is necessary to substitute at least 2 blocks in the workflow: Task – Get promo code and block with communication channel (token, email, phone number).

The workflow can look like following:

Workflow

Read more how to configure Get promo code block. In message block choose preliminarily created message and indicate parameters from the event, which contains contact ID.

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