
Shopify Customer Forgot a Discount Code? How to Reply
You can't add a discount code to a Shopify order after it's placed, but you can still honor it. Check that the code was valid for that order, then refund the difference, edit the order before it ships, or offer the same discount on the next purchase. If the code wasn't valid (expired, wrong products, below the minimum), say no politely and explain why in one sentence.
"I forgot to use my code" is a small ticket that keeps coming back. Each one takes a lookup in Discounts, a lookup in the order, a decision and a reply. With a written rule, every customer gets the same answer.
The 4 checks before you reply
Run these four checks in order before you answer. They tell you whether the customer is owed anything.
- Was the code active on the order date? In Shopify admin, open Discounts and look at the start and end dates. A code that expired the day before is a no. A code that went live after the order is a no too, unless you decide otherwise.
- Did the order meet the conditions? Minimum spend, minimum quantity, eligible products or collections, customer eligibility (first order only, specific segment). If the order doesn't qualify, the code wouldn't have worked at checkout anyway.
- Would it have combined with what was already applied? If the order already used an automatic discount or another code, check the combination settings on the discount. Shopify only stacks discounts that are set up to combine.
- Has the customer already used it? A once-per-customer code that appears on an earlier order is used up.
If all four checks pass, the customer is owed the discount. Your only choice is how to give it to them.
Why the customer ordered without the code
This article covers one situation: the order went through without the code, and the customer now asks you to apply it. If the customer typed the code and checkout rejected it, that's a different ticket. See our guide on what to do when a Shopify discount code is not applying.
When the code was never entered, the reason usually falls into one of three cases:
| What the customer says | What happened | Owed? |
|---|---|---|
| "I forgot to enter my code" | Customer error, code was valid | Yes, if the 4 checks pass |
| "I got the welcome code after I ordered" | Welcome email landed after the first purchase | Your choice, see below |
| "Your email had the wrong code, so I ordered without it" | The code you shared was misconfigured (wrong dates, wrong collection) | Yes, the mistake is yours |
The last row needs a firm rule. If the customer skipped the code because your setup was wrong, honor it and fix the discount.
Three ways to honor a valid code
1. Edit the order before it ships
If the order isn't fulfilled yet, open it in Shopify admin, click Edit, and apply a manual discount to the line items. The order total updates and Shopify shows the refund owed to the customer. You then issue that refund.
The order stays clean and your reports show the discount on the right order. Shopify blocks this edit in some cases: orders paid with Shop Pay Installments, imported orders, local delivery orders, and orders with pending payment can't always be edited. Check Shopify's order editing considerations before you promise this route.
2. Partial refund for the discount amount
If the order has shipped or can't be edited, refund the discount amount as a partial refund. Two details matter:
- Don't restock. Nothing is coming back, so leave the restock box unchecked.
- Add an order note. Write the code and the reason ("Forgot WELCOME code, refunded the difference"). This stops the same customer from getting the discount twice, and your team won't mistake it for a return.
3. Same discount on the next order
Some customers prefer this, and some stores make it the default for codes that weren't entered at checkout. It costs you nothing unless they buy again. Offer it as a choice, not as a replacement for money they're owed. If the code was valid and the customer asks for a refund, refund.
If you're deciding what to give a customer who didn't have a code at all and is simply unhappy, that's a different ticket. See our guide on what to offer when a Shopify customer wants a discount.
The welcome code that arrived too late
This one deserves its own rule because it comes up again and again. A new customer signs up for your list, orders straight away, and the welcome email lands after checkout.
The customer has a point: you made the offer, and they acted on it. Many stores honor it within a short window after the order. Pick a window, write it down, and apply it every time. After that window, offer the code on the next order instead.
Copy-ready replies
Valid code, order not shipped yet
Hi Sarah,
Thanks for letting us know. Your code WELCOME was valid for this order, so we've applied it and refunded the difference to your original payment method. When it shows up depends on your bank. Your order ships as planned.
Best,
The support team
Valid code, order already shipped
Hi James,
Good catch. Your order has already left our warehouse, so we've refunded the discount amount instead. It goes back to the card you paid with, and nothing changes with your delivery.
Best,
The support team
Code not valid for that order
Hi Lena,
I checked the code SPRING for your order. It only applies to the Spring collection, and the items you ordered are outside it, so it wouldn't have worked at checkout. I'm sorry for the confusion. If you're thinking of anything from the Spring collection, the code is still active until the end of the month.
Best,
The support team
Code expired before the order
Hi Marco,
The code SUMMER ended the day before your order, so we can't apply it this time. Thanks for understanding.
Best,
The support team
Keep the reason to one sentence. Customers accept a no much more easily when they can see the rule behind it.
The rule to give your team or your AI agent
Write this down once and every ticket gets the same answer:
- All 4 checks pass, order unfulfilled: edit the order and refund the difference.
- All 4 checks pass, order fulfilled: partial refund, no restock, order note.
- Welcome code inside your window: honor it the same way.
- Code invalid for the order: explain the reason in one sentence, no refund.
- Your setup was wrong: honor it and flag the discount to whoever manages it.
- Second request from the same customer on the same code, or a large amount: pass it to your team.
That last line is your safety net. The other cases are lookups and a refund, the kind of ticket that shouldn't wait for someone senior. Escalate only when a person really needs to decide. Our ecommerce support escalation checklist helps you set those limits.
How Relay handles discount code tickets
Relay reads the order, checks it against your rules and acts within the permissions you give it. For this ticket, it can look up the order, see whether it has shipped, apply your rule, and issue the refund or send a code for the next order. If a case falls outside the rule, it hands the ticket to your team with the order and the checks already done.
You stay in control. Relay takes action, like a refund or a discount code, according to the permissions you give it, and it knows when to bring in your team. Permissions work the same way they do for other money tickets, like double charge requests.
FAQ
Can you apply a discount code to an existing Shopify order?
No. Shopify doesn't let you enter a discount code on an order after checkout. You can edit an unfulfilled order and apply a manual discount to its line items, or issue a partial refund for the discount amount.
Should I refund the difference or give a code for next time?
If the code was valid and the customer asks for the money, refund the difference. A code for the next order is a good option to offer, but don't push it on someone you owe a refund to.
How long after the order should I honor a forgotten code?
That's your call. Pick a window after the order, write it in your support rules, and apply it to every customer. Past that window, offer the code on the next order instead.
What if the customer tried the code and checkout rejected it?
That's a different ticket with different causes. Our guide on Shopify discount codes not applying covers what to check and how to reply.
How do I stop the same discount being refunded twice?
Add an order note every time you honor a code after checkout: the code, the amount and the reason. Before refunding, check the customer's earlier orders for the same note.