An expired discount code keeps showing up in AI answers for one reason: some copy of it is still live somewhere a system can read. The code may be gone from your checkout, but it is still printed on a guide page, still listed in a Merchant Center promotion, still sitting in a feed row, or still quoted in an old blog post. The assistant is not inventing the code. It is reading a copy you have not removed yet.
The fix is to treat a discount code like a product fact, with one record, one end, and one routine that removes it everywhere on the same day. A code with no end will keep circulating. A code that is removed from checkout but left in a promotion feed will keep being shown. Remove it from every copy, and check the copies you do not own as well.
Where it goes wrong
Expired codes in AI answers almost always trace to one of these failures, not to a model choosing an old code on purpose.
- The code was removed from checkout, but the promotion was never ended. Google Merchant Center documents that an expired promotion cannot have its end extended, and that you must create a new promotion instead. A promotion left live in Merchant Center keeps being shown.
- The code is still printed on the site. A guide, a blog post, a sale page, or a banner still names the code and its discount, with no end in the text. A system that reads the page quotes the code.
- The code is still in the feed. A promotion_id in a product feed row keeps linking products to a promotion that has ended. The feed and the promotion must be updated together.
- The code has no end in the first place. A promotion with no effective end keeps applying until someone removes it by hand. Google documents that promotions must expire within a set window after they start, so a promotion with no end is a promotion that was never set up properly.
- The code is quoted by a third party. A coupon site, a review roundup, or an old social post still lists the code. You cannot edit those, but you can make your own pages agree, and you can ask the third party to remove it.
- The code was a one-off, but it was published as a general code. A code meant for one customer, or one group, that was printed on a public page becomes a public code. Codes that are not meant for everyone should never appear on a public page.
The steps
Step 1. Make one record for every code. The marketer keeps a single list of every live code: the code itself, the discount it gives, the products it applies to, the start, and the end. No code exists outside that list. If a code is not on the list, it is not live, and it should not appear anywhere public. A code that lives only in someone's memory will be forgotten, and a forgotten code is an expired code that keeps circulating.
Step 2. End the promotion in Merchant Center on the same day the code ends. The marketer opens Merchant Center, finds the promotion, and ends it or removes it, so it no longer shows in Shopping ads and free listings. Google documents that you cannot extend the end of a promotion that has already expired, so do not try to revive it by editing the end. If you want to run the same offer again, create a new promotion with a new start and end. Check the promotion list after the end, and confirm the expired promotion is gone from the live list.
Step 3. Remove the code from the feed the same day. The developer or the marketer removes the promotionid from every product feed row that carried it, and regenerates the feed from the product record. A feed row that still carries a promotionid keeps linking products to a promotion that has ended. Do not edit the feed by hand and leave the rest. Regenerate it, and check the first export line by line against the product pages.
Step 4. Sweep the site for the code. The marketer searches the store for the code itself, and for the discount wording that went with it: guides, comparison pages, collection descriptions, blog posts, sale pages, banners, and the shipping and returns page if it mentions a code. Update each one or remove the code from it. A guide that names a code becomes wrong the day the code ends, so prefer guides that link to the product page for the current offer instead of printing a code. Check the store search as well. A search result that shows an expired code teaches the shopper, and the assistant, the wrong offer.
Step 5. Test the code at checkout, as a shopper would. The marketer opens the store in a browser where they are not logged in, adds a product the code was meant for, and enters the expired code at checkout. It should fail, clearly, with a message that the code has expired. If it still works, the code was never actually ended, and the checkout is the copy that is wrong. Fix the checkout first, then repeat the sweep. A code that still works at checkout is not an expired code. It is a live code you forgot to end.
Step 6. Ask the third parties to remove it, and record the answer. The marketer lists the coupon sites, roundups, and old posts that still quote the code, and asks each one to remove it. You cannot force a third party to remove a code, but you can ask, and you can record the answer. If a third party will not remove it, make your own pages clear: the code has ended, and the current offer, if any, is on the product page. The assistant will keep reading the third party, but your own pages will at least agree with each other.
The machine-readable piece
This is the feed row for a product after a promotion has ended. The promotion_id is gone. The fields below come from the Google product data specification. That row is tab-delimited, with tabs between the values. Swap every placeholder for your own values.
id title link price availability
example-serum-01 Example vitamin C serum https://[yourdomain.com]/products/example-serum 45.00 USD in_stock
For the promotion itself, the record to keep is the Merchant Center promotion: a title, an ID, a start, and an end. Google documents that a promotion must be redeemable at checkout, and must expire within a set window after it starts. When the end passes, the promotion is expired, and the fix is to create a new promotion if you want to run the offer again, not to extend the old one. Keep the promotion record in the same list as the code, so the two are never out of step.
Check both after every code change. Open Merchant Center and confirm the expired promotion is gone from the live list, then open the feed and confirm no row still carries its promotion_id. Where the two disagree, fix the one that is wrong. Never add a field you cannot fill with a true value, and never guess a value just to fill a row.
What it looks like when it works
On the site, a shopper sees the current offer, if any, on the product page, with its end in plain words, and no expired code anywhere on the site. In Merchant Center, the live promotion list holds only live promotions, each with a start and an end. In the feed, no row carries a promotion_id for a promotion that has ended. Nothing on the site looks different to a human reader. The change is that every place a machine can look states the same offer, or no offer at all.
Say you run a skincare brand, selling serums, creams, and cleansers, with a code that gave a discount on serums for a few days. The marketer ends the promotion in Merchant Center on the last day, removes the promotion_id from the feed rows for the serums, and searches the site for the code. She finds it still printed in a guide and in a sale banner, and removes it from both. She tests the code at checkout, and it fails with a message that it has expired. She asks two coupon sites to remove it, and one does. A shopper asks an assistant for a serum discount code. The assistant reads the site, the feed, and the promotion list, finds no live code, and says so, instead of quoting a code that no longer works.
The fundamentals
These mechanics are shared across every engine, and their own guides cover them in full:
- •The llms.txt format, with a full sample, is in our guide to writing a good llms.txt file
- •The markup AI systems read to verify facts is covered in our product schema guide
- •The full crawler rule reference lives in our robots.txt guide for AI search
What this guide does not cover
This guide covers removing expired discount codes from the places AI systems read. It leaves out the full technical audit across every crawler and every page, the transaction layer that lets an agent finish a purchase, and the per-engine playbooks for each assistant. It does not cover discount strategy, or the design of a new promotion. Those are separate jobs, and this guide is only the map, not the whole trip.
Check your own store now
Run the free scan. One click, no signup, and it shows whether AI crawlers can read your store today: aizii.ai/aeo-scan
Run the free scanSources
- Google Merchant Center, How to fix: Promotion expired (specific): https://support.google.com/merchants/answer/14783588
- Google Merchant Center, Get started with Promotions (specific): https://support.google.com/merchants/answer/7322422
- Google Merchant Center, Product data specification (specific): https://support.google.com/merchants/answer/7052112
- Google Search Central, Product structured data (specific): https://developers.google.com/search/docs/appearance/structured-data/product
- Google Search Central, Optimizing your website for generative AI features on Google Search (specific): https://developers.google.com/search/docs/fundamentals/ai-optimization-guide
- Schema.org, Product type (specific): https://schema.org/Product
Note: links marked specific point to the page that supports the claim in this guide. Links marked general docs point to the vendor's general docs section for that topic, not to a page that proves every step. Check the vendor docs for the current path before relying on a menu name or click path in this guide.
