TanqoryDocs

tanqoryExtCustomsInformationCounts

  • Query
  • Inventory and fulfillment

The customs information of the store's variants, counted over the whole store in the database: how many variants there are, and how many carry a country/region of origin and an HS code. Each variant has one inventory item, so the counts are of inventory items. Exact (no limit).

Arguments

None.

Returns

TanqoryExtCustomsInformationCounts! How many of the store's variants carry the customs information that customs forms and duty estimates need.

FieldTypeDescription
variantsCount!

The store's variants (one inventory item each).

withCountryCodeOfOriginCount!

Variants whose inventory item has a country/region of origin (InventoryItem.countryCodeOfOrigin).

withHarmonizedSystemCodeCount!

Variants whose inventory item has an HS code (InventoryItem.harmonizedSystemCode, an empty code counts as none).

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 TanqoryExtCustomsInformationCounts {\n  tanqoryExtCustomsInformationCounts {\n    __typename\n  }\n}","variables":{}}'

Built from commit c0b3fb3fdef7 · API version 2026-10