tanqoryExtTaxSettings
- Query
- Markets, tax and languages
Requires read_taxes access scope. About access scopes
The shop's tax settings: the store-wide toggles, every tax region (the home country, the countries of the shipping zones and every country with a registration) and the product / shipping overrides.
Arguments
None.
Returns
| Field | Type | Description |
|---|---|---|
defaultRatesSource | String! | Where the default rates come from, and when they were exported. |
duties | TanqoryExtTaxDuties! | Duties and import taxes: whether they are collected, where, and the related settings. |
homeCountryCode | CountryCode! | The store's country; its tax rate is the home rate deducted from tax-inclusive prices. |
overrides | [TanqoryExtTaxOverride!]! | |
regions | [TanqoryExtTaxRegion!]! | |
taxShipping | Boolean! | Whether shipping is taxed where tax is not calculated automatically (Shop.taxShipping). |
taxesIncluded | Boolean! | Whether prices include tax (Shop.taxesIncluded). |
vatOnDigitalGoods | Boolean! | Whether VAT is charged at checkout for digital products sold to European customers. Default off. |
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 -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 TanqoryExtTaxSettings {\n tanqoryExtTaxSettings {\n defaultRatesSource\n homeCountryCode\n overrides { id }\n taxShipping\n taxesIncluded\n vatOnDigitalGoods\n }\n}","variables":{}}'// Node.js 18 or later (fetch is built in). Save as request.mjs and run: node request.mjs
const query = `query TanqoryExtTaxSettings {
tanqoryExtTaxSettings {
defaultRatesSource
homeCountryCode
overrides { id }
taxShipping
taxesIncluded
vatOnDigitalGoods
}
}`;
const variables = {};
const res = await fetch(`https://api.tanqory.com/admin/2026-10/stores/${process.env.STORE_ID}/graphql`, {
method: 'POST',
headers: {
'Authorization': 'Bearer ' + process.env.TANQORY_ACCESS_TOKEN,
'Content-Type': 'application/json',
},
body: JSON.stringify({ query, variables }),
});
console.log(res.status, JSON.stringify(await res.json(), null, 2));# Python 3, standard library only. Save as request.py and run: python3 request.py
import json, os, urllib.request
query = """query TanqoryExtTaxSettings {
tanqoryExtTaxSettings {
defaultRatesSource
homeCountryCode
overrides { id }
taxShipping
taxesIncluded
vatOnDigitalGoods
}
}"""
variables = json.loads("""{}""")
req = urllib.request.Request(
"https://api.tanqory.com/admin/2026-10/stores/" + os.environ["STORE_ID"] + "/graphql",
data=json.dumps({"query": query, "variables": variables}).encode(),
headers={
"Authorization": "Bearer " + os.environ["TANQORY_ACCESS_TOKEN"],
"Content-Type": "application/json",
},
)
with urllib.request.urlopen(req) as res:
print(res.status, json.dumps(json.load(res), indent=2))