Shopify discount codes: how to create them, and what to do when a code doesn't work
To create a discount code in Shopify, go to Discounts in your Shopify admin and click Create discount. Choose the type (amount off products, amount off orders, buy X get Y or free shipping) and select Discount code as the method. Then set the code, value, minimum requirements, eligible customers, usage limits, combinations and active dates, and click Save. Customers enter the code at checkout. Most 'my code doesn't work' messages come from those same settings: an end date, a minimum spend, products or customers the code doesn't cover, or a code that can't combine with another discount.
Updated 2 December 2026
How to create a discount code in Shopify
From your Shopify admin, go to Discounts and click Create discount.
Choose the type: Amount off products, Amount off orders, Buy X get Y or Free shipping.
Under Method, select Discount code. Type a code (for example SUMMER15) or click Generate code. Shopify suggests avoiding special characters so the code works in links.
Set the value: a percentage or a fixed amount. For a product discount, choose specific products or collections under Applies to.
Optional: set a minimum purchase amount or a minimum quantity of items.
Under Eligibility, choose who can use it: all customers, specific customers, customer segments or specific markets.
Under Maximum discount uses, you can limit how many times the code can be used in total, or to one use per customer.
Under Combinations, tick the kinds of discount it can be used with. Discounts don't combine unless you allow it.
Set the start date and, if it should expire, an end date. Times follow the time zone set in your Shopify admin. Click Save.
The four Shopify discount types
Each type can be a discount code, which customers type at checkout, or an automatic discount, which applies in the cart when the conditions are met. Amount off discounts don't take anything off shipping.
Type
What it does
Example
Amount off products
A percentage or fixed amount off specific products or collections
15% off necklaces
Amount off orders
A percentage or fixed amount off the order subtotal
$10 off orders over $80
Buy X get Y
A free or discounted item when the customer buys something
Buy 2 candles, get 1 free
Free shipping
Takes the shipping cost off, often above a minimum spend
Free shipping over $100
Discount codes or automatic discounts?
Codes suit email, influencer and ad campaigns, and the Sales by discount report shows how often each code is used. Shopify notes that forgotten codes can lead to abandoned carts.
Automatic discounts suit site-wide sales, collection promotions and bulk buys. There's nothing to type, so there are fewer 'where do I put the code?' messages.
You can have up to 25 active automatic discounts, including discounts from apps.
For an automatic discount to apply, customers must add every eligible item to the cart, including the free or discounted item in a buy X get Y offer.
You can also mark a product down with a sale price instead of a discount. If you show a 'was' price, it must be genuine (see the rules below).
How combining discounts works
Discounts only combine when each one's Combinations setting allows the other's class: product, order or shipping discounts.
Every store can combine an order discount with free shipping, a product discount with free shipping, and product discounts on different items. Product plus order, and order plus order, need an eligible checkout (no checkout.liquid customisations). Two product discounts on the same item needs Shopify Plus.
Customers can use up to 5 product or order discount codes and 1 shipping discount code on one order. Two shipping discounts never combine.
If discounts can't combine, Shopify applies the best one for the customer, so a code can look like it was 'replaced'.
Product discounts apply first, then order discounts on the new subtotal, then shipping. Two percentage order discounts are both worked out on the same subtotal: 10% plus 20% off $100 is $30 off.
Discounts only combine on orders through the Online Store, Storefront API and Shopify POS, not on Facebook, Instagram, Google or other external checkouts.
Why a Shopify discount code isn't working
Test every code before you share it. Shopify suggests adding products to a cart, going to checkout, entering the code and checking the total, then closing the page without paying. Try excluded products and a different address too. If a customer still has trouble, check these:
What the customer says
Likely cause
What to check
'It says the code isn't valid'
The code is mistyped, hasn't started, has expired or was deactivated. A deactivated code shows 'Unable to find a valid discount matching the code entered'.
The spelling and Active dates. Dates follow your store's time zone.
'Discount couldn't be used with your existing discounts'
It can't combine with a code or automatic discount already in the cart.
Combinations on both discounts, any automatic discounts, and discount or checkout apps.
'It worked, then a different discount replaced it'
The two can't combine, so Shopify applied the better one.
Nothing is broken. Allow the combination if you want both.
'The discount isn't coming off'
The cart is under the minimum spend or quantity, or the items aren't ones the code covers.
Minimum requirements and Applies to. Only covered items count towards the minimum.
'It says I can't use it'
The customer isn't eligible, or has used a one-per-customer code already.
Eligibility (customers, segments, markets) and Maximum discount uses.
'It won't work on the free item'
Items in a buy X get Y offer can't get extra product discounts (Shopify Plus has some exceptions).
Tell the customer which offer applies, or use an order discount instead.
'Nothing comes off shipping'
Amount off discounts don't apply to shipping, and only one shipping discount applies per order.
Use a free shipping discount, set to combine if needed.
'The discount from your link won't go away'
Discounts from a shareable link are saved to the cart and browser.
They can click Remove discount at checkout, or clear cookies and go to your store directly.
Share a discount with a link or QR code
A shareable link applies the discount for the customer, so there's nothing to type. Each link carries one discount and only works while the discount is active. Codes made by third-party apps don't get a link in your Shopify admin.
Create and save the discount code first.
In Discounts, click the discount, click Promote, then select Get a shareable link.
Choose the page, product or collection the link opens. Optionally pick a marketing campaign to add tracking.
Click Copy link, or download the QR code for receipts and displays.
Replies for 'my discount code isn't working'
DM: code not working
Hi [Name]! Sorry about that. [CODE] works on [what it covers, e.g. orders over $80] until [end date]. [If that's the problem: add one more item to get over $80 and it'll apply.] Still not working? Send me a screenshot of the checkout and I'll sort it straight away.
Comment under an ad: 'The code doesn't work!'
Sorry about that! [CODE] works on orders over $[amount] until [date]. Still stuck? Send us a DM and we'll help straight away 🙌
Code has expired
Hi [Name], sorry, [CODE] finished on [date]. [If you choose to: Thanks for your patience, here's [NEW CODE] for [offer] until [date].] Anything else I can help with?
Forgot to use the code
Hi [Name], thanks for your order! It looks like the code didn't go through at checkout. Reply with your order number and we'll [refund the difference] for you.
The rules: discounts must be genuine
Australia: in 2020 the Federal Court ordered Kogan to pay a $350,000 penalty over a 'TAXTIME' promotion. It advertised a code for 10% off at checkout, but had raised the prices of 621 products just before. Many customers who used the code paid the same as, or more than, they would have before or after.
The ACCC's release also notes Kogan's emails said things like '48 hours left!' and 'Ends midnight tonight!' to rush customers. If you say a code ends at midnight, end it at midnight.
A 'was' price must be real. If you show one with Shopify's compare-at price, New Zealand's Commerce Commission says it must be the price you usually sell at, or sold at just before the markdown. See the full rules in our Fair Trading Act guide.
Wherever you post a code, say what it covers, any minimum spend and when it ends. It's fairer, and it cuts 'why isn't it working?' messages.
What you tell customers about a discount in DMs, comments and emails counts as much as your ads.
A broken code is a sale about to happen
Someone messaging 'my code isn't working' has a full cart and is ready to pay. Leave them waiting during a sale and they'll buy somewhere else. Paperflower puts every comment, DM and email in one list and puts buying questions like this first, so you see them during your sale, not after it. On Standard it drafts each reply from what you've saved in Knowledge, such as this week's offer and its rules, plus the customer's Shopify details. For a comment under an ad, it drafts a short public reply for you to post yourself and moves the details to DMs, and refunds always come to a person. See our Instagram DM templates for more replies.
How Paperflower is different
Comments are a sales channel, not a chore
Most tools treat comments as noise. Paperflower reads every one, spots buying questions like “do you ship to NZ?” and makes sure they get answered before the customer moves on.
Buying Intent and Opportunity Score
Every conversation gets a score so the people ready to buy come first. You see who to reply to now, and who can wait.
Shopify context in every draft
Order status, shipping and product details are pulled in automatically, so drafts are right the first time and private order details never go out in public.
You stay in control
AI drafts are on and auto-send is off by default. Complaints are escalated to you. Refunds and cancellations always need a human.
Simple pricing
Paperflower starts free with 100 customer interactions a month, no card needed: every message in one list, and you write the replies. AI sorting, reply drafts and spam hiding come with Standard, which is A$47 a month for 3,000 customer interactions, with a 7-day free trial. Human replies are always free. See all plans.
Built for AU and NZ brands
Local time zones, local shipping questions, and support from people who know the market.
Frequently asked questions
In your Shopify admin, go to Discounts, click Create discount and choose the type. Select Discount code as the method, enter or generate the code, set the value, requirements, eligible customers, usage limits, combinations and dates, then click Save.
Usually because of a setting on the code: it hasn't started or has expired, the cart is under the minimum spend, the items aren't covered, the customer isn't eligible, the usage limit is reached, or it can't combine with another discount in the cart.
Yes, if both are set to combine with each other's class. Customers can use up to 5 product or order discount codes and 1 shipping discount code on one order. Two shipping discounts can't combine.
A discount code is typed in at checkout. An automatic discount applies by itself in the cart when the conditions are met. You can have up to 25 active automatic discounts, including app discounts.
Yes. In Discounts, open the discount, click Promote, then Get a shareable link. Choose the page it opens, then copy the link or download the QR code. The discount applies automatically when the customer checks out.
Amount off discounts don't apply to shipping. Use a free shipping discount instead. Only one shipping discount can apply to an order.
Not unless you turn that on. By default it drafts a reply and you approve it. You can switch on auto-send for simple, safe questions once you trust the drafts.
Instagram, Facebook and TikTok comments and DMs, support email through Gmail or Google Workspace, and Shopify for order details.
Yes. The Free plan is the basics: 100 customer interactions a month in one list, no card needed, and you write each reply. Standard adds AI sorting, reply drafts and spam hiding, and comes with a 7-day free trial. You can cancel any time. Compare plans.
Start Paperflower free
Connect Instagram, Facebook, email and Shopify in a few minutes. On Standard, AI sorts every message and drafts every reply, you stay in control, and nothing is sent without your say-so unless you switch that on. Free puts every message in one list for you to answer.