What's your biggest current challenge? Have your say in Community Polls along the right column.
Our Partner & Developer boards on the community are moving to a brand new home: the .dev community forums! While you can still access past discussions here, for all your future app and storefront building questions, head over to the new forums.

Didn't get total amout with including tax in delivery customization

Didn't get total amout with including tax in delivery customization

tejash_patel_iw
Shopify Partner
23 0 2

Hi,
We're reaching out to address a critical issue regarding the order total amount in delivery customization. (Delivery customization is an extension)

 

As per the documentation provided by Shopify, we understand that the total amount parameter should include both the subtotal and tax amount. However, we have noticed that we are only receiving the subtotal amount, without the inclusion of tax.

 

For more information please refer this video: https://screenpal.com/watch/c0QtXwV5iLB

Doc link: https://shopify.dev/docs/api/functions/reference/delivery-customization/graphql/common-objects/cartc...

 

Please update us, how we can get total amount with including tax?
Thanks.

Replies 7 (7)

Liam
Community Manager
3108 344 895

Hi Tejash_patel_iw,

 

That does sound unusual - just to test, are you able to recieve values for `totalTaxAmount`? As a temporary measure you may be able to do calculations to display the full total? 

 

Hope this helps,

Liam | Developer Advocate @ 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 Shopify.dev or the Shopify Web Design and Development Blog

tejash_patel_iw
Shopify Partner
23 0 2

Hi Liam,

No, we are not able to get 'totalTaxAmount' as well, we get a NULL response in this parameter.
https://prnt.sc/yi22NAFLDavK

Please let me know, how we can fulfill our requirements.

Thanks.

cherriecoder
Shopify Partner
14 0 0

hope you were able to figure it out but the reason why it is showing null is because of the structure of your query 

totalTaxAmount has fields of amount and currencyCode so to query it would be 

totalTaxAmount{
   amount,
   currencyCode
}

 

tejash_patel_iw
Shopify Partner
23 0 2

Hi

We already passed the same query as you suggested, but it still gives an empty object even if the tax amount is on the checkout page.
Could you please suggest another way?

 

Thanks.

cherriecoder
Shopify Partner
14 0 0

I think it would be more helpful if you show me how you're querying the information.

tejash_patel_iw
Shopify Partner
23 0 2

Hi

We have passed this way, https://prnt.sc/K66uN7vqLyKz
Kind regards,

cherriecoder
Shopify Partner
14 0 0

Try changing the e to “a” for the tax.  totalTexAmount to totalTaxAmount