How to Display Tax in Cart on a Mobile App Using Shopify Storefront GraphQL

Hi everyone,

I’m building a mobile app using Shopify Storefront GraphQL and need help displaying the tax amount in the cart. Previously, I used:

cart.estimatedCost.totalAmount.currencyCode

and

cart.Cost.totalAmount.currencyCode

But both of these seem to be deprecated.

My goal is to show the total price including tax on the cart page. Could anyone guide me on the correct way to fetch and display tax using the latest Shopify Storefront API?

Any help would be much appreciated. Thanks!

Hi @Sanket_Kumbhani you should use the new cost field on the Cart object.

Hi @daniel, I’ve tried, but as you can see in the cost, the totalTaxAmount is also deprecated.

You can use totalAmount

I need to show subtotal, taxamount, and totalamount