How to Check If a Store Has Enabled Taxes & Duties for a Country in GraphQL

Topic summary

A developer needs to determine if a Shopify store has enabled taxes and duties for specific countries using GraphQL APIs.

Current Solution (REST API):

  • The /admin/api/2024-01/countries.json endpoint provides detailed country-specific tax settings
  • Returns data including tax rates, tax names (e.g., “HST”), tax types, and province-level details

Problem:
No equivalent GraphQL method has been found to retrieve this country-specific tax information.

Attempted Approaches:

  • Admin GraphQL API (shop query): Only provides global tax settings (taxesIncluded), not country-specific details
  • Storefront API (localization object): Supports country-based pricing and market settings but excludes tax information

Status:
The question remains unanswered—seeking either a GraphQL solution or alternative approach to access country-level tax configuration data.

Summarized with AI on October 31. AI used: claude-sonnet-4-5-20250929.

I need to determine whether a Shopify store has enabled taxes and duties for a specific country. In the Admin REST API, the “/admin/api/2024-01/countries.json” endpoint provides tax settings for different countries.

For example, the Countries API response includes tax details like this:

{ “code”: “CA”, “id”: 879921427, “name”: “Canada”, “provinces”: [ { “code”: “ON”, “country_id”: 879921427, “id”: 205434194, “name”: “Ontario”, “tax”: 0.13, “tax_name”: “HST”, “tax_type”: “harmonized”, “tax_percentage”: 13 } ], “tax”: 0.05 }

However, I could not find an equivalent way to retrieve this tax information using GraphQL (Admin API or Storefront API). I have checked the following:

  • Admin GraphQL API (shop query) → Provides global tax settings (taxesIncluded) but lacks country-specific tax details.
  • Storefront API (localization object) → Supports country-based pricing, currencies, and market settings but does not include tax information.

Is there a way to retrieve country-specific tax and duty settings using GraphQL? If not, is there an alternative approach?

Thanks in advance!