Taxes are added to the price including tax when retrieving product information.

Assumption.

  • Storefront API is used to build and operate the store.
  • Product prices are registered with tax included.

I don’t know how long this has been happening, but suddenly the prices of items on the product page and collection page are being obtained with the tax amount added to the price registered as including tax.

In the admin page, for each product, I check the box to charge tax, and in the overall settings, I set the price to include tax.

The amount after adding to cart and on the checkout page is the amount I registered for the product.

I didn’t know how to solve this problem, so I did a product amount / 1.1 to handle it.

Does anyone know how to get the correct amount in the API response?

Translated with DeepL.com (free version)

Hi @Kenji_Iwase, this does seem like odd behaviour, happy to help take a look into this.

Could you share your exact GraphQL query/mutation you’re using and whether you’re using the @inContext directive or passing buyer identity when you’re displaying the products? Also it you could share your market configuration and a specific example showing the registered price versus the API response (or how it’s displayed on the frontend) that would be super helpful.

The fact that checkout works correctly suggests this is likely a context issue in your product queries via the SFAPI (or in Liquid if you’re using a theme) rather than a configuration problem as you’ve mentioned.

Hope to hear from you soon - happy to investigate further for sure.