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

Topic summary

Main issue: In a Shopify Delivery Customization function, the reported cart total appears to exclude tax. The developer also receives null for totalTaxAmount, despite Shopify docs indicating totals should include tax.

Context & references: The OP linked a video demonstration and the Shopify CartCost docs. Screenshots of the GraphQL query were later shared.

Troubleshooting steps:

  • Initial suggestion: Check totalTaxAmount and, as a temporary workaround, compute total = subtotal + tax.
  • Technical clarification: totalTaxAmount is an object and must be queried with nested fields (amount, currencyCode). The OP confirmed they already query it that way but still get an empty object even when checkout shows tax.
  • Further review: After viewing the query screenshot, a typo was identified—using totalTexAmount instead of totalTaxAmount.

Latest update: The advised fix is to correct the field name to totalTaxAmount. No confirmation yet from the OP that this resolves the issue.

Status: Unresolved/pending. Key open question: After correcting the typo, does totalTaxAmount populate and does the total reflect tax as per documentation?

Summarized with AI on January 3. AI used: gpt-5.

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,