TanqoryDocs

tanqoryExtTaxPreview

  • Query
  • Markets, tax and languages

Previews the tax of an order-to-be with the store's tax settings (the same calculator checkout, draft orders and order edits use). Amounts are in the shop currency.

Arguments

ArgumentTypeRequiredDefault
inputTanqoryExtTaxPreviewInput!Required

Returns

TanqoryExtTaxPreview!

FieldTypeDescription
collectingBoolean!
lines[TanqoryExtTaxPreviewLine!]!
shippingTaxLines[TaxLine!]!
taxExemptBoolean!
taxesIncludedBoolean!
totalTaxDecimal!
usRatesTanqoryExtUsRateAnswer

US destinations the store collects in: how the rates were found. Null elsewhere or when the merchant set the state's rate.

Example request

A starting point: required arguments as variables and a few fields of the result. Replace the placeholders.

Set STORE_ID and TANQORY_ACCESS_TOKEN in your environment first (Make your first API call).

curl
curl -X POST "https://api.tanqory.com/admin/2026-10/stores/$STORE_ID/graphql" \
  -H "Authorization: Bearer $TANQORY_ACCESS_TOKEN" \
  -H "Content-Type: application/json" \
  --data '{"query":"query TanqoryExtTaxPreview($input: TanqoryExtTaxPreviewInput!) {\n  tanqoryExtTaxPreview(input: $input) {\n    collecting\n    taxExempt\n    taxesIncluded\n    totalTax\n  }\n}","variables":{"input":{"address":{"countryCode":"AC"},"lines":[]}}}'

Built from commit c0b3fb3fdef7 · API version 2026-10