Skip to content

Do Shopify Discount Codes Apply to Gift Cards?

Shopify discount codes skip gift cards by default, with one exception. Learn the minimum purchase rules and the real margin cost of a discounted gift card.

How-to guidesThe diex team13 min read

You are about to turn on a 20% off code for the holidays, and someone asks whether it will also take 20% off a $100 gift card. It is a fair question with real money behind it: a discounted gift card means you collect cash now against goods you owe later. Shopify answers the main question in one sentence, but two follow-on rules catch merchants out, and the margin math deserves a second look. Here is the complete picture, plus how to run a deliberate "get $100 for $80" promotion if that is what you actually want.

The short answer: most discounts skip gift cards

Shopify's discount codes FAQ puts it plainly: "Most discounts cannot be applied to gift cards. The exception is a product specific discount where the product is a gift card."

That covers the common cases. A sitewide amount off orders code does not reduce the price of a gift card sitting in the cart. Neither does a collection-based discount, even if someone has filed your gift card product into the collection you selected. Shopify's page on discounting gift cards spells that out: "Discounts that apply to specific collections don't apply to gift card products within the collection."

So the default behavior is the safe one. You do not need to build an exclusion rule before launching a sitewide code. If you have read that codes hit everything in the cart, that is not what Shopify's documentation describes.

One honest caveat. This describes discounts you create in the Shopify admin. If any part of your pricing runs through a third-party app or custom code, put a gift card in a test cart and apply the code before you announce anything. Five minutes of testing beats a support ticket from a customer who thinks they were short-changed.

The one exception: a discount that names the gift card product

The exception is narrow and specific. You can discount a gift card only with a discount that selects that gift card product, or one of its variants, by name.

Shopify's gift card discount page describes exactly this: you can "create discount codes or automatic discounts that apply to specific gift card products or gift card product variants," and it uses the obvious example. A "$100 gift card for $80" discount reduces the $100 gift card cost by $20. The customer pays $80, and "the value of the gift card product or variant is the amount that can be used for a future purchase." The card is still worth $100 when it comes back to you.

Two details worth knowing. Each denomination is a separate variant, per Shopify's guide to adding gift card products: "Each gift card denomination is saved as a unique variant of the gift card product." That means you can run the offer on your $100 card and leave the $25 one alone. And you can give a gift card away rather than discount it: the gift card discount page says you can use a discount "to include a free gift card product as part of a purchase with a buy X get Y discount."

What you should not do is reach for the compare-at price field. Shopify's gift card products overview says the "Compare-at price field shouldn't be used to discount gift cards. Instead, use discount codes or automatic discounts to reduce the price of gift card products."

What a gift card in the cart does to your minimum purchase requirement

This is the part that gets missed. A gift card someone is buying does not help them clear your minimum purchase amount.

Shopify's documentation on amount off products and amount off orders states it directly: "Purchased gift cards don't count towards the minimum purchase amount unless you specifically select the gift card product for the discount."

For an amount off orders discount, the same page explains that two separate totals both have to clear the minimum. Before product discounts, Shopify measures "the total for the selected purchase type, excluding purchased gift cards." After product discounts, it measures "the cart subtotal, including all purchase types and including purchased gift cards." Because both tests have to pass, a cart can fail on either one. The before-discount test is the one that ignores the purchased gift card, and it is usually the one that blocks the code.

For example, say your code is "spend $150, get 20% off." A customer adds a $120 hoodie and a $100 gift card. The cart subtotal reads $220, so the customer expects the code to work. It does not. The before-discount total excluding the purchased gift card is $120, which is under $150, and the discount is rejected. Expect the occasional "your code is broken" email during a gift card push, and have an answer ready.

The second test can also be the one that fails, which is why it is worth checking both before you conclude a code is broken. Say your threshold is $300 and a customer has $400 of product, $300 of product discounts already applied, and a $100 gift card. The before-discount total is $400 and clears the bar. The after-discount subtotal is $200, gift card included, and does not. Same rejection, different cause, and the fix is different too.

This behavior is the right one for your margin. Without it, a customer could buy a gift card purely to qualify for a discount on real goods, take 20% off the hoodie, then come back and spend the card at full price. If minimum purchase rules are part of how you run promotions, our guide to what counts toward a Shopify minimum purchase amount covers the other edge cases, including subscriptions and prior product discounts.

Buy X get Y works on its own wording. Shopify's buy X get Y page says "Gift cards that a customer buys count towards the Customer buys amount when they're included in the products or collections that you select for a discount." So if you are building a buy X get Y offer and have selected a collection that contains your gift card, check the behavior in a test cart rather than assuming it matches the minimum purchase rule above.

A gift card used as payment is not a discount

A gift card being redeemed and a gift card being bought are two different things, and Shopify treats them differently.

When a customer pays with a gift card, nothing about your discount logic changes. The amount off products and amount off orders page states that "gift cards and store credit used as payment don't affect the minimum purchase amount, because they apply to the order total after discounts are calculated." The card is a payment method, applied at the end, not a discount applied to line items.

So a customer placing a $200 order and paying $150 of it with a gift card still counts as a $200 order for your "spend $150" code. Both the code and the card apply, and Shopify's page on redeeming gift cards confirms that "gift cards can be used together with discount codes."

Two more facts from that page are worth filing away. "Gift card balances are applied to the total value of an order, which can include taxes and shipping," which matters for the margin section below. And "a gift card can't be used to buy another gift card," which closes the loop that would otherwise let someone churn a discounted card into a bigger one.

What a discounted gift card actually costs you

Here is the trade that a "$100 for $80" offer actually makes: you take 80% of the money now and owe 100% of the goods later.

For example, say your gross margin is 60%, so $100 of goods at full price costs you $40 and leaves $60 of gross profit. You sell a $100 card for $80. When the card comes back and gets spent on $100 of full-price product, you have collected $80 and paid $40 in cost of goods. Gross profit on that order is $40 instead of $60. You gave away a third of the profit, which is the normal arithmetic of a 20% discount on a 60% margin product. The gift card wrapper does not change the depth. If you want to work out the depth your margins can actually carry, we have the full calculation in how deep a discount can go before it costs you money.

Three things make the gift card version meaningfully different from a plain 20% off code:

  • Timing of the cash. You bank $80 in November and ship the goods in January or later. Good for cash flow before a slow quarter, bad if you forget that January's revenue already has a discount baked in.
  • Where the discount can land. Because gift card balances apply to the order total including taxes and shipping, part of the value you gave away can be spent on shipping, where you have no product margin to absorb it.
  • What shows in your reports. Shopify's sales report documentation says that when you sell a gift card product, "it isn't included in any sales reports, nor the total sales number." The amount paid shows in the Payments finance report instead. When the card is later redeemed, "it's included in sales reports. The full value of the item is claimed as sales."

That last point is the one to plan around. A campaign that only discounts gift cards will not show up the way your other promotions do, so do not go looking for it in the usual place. Shopify's custom report fields do track it: "Gift card gross sales refers to the actual value of gift cards you sold. This represents your outstanding liability." If you normally judge a promo by the sales by discount codes report, note the redemption side separately, because the order that spends the card will record full value as sales with no discount attached to it.

How to set up a gift card promotion on Shopify

Gift cards are available on all Shopify subscription plans, per the gift card products overview, and a denomination sold as a gift card product can be worth up to $10,000 USD or the equivalent in the card's currency. That ceiling is for gift cards sold as a product. The same page puts the default maximum for a gift card issued directly from the admin at $2,000 USD or the equivalent, adjustable by Shopify Support on review.

  1. Go to Products > Gift cards in your Shopify admin and click Add a gift card product if you do not already have one. Give it a title, pick the currency, set the denominations, publish it to your sales channels, and click Save gift card product. Each denomination is a variant.
  2. Go to Discounts and click Create discount.
  3. Choose Amount off products.
  4. Under Method, pick Discount code or Automatic discount. A code is better when you want to control who sees the offer, send it to a list, or put a ceiling on how many times it can be used. An automatic discount is better when the price should drop for everyone, which suits a seasonal gift card push, with the trade-off in step 7. Our comparison of automatic discounts and discount codes goes through the rest.
  5. Set the value. Either a percentage or a fixed amount works. A fixed $20 off the $100 card reads more cleanly in marketing than 20% off.
  6. Under Applies to, select Specific products and add your gift card product. Select the specific variant if you only want one denomination on offer. Do not use Specific collections, because collection discounts do not reach gift card products.
  7. Set active dates. If you chose a discount code, you can also cap your exposure under Maximum discount uses: a total number of uses, one use per customer, or both. Automatic discounts have no equivalent usage limit, so control an automatic offer with its end date instead. Shopify's automatic discounts page notes only a store-wide ceiling: "You can have a maximum of 25 active automatic discounts. This total includes app-based discounts."
  8. Save, then place a test order to confirm the price drops and the fulfilled card carries full face value.

How to keep a sitewide promotion off your gift cards

For discounts built in the Shopify admin, there is nothing to do. Amount off orders discounts and collection-scoped discounts already skip gift cards. For amount off orders and amount off products discounts, the only way a gift card gets discounted is if you select it by name. Buy X get Y is the exception covered above: gift cards count toward Customer buys through a selected collection, and a gift card can be given away free as the Y.

The realistic mistakes to check for:

  • You built a "sitewide" sale as an amount off products discount with Specific products, selected everything, and the gift card came along for the ride. Review the product list.
  • You built a buy X get Y offer and your gift card sits in the collection you selected for Customer buys, so gift card purchases help customers qualify for the free item. Shopify supports that. Confirm it is what you intended.
  • Your marketing says "20% off everything." Add "excludes gift cards" to the fine print so the people who try it are not surprised.
  • Your minimum purchase threshold sits just above a common cart value, and gift card buyers keep missing it. Either lower the threshold or say in the offer copy that gift card purchases do not count toward it.

The same scoping question applies to any discount that is not an amount off products or amount off orders discount from the admin. If you run spend-based tiers, diex lets you set them on the whole order or on selected products and collections, so you can point a tiered promotion at the collections you want it to reach. Test a gift card in the cart before you launch.

What to do before your next gift card push

Three things worth doing this week:

  1. Put a gift card and a normal product in a test cart, apply your upcoming code, and screenshot the result. You now know exactly what customers will see, and you have something to paste into a support reply.
  2. If you are running a minimum purchase threshold at the same time as a gift card promotion, write one sentence of offer copy that says gift cards do not count toward it. It costs nothing and prevents the complaint.
  3. Before you commit to a "$100 for $80" offer, run the margin number on your own gross margin rather than the discount percentage. The question is not whether you can afford 20% off, it is whether you can afford 20% off on an order you will ship after the cash has already been spent.

Gift card promotions are a legitimate tool, particularly for pulling revenue forward ahead of a quiet period. Just price them knowing that the goods go out at full value, and keep in mind that laws and regulations about gift cards vary by region, so check with a local tax or legal expert about rules that apply to you.

Sources

  1. Shopify Help Center: Discount codes FAQ
  2. Shopify Help Center: Add a discount to a gift card
  3. Shopify Help Center: Gift card products overview
  4. Shopify Help Center: Amount off products and amount off orders
  5. Shopify Help Center: Add and update gift card products
  6. Shopify Help Center: Redeem a gift card
  7. Shopify Help Center: Buy X get Y discounts
  8. Shopify Help Center: Sales reports
  9. Shopify Help Center: Automatic discounts

Drafted with AI from the sources above and checked automatically against them and our product facts. Spotted a mistake? Email help@diex.app.

More articles

Run the promotions you actually want to run

Install diex from the Shopify App Store. One plan at $29.99 a month, billed by Shopify.