Storefront API, totalTax always 0

Storefront API, totalTax always 0

17 1 9

I've been working with the storefront API for a few days, and I can't seem to get the taxes to return anything but 0? My I've tried pulling both totalTax and totalTaxV2 in my graphql statements. both return 0. I've also tried flipping the settings in my shopify account for prices to include and exclude taxes. Stil 0 when calling via Storefront API. As soon as you go to the hosted checkout though, the taxes are showing fine. 


Anyone else had issues with this? Is this an error in the storefront API?

Replies 5 (5)

Shopify Staff
1561 81 342

Can you show me some steps I can follow to get a checkout into this state? I feel like I'm missing a bit of information, so replication steps would be greatly appreciated! I just want to make sure I'm understanding your issue completely and getting you the correct answer.



Alex | Shopify 
 - Was my reply helpful? Click Like to let me know! 
 - Was your question answered? Mark it as an Accepted Solution
 - To learn more visit the Shopify Help Center or the Shopify Blog

1 0 0

I'm seeing the same issue with the Storefront API. A simple reproduction is to use the react-apollo example in the storefront-epi-examples on github. It requests "totalTax" (but I believe this is deprecated for "totalTaxV2" now).


Both "totalTax" and "totalTaxV2" always return "0.00" for the API, but when you click the Checkout button in the example, it launches a new window with the tax shown. This seems like a bug, or at the very least, there should be an updated example how to actually get this tax.

2 0 0

I am also seeing this. A product that is taxable is in a checkout i have created, and totalTax always returns zero. How can we get the actual final total?  (I am using the latest April 2020 API)

2 0 0

It turns out i didn't have a shipping address added...this is my fault. Once I added the address the tax showed correctly.

Shopify Partner
8 1 5

What about for products with no shipping address (e.g. products with "This is a physical product" unchecked)? Shouldn't they also have a non-zero totalTax?