TanqoryDocs

locations

  • Query
  • Inventory and fulfillment

Requires read_inventory access scope. About access scopes

Lists the store's locations, a page at a time with first/after. Inactive locations are left out unless you pass includeInactive.

Arguments

ArgumentTypeRequiredDefault
afterStringOptional
beforeStringOptional
firstIntOptional
includeInactiveBooleanOptionalfalse
includeLegacyBooleanOptionalfalse
lastIntOptional
queryStringOptional
reverseBooleanOptionalfalse
sortKeyLocationSortKeysOptionalNAME

Returns

LocationConnection! A page of Location objects, with pageInfo for the next page.

FieldTypeDescription
edges[LocationEdge!]!
nodes[Location!]!
pageInfoPageInfo!

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 Locations($first: Int) {\n  locations(first: $first) {\n    nodes {\n      activatable\n      addressVerified\n      createdAt\n      deactivatable\n      deactivatedAt\n      deletable\n      fulfillsOnlineOrders\n      hasActiveInventory\n      hasUnfulfilledOrders\n      id\n    }\n    pageInfo { hasNextPage endCursor }\n  }\n}","variables":{"first":5}}'

Built from commit c0b3fb3fdef7 · API version 2026-10