Finding VAT value of a product (Rest admin api)

Topic summary

Main issue: Determine the VAT amount for a product from Shopify APIs. Product variants expose a tax_code (e.g., “DA040000”), but there’s no clear way to map that code to an actual VAT rate via the Admin REST or GraphQL APIs.

What was tried:

  • Used Product and Product Variant REST endpoints (2023-10). The tax_code is present but doesn’t resolve to a numeric VAT rate.
  • Checked the Countries REST endpoint (2023-04). It did not help map tax_code to VAT values.
  • Investigated Collections. VAT can be assigned per collection in the Shopify admin UI, but the GraphQL Collection object does not return VAT information.

Additional interest: Another participant wants to import tax_code for each line_item, indicating broader need for tax_code-to-rate mapping.

Current status: No solution identified. No endpoint or resource in the discussion provides the VAT rate corresponding to a tax_code, nor exposes collection-level VAT via API.

Open questions:

  • Which API (if any) maps tax_code values to VAT rates?
  • How to retrieve collection-level VAT settings through the API?
Summarized with AI on January 7. AI used: gpt-5.

We are using the “product” and “product variant” endpoints to import products from Shopify.

We have a problem in identifying the tax value of each product.

According to the API documentation each product variant has “tax_code” element, whose value is a key for available tax values.

Which endpoint can I use in order to find the value of this key “tax_code”?

here for example, how can I know how much is the VAT amount of “tax_code”: “DA040000”? https://shopify.dev/docs/api/admin-rest/2023-10/resources/product-variant

I am using these 2 endpoints: https://shopify.dev/docs/api/admin-rest/2023-10/resources/product-variant https://shopify.dev/docs/api/admin-rest/2023-10/resources/product-variant

Even the country endpoint does not help: https://shopify.dev/docs/api/admin-rest/2023-04/resources/country#get-countries

Did you manage to find a solution? I’m also looking into how to import tax_code for each line_item

Not Yet :disappointed_face:

I can find the collection for each product, but it is not possible to find the VAT value for each collection.
Assigning a VAT in Dashboard is possible only per collection, but the collection object (in Graphql) does not deliver the VAT information.