Skip to content

Shopify tutorials for the person running the store. Orders, discounts, fulfilment, returns.

Limit a discount code to one market in Shopify

A market groups customers by region, so one code can serve one country and no other. This tutorial limits CANADA15, worth 15% off, to the Canada market, with one use per customer, running 11 to 30 November 2026.

Written · Shopify admin, desktop steps · 4 minutes read

The worked example

CodeCANADA15
Value15% off the order
EligibilityCanada market only
Usage limitOne per customer
Active11 to 30 November 2026
$80.00 order$12.00 off, pays $68.00
$40.00 order$6.00 off, pays $34.00

Download the planner: market-example-orders.csv (125 bytes).

The worked example orders for the Canada market. Orders outside the market get no discount, whatever the total.

1Open Discounts and start a new discount

From your Shopify admin, go to Discounts, then click Create discount. From the discount type menu, click Amount off orders. An amount off orders discount applies to the whole order.

2Choose the code method

Under Method, select Discount code. Then enter the code name in the Discount code section, or click Generate code for a random one. This tutorial uses CANADA15.

3Set the value to 15%

In the Value section, select Percentage and enter 15. The other choice is Fixed amount, a dollar value off instead of a percent. An amount off discount does not apply to shipping costs.

4Pick the market

In the Eligibility section, select Markets, then select the market you want to assign the discount to and click Add. This tutorial uses the Canada market. Only customers in that market can use the code: a customer outside Canada typing CANADA15 at checkout gets no discount.

5Limit it to one use per customer

In the Maximum discount uses section, check Limit to one per customer. Shopify tracks a customer's email address or phone number to enforce the limit.

6Set the dates

In the Active dates section, set the start date to 11 November 2026 and click Set end date to set the end date to 30 November 2026. If you do not set an end date, the code does not expire. Start and end times follow the time zone set in your Shopify admin.

7Save the code

Click Save. The code appears on the Discounts page and is ready to use. Tell Canadian customers about it directly: only they can use it, so it will not spread on its own.

The arithmetic

The discount applies to the order total before tax and shipping.

Order15% offCustomer pays
$80.00$12.00$68.00
$160.00$24.00$136.00
$40.00$6.00$34.00

The market follows the customer's region at checkout. A customer outside the Canada market can type CANADA15 and get no discount, whatever the order total.

Held at the counter

A market is about the customer's region, not the currency. Eligibility is set by market, which groups customers by region. A Canadian customer paying in another currency is still in the Canada market; a customer outside Canada is not, whatever currency they pay in.

The per-customer limit is tracked by email or phone. A customer who used the code once and checks out again as a guest with a different email will not be stopped.

The code still needs an end date. Without one, CANADA15 runs until you stop it. A market offer saved without an expiry keeps applying to every order from that market.

Sources

  • Amount off discounts — Shopify's help pages: the Eligibility section for markets, and the usage-limit rule that tracks email address or phone number.