Navigation

Setting Up Dynamic Promo Codes in SMS


Requirements


Step 1: Add Parameters 

In order to use the promo code module, you must prepare an SMS that supports custom codes. You can assign a tag to the SMS to indicate it contains a promo code.  

Under the Properties tab, in Parameters, add the following parameters:

CodeType Required
idAssociatedProcessWhole number (int)Yes
idPrimaryWhole number (int)Yes
idSecondaryWhole number (int)Yes

It should look like this:


Step 2: Add the Query

You must also add a data source. In Library, under Data sources, click View sources:

Activate Promo codes:

Map the parameters to their corresponding source:


Step 3: Add the Script to the SMS

In the SMS, to display a promo code, use the following script:

[[=PromoCodes_UsedCodes.PromoCodes_UsedCodes[0].Code;]]

You can use this script as many times as you want in the same message. For example, if your system allows it to be redeemed through a link, you may add it inside of a button link.

Note that assigned codes for testing purposes will be removed of the lot and therefore not assigned later on.

Did you find it helpful? Yes No

Send feedback
Sorry we couldn't be helpful. Help us improve this article with your feedback.