TanqoryDocs

tanqoryExtStockCount

  • Query
  • Inventory and fulfillment

A stock count of the shop.

Arguments

ArgumentTypeRequiredDefault
idID!Required

Returns

TanqoryExtStockCount

FieldTypeDescription
adjustmentGroupInventoryAdjustmentGroup

The inventory event the count caused; set once it is completed.

completedAtDateTime
countedItemsCountInt!

Items with a counted quantity.

createdAtDateTime!
createdByStaffMember

The staff member who created the count; null when it was created by an app.

eventsEventConnection!

The count's timeline: one event per action, and the staff comments (CommentEvent).

idID!

gid://tanqory/TanqoryExtStockCount/<uuid>

lineItemsTanqoryExtStockCountLineItemConnection!
lineItemsCountCount!
locationLocation

The location itself; null once it no longer exists.

locationSnapshotTanqoryExtStockCountLocationSnapshot!

The location as it was when the count was created (or its location last changed).

nameString!

"#SC" and the count's number, e.g. "#SC1001".

noteString
plannedDateDate

The day the count is planned for.

referenceNameString

The merchant's own name for the count.

startedAtDateTime
statusTanqoryExtStockCountStatus!
tags[String!]!
totalDiscrepancyInt!

Sum of counted minus expected over the counted items.

updatedAtDateTime!

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 TanqoryExtStockCount($id: ID!) {\n  tanqoryExtStockCount(id: $id) {\n    adjustmentGroup { id }\n    completedAt\n    countedItemsCount\n    createdAt\n    createdBy { id }\n    id\n    location { id }\n    name\n    note\n    plannedDate\n  }\n}","variables":{"id":"gid://tanqory/Type/id"}}'

Built from commit c0b3fb3fdef7 · API version 2026-10