How to Limit a Shopify Discount to One Country or Market
Shopify discounts now take market eligibility. Set it up step by step, plus the markets-or-segments rule and why percentages never vary by country.
How-to guidesThe diex team9 min read
A local holiday sale in Germany, a test offer in Australia, a code that should never work for shoppers in the US: all of these need one discount that runs in one place and nowhere else. Shopify can do this in the admin now, without an app, a second store or a shipping-country workaround. This guide covers the setup, then the three constraints that catch merchants out: you pick markets or customer segments but not both, channel markets are off the table, and your percentage is identical in every market no matter what the currency says.
What a market is when you attach one to a discount
A market in Shopify is not just a country. Shopify's market types are country or region markets (displayed to customers based on their geographic location, holding one country or several), retail markets that use POS locations as their condition, B2B markets built around wholesale company locations, and channel markets that use sales channels such as Google & YouTube or Facebook & Instagram as their condition.
That matters because discount eligibility uses those same objects. Shopify's help center is explicit about which ones you can pick: "You can assign discounts to specific B2B, country or region, and retail markets, but you can't assign discounts to specific channel markets" (Discounts and gift cards in Markets). So a discount can be scoped to Germany, to a single retail location, or to a set of B2B company locations, but not to your TikTok channel.
Two inheritance rules come out of the developer changelog that introduced market targeting, dated May 8, 2026: discounts do not inherit across different market types (a regional market discount does not flow to a B2B or retail market), and sub-markets of the same type do automatically receive their parent market's discounts. If you have a Germany market with a Bavaria sub-market, a discount on Germany reaches Bavaria. If you have a B2B market, a discount on your EU country market does not reach it.
One more default worth knowing before you touch anything: by default, discount codes work across all markets. Market eligibility is something you add, not something you have to switch off.
Add market eligibility to a discount, step by step
The option lives in the Eligibility section of the normal discount editor, so there is no separate screen to learn.
- From your Shopify admin, go to Discounts and click Create discount, or open the discount you already have.
- Choose the discount type: Amount off products, Amount off order, Buy X get Y or Free shipping.
- Choose the method: Discount code or Automatic discount.
- Set the value, then the products or collections it applies to, and any minimum purchase requirement.
- In the Eligibility section, select Markets, select the markets you want to assign the discount to, and then click Add. Shopify's own wording for the amount off products and amount off order steps is: "To make your discount available to customers in only specific markets, select Markets, select the markets that you want to assign the discount to, and then click Add."
- Set your active dates, usage limits (codes only) and combination settings.
- Save.
The same Eligibility block with the same four options appears in the Buy X get Y and free shipping discount setups, so the step is identical whichever type you are building.
Markets or customer segments: Shopify makes you pick one
The Eligibility section is a single choice between All customers, Specific customers, Customer segments and Markets. It behaves like a radio button, and the changelog confirms the underlying rule: eligibility types are mutually exclusive, so you cannot target markets and customer segments on the same discount.
That is the constraint most likely to break a plan. "20% off for customers tagged vip, but only in Canada" is not one discount in the admin. You have three honest options:
- Run it as a market discount and accept that everyone in that market gets it. Simplest, and usually fine for a national holiday sale.
- Encode the country inside a customer segment instead. Shopify's segment reference includes a
customer_countriesfilter that "Includes customers who have an address in the specified country or region," with the caveat in the same entry that "Customers who have multiple addresses might be included in more than one customer segment that uses this filter" (Shopify segment filters). This is address data on the customer record, not the market the shopper is actually browsing in, so it is a different thing that often produces a similar result. A guest with no saved address is not in the segment at all. - Split into two discounts with different codes, one per audience, and keep the market-scoped one narrow.
If you were hoping an app would bridge the gap, be careful about which gap it fills. diex customer eligibility covers customers with any of a list of tags, first order only and signed-in customers only, checked at checkout (customer eligibility guide). It does not do market or country targeting, so geography belongs in Shopify's native eligibility field.
Which discounts accept market eligibility
| Discount class | Market eligibility | Code and automatic |
|---|---|---|
| Basic (amount off products, amount off order) | Yes | Both |
| Buy X get Y | Yes | Both |
| Free shipping | Yes | Both |
| App discounts (Shopify Functions) | Yes, via the Admin API | Both |
The changelog lists Basic, BXGY, App and Free Shipping discounts, automatic and code-based. App discounts get market targeting through the markets field in the Admin API, which means support depends on whether the app you use exposes the setting in its own interface. Ask the app, do not assume.
If you work with the API or with an agency that does, note the version cutoff in the same changelog: API versions before 2026-07 cannot represent market-eligible discounts and will filter them out of queries. An older integration reading your discount list may simply not see the discount you just created.
Your percentage is the same everywhere, so prices and currency do the varying
This is the part merchants misread. A percentage discount does not change by market. Shopify's wording is blunt: "A 20% discount takes 20% off the product price regardless of which currency the customer is paying in." Fixed amounts behave differently, because they are created in your store's default currency and the amount is converted to the customer's local currency at checkout using the current exchange rate. Minimum purchase thresholds work the same way, set in your default currency and converted at checkout.
For example, say a sweater sells for $100 in your US market, and your EU market carries a price adjustment plus rounding that puts it at €99. A 20% code takes $20 off in the US and €19.80 in the EU, and both are exactly 20%. A $20 fixed-amount code takes $20 off in the US and roughly €18 in the EU at a 0.90 rate, and that euro figure drifts as the rate moves. If you want a different depth in a different country, the lever is not the discount: it is per-market pricing, where you can set prices by country or region, apply percentage price adjustments, and round local prices. Pair that with a market-scoped percentage code and you get predictable results. Our walkthrough of what customers actually get when discounts cross currencies goes deeper on the conversion behavior.
Threshold-based offers need the same caution. diex spend tiers set thresholds in the shop currency, and the spend tier storefront blocks hide themselves when the cart is in a currency other than the shop currency, so a "spend $200, save 15%" progress bar will not show a misleading number to a shopper checking out in euros.
Free shipping discounts also have their own country list
Free shipping is the one type with two geographic controls, and they do different jobs. Inside the discount, the free shipping setup has a Countries section where you "leave All countries selected or choose the countries that you want the discount to apply to." That is about shipping destinations. Market eligibility, in the Eligibility section of the same discount, is about which market the customer belongs to.
Set both and they both have to pass. Scope the discount to your Canada market but leave only the United States selected under Countries, and nobody qualifies. For a single-country promotion, the cleanest build is to pick that country's market under Eligibility and that same country under Countries, so the rule reads the same way twice.
While you are in there, the same page documents Exclude shipping rates over a certain amount: check it, enter an amount, and expensive rates are left out. That page notes the setting "applies to shipping rates only, and is unrelated to order amounts," which is useful protection when a market's express rates are much higher than your domestic ones.
Test the discount from the market it is meant for
You cannot judge a market-scoped discount from your own browser in your own country. Shopify documents a preview path for exactly this (testing multiple currencies): from your Shopify admin go to Markets, click the market you want to test, then click More actions > View online store.
Run the check twice:
- In the target market, confirm prices show in the expected currency, apply the code in the cart, and watch the discount amount and the order total at checkout.
- In a market the discount should not cover, apply the same code and confirm it does not reduce the total.
If currencies are not converting at all, check the payment requirement rather than the discount. Shopify states that to accept payments in multiple currencies, you need to use Shopify Payments or Adyen as your payment processor (markets requirements and considerations).
What to set up this week
- Open Markets in your admin and write down which markets exist and what type each one is. Country or region, retail and B2B markets can hold a discount; channel markets cannot.
- Pick your next regional promotion and build it as one discount with Markets eligibility, rather than a duplicate code per country.
- Decide now whether that promotion needs a customer condition. If it does, choose markets or segments deliberately, because Shopify will not let you have both.
- Use a percentage if you want the same depth everywhere, and a fixed amount only if you are comfortable with the converted figure moving with exchange rates.
- Preview the storefront from the target market and from one other market before you send the email.
Sources
- Shopify Help Center: Discounts and gift cards in Markets
- Shopify developer changelog: Target discounts to specific markets
- Shopify Help Center: Market types
- Shopify Help Center: Amount off products and amount off order discounts
- Shopify Help Center: Buy X get Y discounts
- Shopify Help Center: Free shipping discounts
- Shopify Help Center: Shopify segment filters reference
- Shopify Help Center: Pricing by market
- Shopify Help Center: Testing multiple currencies
- Shopify Help Center: Markets requirements and considerations
Drafted with AI from the sources above and checked automatically against them and our product facts. Spotted a mistake? Email help@diex.app.