Discount codes for reviews
Automatically email a discount code to customers who review a product — with full control over which reviews qualify, who's eligible, and how the code is delivered.
Roadmap's Discount Code Generator can automatically create and email a discount code every time a customer leaves a review. You don't need a loyalty program. The generator works on its own and can either trigger a Klaviyo event or send the email directly from Roadmap.
This article covers the review-published trigger specifically — when each new review fires, who's eligible, and what the code looks like.
Where to find it
In Roadmap, open Discounts / GWPs, click Create a new discount, and pick Discount Code Generator from the method selector.

The Trigger
In the Trigger section, choose When review is published.

This activates the Reward frequency dropdown immediately below — the three options control which reviews actually generate a code:
Every verified review (default)
Each verified review linked to an order generates one code. Unverified reviews — submissions with no order link — do not get a code.
Every review (unverified and verified)
Every published review generates a code, regardless of whether it's tied to an order. Useful if you reward organic reviews equally.
One discount per order
Only the first verified review on each order generates a code. Subsequent reviews on the same order are skipped. Unverified reviews with no order link are blocked entirely — there's no order to group them by.
The dropdown only appears when the trigger is When review is published. Other triggers — product purchase, member birthday, member promotion — have their own configuration.

Customer Eligibility
Restrict who's eligible for the reward.

All customers (default)
Every customer who leaves a qualifying review gets a code.
Members
Only customers enrolled in your loyalty program get a code. Useful when you reserve incentives for members.
Mail Template
Decide how the code is delivered to the customer.
Trigger a Klaviyo event
Roadmap fires a Klaviyo event with a custom metric name, for example Roadmap: Review Reward. Your Klaviyo flow handles the email. This is the best default when Klaviyo already owns your lifecycle email program.
Send mail via Roadmap
Roadmap sends the reward email directly. Use this when you want a simpler setup and do not need a Klaviyo flow around the reward.
When you pick Trigger a Klaviyo event, a metric-name input appears. Use any string — Klaviyo creates a new metric the first time you fire it. The event payload includes the discount code so your Klaviyo flow can interpolate it into the email body.
Start with Trigger a Klaviyo event if both options could work. It gives you more control over design, timing, testing, and reporting.
Discount Code
What kind of discount, what it applies to, when it expires.
Discount type
Percentage off (%) or fixed amount.
Discount value
The number applied to the type — e.g., 10 for 10%.
Code prefix
The string each generated code starts with. Codes are appended with a unique suffix — e.g., a prefix of ROADMAP produces codes like ROADMAPA83XO123.
Applies to
Specific products or variants (browse-and-select) — leave the variant picker blank to match any product. Or All products to remove the scope restriction entirely.
Purchase Type
One-time purchase or Subscription. Determines whether the code applies to one-time orders, subscription orders, or both.
Minimum spend
Cart subtotal threshold the customer must meet to use the code. Blank for no minimum.
Quantity limit
Maximum number of items the discount can apply to. Blank for no limit.
Expires after
Number of days from generation. Blank means the code stays active indefinitely.
What customers receive
When a review is published and qualifies for a reward per the frequency setting, Roadmap generates a unique discount code and either emails it to the customer or fires the Klaviyo event you've configured. The email contains:
The generated code, for example
ROADMAPA83XO123The discount value and what it applies to
Any spend minimum or expiry information
Your Klaviyo flow controls the exact look and copy.
Common configurations
"Reward members only, send via Klaviyo for branded design"
Reward frequency: Every verified review
Customer Eligibility: Members
Mail Template: Trigger a Klaviyo event → metric name
Member Review RewardDiscount Code: 20% off, prefix
MEMBER
"Reward every reviewer with 10% off their next order"
Trigger: When review is published
Reward frequency: Every review (unverified and verified)
Customer Eligibility: All customers
Mail Template: Send mail via Roadmap
Discount Code: 10% off, prefix
THANKS, Applies to All products, no minimum, expires after 60 days
"Reward verified reviews only, cap to one per order"
Reward frequency: One discount per order
Customer Eligibility: All customers
Discount Code: 15% off, prefix
REVIEW, expires after 30 days
A customer who reviews three products from the same order gets one code, not three.
Frequently asked questions
Related guides
Last updated