If your Klaviyo unique coupon code is not showing and you see something like WELCOME10-PREVIEW inside the editor, nothing is broken. Klaviyo uses that placeholder for in-app previews so it does not spend a real code. If the placeholder, an error or no email at all turns up on a real send, check the coupon name in the tag, the supply of codes and the skip reason on the message, in that order.
Key Takeaway
Judge a coupon by an inbox test or a real send, never by the editor preview. When a live message goes missing, Klaviyo's recipient activity usually names the reason.
Match the symptom to the fix
| What you see | Likely area |
|---|---|
CouponName-PREVIEW in the editor | Normal preview behavior |
| Placeholder in a test email | No codes available yet |
| Raw tag, error or empty space | Tag syntax, coupon name or template block |
| Recipient never got the email | Skipped: empty pool, wrong name or creation error |
| Code shows but checkout rejects it | Shopify discount rules, dates or uploaded codes |
Preview placeholder vs. live code
There are two kinds of preview, and they behave differently.
- In-app preview: shows the coupon name followed by -PREVIEW. This applies to campaigns and flow messages, and no code is used.
- Preview sent to your inbox or phone: uses a real code if codes are available. If none are, you get a placeholder instead.
For a campaign, add codes first under Content > Coupons, then send the preview. Klaviyo reserves that code for preview use, so it will not go to a customer. Everyone included in the same preview send gets the same code.
For a flow coupon that expires a set number of days or hours after issue, Klaviyo's testing steps are to set the message to Manual, trigger the flow with a test profile, then open Needs Review and click Send Now. You may see "Retrying: Generating Coupon Codes" while codes are being made. Switch back to Live when you finish.
Raw tag, error or blank space: check the tag
The unique coupon tag looks like this:
{% coupon_code 'CouponName' %}
Replace CouponName with the name of the coupon in Klaviyo. This is not the code prefix, and it is not a code you created in Shopify. Klaviyo notes that coupon names are case-sensitive, and a mismatch skips the message as "Coupon Doesn't Exist".
Work through these:
- Delete the tag and reinsert it from the Personalization menu under Coupons. This removes typos in one move.
- If you typed or pasted it by hand, check both braces, both percent signs and the quotation marks. We suggest retyping quotes that came from a document, since curly quotes are easy to miss. Klaviyo lists "Email Syntax Error" as its own skip reason.
- For a button or other field without the menu, insert the tag in a text block, then copy it across.
- For a static code such as
WELCOME20, remove the tag and type the code as plain text. In a 2022 community thread, a community member pointed to a static code wrapped in the tag as the likely cause of an "Unable to find coupon" error.
If the space is simply empty, inspect the template. Confirm the tag exists in the version that actually sent, including any A/B variation, and check the block's show/hide rules, device visibility and text color. Our guide to Klaviyo email templates covers design basics. Klaviyo also offers a dedicated Coupon block for emails, which is a quick way to rule out a hand-built tag.
Generated or uploaded: know which coupon you have
Shopify stores can let Klaviyo generate unique codes, which is usually the simpler path. Uploaded coupons are a CSV of codes you made elsewhere.
| Klaviyo-generated Shopify coupon | Uploaded coupon | |
|---|---|---|
| Flow supply | Generated and replenished automatically | You upload more |
| Campaign supply | Add codes before scheduling | Upload enough before sending |
| Discount terms | Set in the Klaviyo coupon | Set in your store; Klaviyo does not import them |
Uploading a list does not create discounts in Shopify. If the codes were never created there, they will appear in the email and fail at checkout. The file needs exactly one column headed Coupon or Coupon Code, with a 50 MB limit.
Empty code pool: why people get skipped
To find the reason, open the flow message, click View details, then Recipient activity > Skipped, and use the Type dropdown.
- No More Uploaded Coupons Remain: upload more. Klaviyo cannot check in advance that a flow will have enough, although a flow email whose coupon has zero codes available cannot be turned live. Klaviyo emails the account owner when a recently sent uploaded coupon drops below its minimum count, which starts at 500.
- Unable to Create Coupon: Klaviyo cites an error in the coupon itself, such as a URL that is no longer valid, or too many coupons in a short period. Review the coupon's products, collections and settings.
- Coupon Category Unavailable: the category the coupon was limited to has been deleted.
- Error Retrieving External Data: Klaviyo could not fetch data from an outside source such as Shopify. Check the integration.
Campaigns have their own traps. You cannot schedule with fewer codes than estimated recipients. If the audience is determined at send time and grows past your supply, the extra people are skipped. Large batches can take several hours to generate. Coupons that expire a number of days or hours after issue cannot be used in campaigns, so you will not see Add Codes for them.
If the Coupons tab itself is unavailable, open the Shopify integration in Klaviyo, click Update Settings and re-authorize if asked.
Code rejected at Shopify checkout
Shopify's error message narrows it down.
- "Enter a valid discount code": the code does not exist or is not active. Check activation and expiry, and for uploads, confirm the code exists in Shopify.
- Not valid for the items in your cart: compare the cart with the coupon's product or collection limits.
- Already used: look for an existing order. Shopify says an unfinished checkout can also hold a code if a payment provider or app fails to report a failed payment. A replacement code is one fix.
- Cannot combine: check the combination settings on both discounts, including any automatic discount that is running.
Also check minimum purchase requirements. Klaviyo coupon codes work only on nonrecurring orders, not subscription orders. Klaviyo sets coupon dates in UTC while Shopify applies expiry in your store's time zone, so the two screens can disagree. And if shoppers cannot see a code field at all, Shopify points to Shop Pay users who have not logged in and to apps that change pricing or checkout.
A repeated flow email can also confuse people. The same coupon tag across messages gives a recipient the same unexpired code, even after they have redeemed it. If your welcome series needs a second, bigger offer, create a second coupon.
If you would rather have the code applied from the button, see our guide to auto-applying a Klaviyo discount code with a link.
Where to find the codes
For one customer, open their Klaviyo profile, go to Details and scroll to Coupons. Codes that expired more than 90 days ago, and codes from deleted coupons, are not shown. For a whole Klaviyo-generated Shopify coupon, use Content > Coupons, then the three-dot menu and View History. You can export assigned codes to CSV from there. History is not available for uploaded coupons.
In Shopify admin, start at Discounts. A Klaviyo community manager explained that the generated codes live there. Merchants in the same thread reported that searching for a single bulk-created code is difficult, so take the exact code from the Klaviyo profile and look for the discount it belongs to.
Be careful about editing that discount in Shopify. Changes made there affect codes already sent, while definition changes made in Klaviyo leave sent codes on their original terms and remove unsent ones.
Before you switch it back on
Send one real test, redeem the code on a cart that meets the rules, and check the skip tab again after live traffic arrives. This matters most in revenue flows such as abandoned cart. If you want help auditing coupons across your automations, see our flow automation service.
Frequently Asked Questions
Do I need to generate codes myself for a flow?
Not for Klaviyo-generated Shopify coupons, which Klaviyo creates and tops up for flow messages. Uploaded coupons are different: you have to keep adding codes.
Can I put two unique coupons in one message?
Email supports multiple coupons, as long as there is a code from each for every recipient. SMS and MMS allow only one dynamic coupon per message.
Do codes get assigned to people who never see a hidden block?
They can. Klaviyo warns that a coupon inside a block hidden by show/hide logic may still be assigned, which can drain your supply and cause skips.
How long does a code last if it expires after a set number of days or hours?
Klaviyo adds a 24-hour grace period to that window to cover send and delivery delays. A coupon set to a specific end date gets no extra time.
Is there a limit on unique codes in Shopify?
Yes. Shopify caps each store at 20 million unique discount codes. At the limit, codes have to be deleted in Shopify admin before new ones can be generated.
Coupons Failing Inside Your Flows?
EcomCure builds and checks Klaviyo flows for Shopify brands, including coupon setup, testing and skip reasons.
Get Your Free Audit