TanqoryDocs

locations

  • Query
  • Storefront

Lists the store's active locations that offer local pickup, a page at a time with first/after. Sort by ID, NAME, CITY or DISTANCE; distance needs a near point.

Arguments

ArgumentTypeRequiredDefault
firstIntOptional
afterStringOptional
lastIntOptional
beforeStringOptional
reverseBooleanOptionalfalse
sortKeyLocationSortKeysOptionalID
nearGeoCoordinateInputOptional

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_STOREFRONT_TOKEN in your environment first (Make your first API call).

curl
curl -X POST "https://$STORE_HOST/api/v1/stores/$STORE_ID/2026-10/graphql" \
  -H "X-Tanqory-Storefront-Access-Token: $TANQORY_STOREFRONT_TOKEN" \
  -H "Content-Type: application/json" \
  --data '{"query":"query Locations($first: Int) {\n  locations(first: $first) {\n    nodes {\n      id\n      name\n    }\n    pageInfo { hasNextPage endCursor }\n  }\n}","variables":{"first":5}}'

Built from commit c0b3fb3fdef7 · API version 2026-10