tanqoryExtShippingProviders
- Query
- Inventory and fulfillment
The shipping providers a "Carrier or app calculated" option can get live rates from, in the order the sheet lists them: each with whether checkout can get rates from it now, and its carrier service once turned on for this store.
Arguments
None.
Returns
[TanqoryExtShippingProvider!]! A shipping provider: a rates aggregator (many couriers from one account) or a carrier.
| Field | Type | Description |
|---|---|---|
account | TanqoryExtShippingCarrierAccount | The store's own account of this provider, when connected. |
available | Boolean! | Whether checkout can get rates from it now. |
carrierService | DeliveryCarrierService | Its carrier service on this store (on Tanqory's platform account), once turned on. |
credentialFields | [TanqoryExtShippingCarrierField!]! | The fields the store's own account of this provider is connected with. |
kind | TanqoryExtShippingProviderKind! | |
name | String! | |
platformAccount | Boolean! | Whether Tanqory's platform account can be used (no account of the store's own needed). |
provider | String! |
|
services | [String!]! | The provider's service names from the origins (locations; the store's default location when none is given) to the destinations, as DeliveryCarrierService.availableServicesForCountries answers them: the option sheet's service picker before the provider is turned on. Empty when it isn't available.
|
tested | Boolean! | Whether it has been tried against the provider's test environment. False: built to the provider's documentation only, shown as "Not yet tested". |
unavailableReason | String | Why it isn't available: NOT_YET_AVAILABLE (Tanqory's account for it isn't connected on this environment yet) or CONNECT_ACCOUNT (it needs the store's own carrier account). Null when available. |
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 TanqoryExtShippingProviders {\n tanqoryExtShippingProviders {\n account { id }\n available\n carrierService { id }\n kind\n name\n platformAccount\n provider\n tested\n unavailableReason\n }\n}","variables":{}}'// Node.js 18 or later (fetch is built in). Save as request.mjs and run: node request.mjs
const query = `query TanqoryExtShippingProviders {
tanqoryExtShippingProviders {
account { id }
available
carrierService { id }
kind
name
platformAccount
provider
tested
unavailableReason
}
}`;
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 TanqoryExtShippingProviders {
tanqoryExtShippingProviders {
account { id }
available
carrierService { id }
kind
name
platformAccount
provider
tested
unavailableReason
}
}"""
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))