TanqoryDocs

inventoryItem

  • Query
  • Inventory and fulfillment

Requires read_inventory access scope. About access scopes

Returns one inventory item by ID, or null when it does not exist.

Arguments

ArgumentTypeRequiredDefault
idID!Required

Returns

InventoryItem The stock-keeping side of a variant: SKU, unit cost, whether it is tracked, customs details and its levels at each location.

FieldTypeDescription
countryCodeOfOriginCountryCode
countryHarmonizedSystemCodesCountryHarmonizedSystemCodeConnection!
createdAtDateTime!
duplicateSkuCountInt!
harmonizedSystemCodeString
idID!
inventoryHistoryUrlURL
inventoryLevelInventoryLevel
  • includeInactive: Boolean = false
  • locationId: ID!
inventoryLevelsInventoryLevelConnection!
legacyResourceIdUnsignedInt64!
locationsCountCount
measurementInventoryItemMeasurement!
provinceCodeOfOriginString
requiresShippingBoolean!
skuString
tanqoryExtPackedSizeTanqoryExtPackedSize

The packed product's size ("Packed product size"); null when not set.

tanqoryExtShippingPackageTanqoryExtShippingPackage

The package used when the item ships alone ("Package when shipped alone"), as set with InventoryItemMeasurementInput.shippingPackageId. Null: the store's default package.

trackedBoolean!
trackedEditableEditableProperty!
unitCostMoneyV2
updatedAtDateTime!
variantProductVariant!

Deprecated

variantsProductVariantConnection

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 InventoryItem($id: ID!) {\n  inventoryItem(id: $id) {\n    countryCodeOfOrigin\n    createdAt\n    duplicateSkuCount\n    harmonizedSystemCode\n    id\n    inventoryHistoryUrl\n    legacyResourceId\n    measurement { id }\n    provinceCodeOfOrigin\n    requiresShipping\n  }\n}","variables":{"id":"gid://tanqory/Type/id"}}'

Built from commit c0b3fb3fdef7 · API version 2026-10