Restricting Discounts to Markets/Countries

What is the best way to allocate or restrict a discount to a specific market and/or country within Shopify? I am planning to programmatically create discounts that are only available for a specific country or market, for example, because shipping prices are too high elsewhere. Is there an efficient way to do this using the GraphQL Admin API?

Are you creating discount codes or automatic discounts?

1 Like

If you have a response for Both that would be amazing as I would have the the need for both.

Hey Sam, there isn’t currently a way to directly restrict discounts to markets in native Shopify discounts, programatically or otherwise.

You can restrict based on market id/handle/title through a Shopify discount function. However, even this is currently ‘deprecated’, with no current replacement. So, you could create your own discount function, or use an application which exposes these attributes.

My assumption is that Shopify will provide market eligibility across all discount(s) at some point in the future. Just an assumption.

3 Likes