Prerequisites
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:
Code | Type | Required |
idAssociatedProcess | Whole number (int) | Yes |
idPrimary | Whole number (int) | Yes |
idSecondary | Whole 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.