Clean up old discount codes

Find the discount codes from past campaigns that still work in your store, see what they cost you in recent orders, and switch off the ones that no longer earn their keep before they spread further on coupon sites.

Key Takeaways

  1. The codes that cost you money are rarely the expired ones, because an expired code already stops working. The costly ones are codes from past campaigns that were never given an end date and are still taking money off orders today.
  2. Kite lists every code that still works in your Shopify or Stripe account, then reads your recent orders to show how often each one was used and how much it took off.
  3. Kite sorts the codes into ones to keep, such as a welcome offer or a live partner code, and ones to switch off, such as a podcast code from two years ago. It brings you that list before it changes anything.
  4. Once you approve, Kite deletes the old codes in Shopify and deactivates them in Stripe. In WooCommerce, it finds the codes in your orders and gives you the exact list to switch off.
  5. Kite searches coupon sites for your store's name to see which of your codes are posted there, and it can repeat the whole check every month so new campaigns don't leave the same leak behind.
On this page

Why old discount codes cost your store money

Old discount codes cost you money when they keep working long after the campaign that needed them has ended. A code made for an influencer post, a podcast sponsorship, or a holiday sale was meant to bring in new customers for a few weeks. If nobody gave it an end date, it still works. Over time it gets shared in group chats, saved by browser extensions that try codes at checkout, and posted on coupon sites. Eventually it mostly goes to shoppers who were already about to buy.

Each of those orders costs you the full discount. Say a 20 percent code from a podcast ad two years ago is still live. If 140 orders used it last quarter at an average of $15 off, that's $2,100 of margin given to people the podcast never reached.

Cleaning this up takes three kinds of work:

  • Finding every code that still works. Stores pile up codes quickly, and many of them live under discounts nobody remembers creating.
  • Deciding which ones to keep. Some old codes still do a job, such as a welcome offer for new subscribers or a code a partner still promotes. Switching those off breaks a promise to someone.
  • Switching off the rest and keeping it clean. That means acting on each code in your store and then checking again after every new campaign.

That's a good job for an AI agent, because it means reading hundreds of codes and orders, matching them to what you know about your campaigns, and doing it again every month.

Kite is an AI marketer. It researches your business, builds a growth strategy, and ships the work that brings you new customers. Here's how it cleans up your old discount codes.

How Kite cleans up old discount codes

Kite starts by reading what's actually live. In your connected Shopify store or Stripe account, it lists every discount, the codes under each one, and whether each code can still be used. Then it reads your recent orders to see which codes customers are using and how much each one took off.

Next, Kite decides what each code is for. It checks the codes against the campaigns recorded in your team's wiki and the promotions it has run for you, and it asks you about the codes it can't place. It brings you a short list: the codes to keep, the codes to switch off, and the reason for each one.

Once you approve, Kite switches off the old codes. It also searches coupon sites for your store's name to see which codes have spread. Then it reads your orders again to show what changed, and it can put the whole check on a monthly schedule.

  1. How do you find discount codes that are still active in your store?
  2. Are old discount codes costing your store money?
  3. Which old codes should you switch off?
  4. How do you switch off old codes in Shopify, Stripe, and WooCommerce?
  5. How do you stop old promo codes from spreading on coupon sites?
  6. Keep new codes from turning into tomorrow's leak

How do you find discount codes that are still active in your store?

You find the active codes by listing every discount in your store along with the codes under it, then checking each one's end date and usage limit. Kite does this for you through your store connection, so you don't have to click through each discount in your admin.

In Shopify, Kite reads every discount you've set up and the codes attached to each one. That includes the discount's start and end dates and how many times each code has been used. In Stripe, it reads your coupons and the promotion codes that customers type in, and it filters for the ones still marked active. Each promotion code shows its coupon, its expiry date if it has one, and how many times it's been redeemed.

The result is one list of every code a shopper could use today, wherever it lives. Codes with no end date go to the top of the list, because those are the ones that never switch themselves off.

Are old discount codes costing your store money?

Old codes are costing you money if they still show up in your recent orders but no longer belong to any campaign you're running. The way to tell is to read the orders themselves rather than guess from the list of codes.

Kite reads your recent Shopify orders, or your Stripe redemption counts, and adds up how often each code was used and how much it took off. For a WooCommerce store, Kite reads the discount codes recorded on each order. That turns a long list of codes into a short ranking of what each one cost you over the last few months.

The ranking usually surprises people. A store might have 60 codes, but only five or six of them carry most of the discount, and one of those is often a code from a campaign that ended long ago. Kite points those out first, because switching off the biggest leaks is worth more than tidying up dozens of codes nobody uses.

Which old codes should you switch off?

You should switch off a code when its campaign is over and nothing you've promised depends on it. Kite makes that call for each code using what it knows about your business, and it shows you its reasoning before anything changes.

Kite sorts the codes into groups like these:

  • Keep. Codes tied to something still running, such as your newsletter welcome offer, a current partner or influencer code, or a promotion on this month's calendar.
  • Switch off. Codes from campaigns that have ended, especially ones still being used by shoppers who clearly didn't come from that campaign.
  • Leave alone. One-time codes made for a single customer, such as an apology code from support. These usually can't be reused, so they cost nothing to keep.
  • Ask you. Codes Kite can't match to any campaign it knows about. Kite asks who made them before it touches them.

If your team has a discount policy, Kite also flags codes that break it, such as a code deeper than your ceiling or one that combines with other discounts when your rules say it shouldn't.

How do you switch off old codes in Shopify, Stripe, and WooCommerce?

Once you approve the list, Kite switches off the old codes directly in Shopify and Stripe. For WooCommerce, it hands you the exact codes to switch off yourself.

  • In Shopify, Kite deletes each approved code from its discount. The discount itself stays in your store with its other codes, and your past orders still show which code each customer used. If you also want to end the whole discount, Kite tells you which ones to deactivate in your Shopify admin.
  • In Stripe, Kite deactivates each approved promotion code, so nobody can redeem it again. Customers who already have the discount on a subscription keep it unless you ask Kite to remove it.
  • In WooCommerce, Kite reads which codes appear in your orders and how recently, then gives you the list of codes to move to the trash under Marketing, then Coupons, in your WordPress dashboard.

Kite asks before it deletes or deactivates any code. When it's done, it reports which codes it switched off and which ones it left in place.

How do you stop old promo codes from spreading on coupon sites?

The reliable way to stop a code from spreading is to switch it off, because coupon sites and checkout extensions keep passing along any code that still works. Once a code stops working, those sites stop being a cost and simply show shoppers a code that fails.

Kite searches the web for your store's name on coupon sites and reads the pages it finds. It records which of your codes are posted where and whether each one still works. That shows you which leaks came from which campaigns. A code meant for one podcast that now appears on four coupon sites is a strong candidate to switch off, even if it seemed harmless on the list.

Some coupon sites accept removal requests. Kite can draft a short request for each site that lists your expired codes, and send it from your team's Kite address once you approve it.

Keep new codes from turning into tomorrow's leak

A cleanup only holds if new campaigns stop creating the same problem. Kite does that in two ways.

First, the codes Kite sets up for new campaigns are built to end. In Shopify, Kite can add up to 100 unique codes at a time to a discount, so each influencer, partner, or customer gets their own code. A unique code is hard to share widely, and it shows exactly who drove each sale. Kite also reminds you to give each new discount an end date when you create it.

Second, Kite can repeat the check on a schedule. A monthly run lists the codes that are live, flags anything new that isn't tied to a campaign, checks coupon sites for your store's name again, and sends you the short list to approve. After each round, Kite reads your orders to compare discounts before and after, and it records the result in your wiki so the next promotion starts from what the last one cost.

What you get

A list of every live code

Every discount code a shopper could use today in your Shopify store or Stripe account, with its end date, usage limit, and how many times it's been used.

A ranking of what each code cost you

How often each code appeared in your recent orders and how much it took off, with the biggest leaks first.

A keep-or-switch-off recommendation for each code

The reason behind each call, and questions about the codes Kite couldn't match to a campaign.

The cleanup itself

Old codes deleted in Shopify or deactivated in Stripe once you approve, or an exact list to switch off in WooCommerce.

A coupon-site report

Which of your codes are posted on which sites, whether each still works, and drafted removal requests if you want them.

A monthly check

The same review on a schedule, so codes from new campaigns get caught before they spread.

How to get started

Start with a plain request. You might say, "Find the discount codes that are still live in our store and tell me which ones to turn off," or "Our spring sale code keeps showing up on coupon sites. Can you deal with it?"

You can work with Kite in your browser or in Slack. Kite asks you to connect the place where your codes live. When a task first needs Shopify, Kite sends a link, and you sign in to your store and approve the connection. For Stripe, you connect your Stripe account the same way. For WooCommerce, you connect your store with its address and a REST API key that has read permission.

Kite comes back with the list of live codes, what each one cost you, and its recommendation for each. You change or approve the list, and Kite switches off the codes you approved. If you want the check to repeat, tell Kite how often and where to send the results.

Integrations used for cleaning up old discount codes

Kite searches coupon sites with its built-in web research, so that part needs no extra account. To read and switch off the codes themselves, connect the product where your codes live.

Common questions

How do I turn off expired discount codes in Shopify?

Expired discount codes in Shopify already stop working, so they don't need to be turned off. Shopify marks a discount as expired once its end date passes, and shoppers who enter the code are told it isn't valid. You can delete expired discounts from the Discounts page in your Shopify admin to keep the list tidy. The codes worth your attention are the ones still marked active with no end date. To end one of those, open the discount and set an end date, or select it on the Discounts page and deactivate it. Kite finds those codes for you and can delete the ones you approve.

Will switching off a code affect customers who already used it?

No. Switching off a code only stops new orders from using it. Past orders keep the discount they received and still show which code was used. In Stripe, a customer who already has the discount on a subscription keeps it after the promotion code is deactivated. A shopper who saved the code for later will see that it no longer works, which is why Kite checks for live partner and welcome codes before switching anything off.

Should I replace an old code before I switch it off?

Replace it if the code is still doing a job you care about, such as rewarding a loyal partner's audience. Give the partner a fresh code with an end date, let them update their posts, and then switch off the old one. If the code is mostly being used by shoppers who found it on coupon sites, switch it off without a replacement. Kite can add the new code in Shopify and draft the note to the partner, so the swap happens in one step.

How often should I check for old discount codes?

Check after every campaign that used a code, and run a full review at least once a month. Codes pile up fastest around busy seasons, when several promotions run at once. Kite can run the review on a schedule and send you only the codes that need a decision.

Questions this page answers

  • How do I clean up old discount codes with AI?
  • Can an AI marketing agent clean up old discount codes?
  • How do I find discount codes that are still active in my store?
  • How do I stop old promo codes from spreading on coupon sites?
  • How do I turn off expired discount codes in Shopify?
  • Are old discount codes costing my store money?

About the author

Devon Wells leads product marketing at Kite, the AI marketer. He spent a decade marketing industrial AI, from self-driving trucks to computer vision, but now Kite handles most of the work itself.

Tell me your goal and I’ll get to work.

Get started for free