# A discount code stopped working

> A discount code can stop working when it expires, hits a usage limit or gets edited, and Shopify sends no alert. Connect Shopify and Klaviyo to Claude and ask it to chart weekly orders for your top 10 codes over 6 months. It flags sharp drops and why. Re-enable or replace the code and update emails that promise it.

Type: Leak (something broke or wastes money)
Run it: Weekly
Source: https://gooseworks.ai/playbooks/shopify-discount-code-stopped-working

## 1. Connect

Give your AI assistant read-only access to Shopify and Klaviyo.

## 2. Ask

```text
List my top 10 discount codes by orders over the last 6 months. For each, show orders per week. Flag any code whose weekly orders fell by more than 70% compared with its usual level, and check whether it expired, hit a usage limit or was edited.
```

## 3. Act

Re-enable or replace the code. Update any emails or popups that still promise it.

## Steps

1. Connect Shopify and Klaviyo read-only, through a Claude connector or MCP server if you use one, or upload discount and order exports.
2. Run the prompt to chart weekly orders for your top 10 discount codes.
3. Skip codes that ended on purpose with a campaign; only flag codes still promised somewhere live.
4. Re-enable or replace broken codes, and update any emails or popups that still promise them.
5. Ask Claude to re-run the check weekly.

## What it tends to find

WELCOME10 brought 60 orders a week until 12 Oct. Now it brings 2. (Illustrative example, not a result from a named store.)

## Watch out

Codes tied to one campaign end on purpose. Only flag codes still promised somewhere live.

## FAQ

### Why did my Shopify discount code stop working?

The most common reasons are an end date, a usage limit, or an edit to its rules, such as a new minimum order. Shopify does not notify you when this happens.

### How do I find codes promised in my emails?

Ask Claude to search your live Klaviyo flows and forms for the code. Any email that still promises a dead code frustrates shoppers at checkout.

### Do I need Claude for this?

No. ChatGPT, Grok or Muse can run the same prompt if they can read your Shopify discount orders and Klaviyo content, either connected or from exports.

### Is it safe to connect Shopify?

Use read-only access. Claude reads orders and discount settings. You change the code yourself in Shopify. Nothing changes in your store unless you change it. Read access is enough to find a dead code and see why it stopped.
