promotion

Assigns and returns one unique, unused code from the Promotion associated with the email send.

object promotion()

Requires a template or campaign with an associated Promotion. The promotion’s vars and a unique code will be returned in an object.

To simply display a unique promotion code in your sends, you can place this function in your HTML where you need to display the code.

Examples

Zephyr:

Use code {promotion().code} to redeem your discount.

Output:

Use code UA5-E2C to redeem your discount.

To create a dynamic coupon code template that can use the pre-built field in promotions, save the returned promotion into a zephyr var. The fields and code can then be re-used or called when they are needed.

Zephyr:

{promotion = promotion()}
{promotion.description}
Use code {promotion.code} to redeem your discount.

Output:

Get 15% off all purchases over 50$ before December 18th!
Use code {promotion.code} to redeem your discount.
Top