Version 2019-10

The Country resource represents the tax rates applied to orders from the different countries where a shop sells its products.

Merchants select the countries where they sell their products when they set up their shipping zones and rates on the Shipping page of the Shopify admin. After adding a country to a shipping zone, store owners can then verify and adjust tax rates for each country on the Taxes page.

The Country resource lets you access the countries and tax rates set up by the merchant. The countries list includes a default entry called Rest of World, which represents all non-specified countries.

You can use the Country resource to modify the sales tax rate for a country or sub-region to account for surtaxes or exemptions that apply to the store.

For more information on managing tax rates for sub-regions of a country, such as states or provinces, see the Province resource.


As of version 2020-10, you can no longer create or update custom tax values for the Country resource.

What you can do with Country

The Shopify API lets you do the following with the Country resource. More detailed versions of these general actions may be available:

Country properties

"code": "CA"

The two-letter country code (ISO 3166-1 alpha-2 format).

"id": 879921427

The ID for the country. The ID for a country is unique across all Shopify stores. The ID for a country in one shop will be different from the same country in another shop.

"name": "Canada"

The full name of the country in English.

"provinces": [
    "code": "ON",
    "country_id": 879921427,
    "id": 205434194,
    "name": "Ontario",
    "tax": 0.13,
    "tax_name": "HST",
    "tax_type": "harmonized",
    "tax_percentage": 13