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!