Location: Email Automation > a sequence > edit an email > "A discount code for each subscriber"

A welcome, cart or win-back email can give every subscriber their own discount code, usable once. Nobody can share it on a coupon site, because it stops working after one order. ILLIXIS creates the codes in your Shopify or WooCommerce store and puts the right one in each email as it sends.

Before You Start

Connect your store. See Shopify Connector or WordPress Connector for WooCommerce. WooCommerce stores need the ILLIXIS Connector plugin 1.46.0 or later.

Making an Offer

An offer is the discount behind the codes. You make it once and can use it in as many emails as you like.

  1. Open the email in the sequence editor and find A discount code for each subscriber.
  2. Open New offer and fill in:
  • Name, for example "Welcome offer". Only you see it.
  • Discount: percentage off or a fixed amount off, and the amount.
  • Each code works for (days): how long a subscriber has to use their code, from the day the email is sent.
  • Codes start with (optional): a short word at the front of every code, such as WELCOME.
  • Minimum order (optional).
  • Store, if the brand has more than one.
  1. Click Create offer, choose it in the list, then save the email.

Putting the Code in the Email

Click Place code in email. It adds {{ unique_code }} where your cursor is. You can also add {{ unique_code_expires }} to show the last day the code works.

In previews and test sends you see SAMPLE-CODE. Real subscribers get their own code.

A text message step can use the same tags. In the visual builder, choose the offer under Discount code for each subscriber in the step's settings.

What Happens When It Sends

  • Each subscriber gets one code per email. If an email is retried, they get the same code, not a second one.
  • If a code is not ready yet, the email waits and tries again every 15 minutes. If there is still no code after a day, that email is skipped for that subscriber. An email is never sent with an empty code.
  • Codes are removed from your store once their last day has passed, so your store's discount list does not keep growing.

Changing or Retiring an Offer

Changing the discount amount or type starts fresh codes on the new terms. Codes already sent keep the terms their email promised.

Archiving an offer stops new codes. Codes already sent keep working until their last day. Choose another offer for any email that used it.

Things to Know

  • An email that shows {{ unique_code }} cannot be approved until an offer is chosen.
  • One-off campaigns and emails pushed to Klaviyo cannot use these codes yet. Use a shared code there.
  • You can ask Maya to list, create or archive offers, or to choose one for an email. Choosing one through Maya resets that email's approval, so you still sign off before it sends.

Related Guides