For the complete documentation index, see llms.txt. This page is also available as Markdown.

Discount codes for purchased products

Generate a unique discount code after a customer buys selected products or collections.

Use this trigger when a purchase should unlock a follow-up discount.

This is a strong fit for bounce-back offers, replenishment nudges, and cross-sell campaigns.

Where to find it

In Roadmap, open Discounts / GWPs, click Create a new discount, and choose Discount Code Generator.

Choose the trigger

In Trigger, select When specific products are purchased.

Then choose the purchase scope:

  • Specific products or variants

  • Specific collections

Use Specific products or variants when the rule should match a tight SKU list.

Use Specific collections when the rule should stay aligned with a merchandised group.

How to choose the purchase scope

Specific products or variants

Use this when precision matters.

This is best for hero products, seasonal SKUs, or exact bundles.

Leave the picker blank only if you intentionally want any product inside the selected scope to qualify.

Specific collections

Use this when the eligible set changes often.

This reduces maintenance because the generator follows collection membership instead of a fixed product list.

Choose Specific collections when merchandising changes often.

Choose Specific products or variants when the reward must stay tightly controlled.

Configure the discount

After the trigger, set the reward details:

  • Discount type and Discount value

  • Code prefix

  • Applies to

  • Purchase Type

  • Minimum spend

  • Quantity limit

  • Expires after

Use a short prefix that makes reporting easier, such as BOUNCE or CROSSSELL.

Choose delivery

Start with Trigger a Klaviyo event.

This keeps the reward email inside your Klaviyo flows and makes testing easier.

Use Send mail via Roadmap only when you want a simpler direct-send setup.

When this trigger works best

Use it for offers like these:

  • buy a starter product, then receive a code for accessories

  • buy from a launch collection, then receive a code for a second purchase

  • buy a replenishable item, then receive a follow-up incentive

Last updated