TanqoryDocs

tanqoryExtFulfillmentBatchScan

  • Mutation
  • Orders and payments

Records one scan of a step's Scan to verify action for a fulfillment order at that step: the code (a barcode or SKU) is checked against the order's items; a match counts one unit of the first line that still needs one. Or, with lineItemId instead of a code, counts quantity units of that line by hand (default 1, up to what it still needs: an item with no barcode or SKU, the scan view's + and check buttons); a negative quantity takes that many counted units back (its -). When every unit is counted the order is verified and the step's activity says so. NOT_FOUND (also a line item not in the order), BLANK (neither code nor lineItemId), INVALID (the step has no Scan to verify, the order is not at that step, both code and lineItemId, a quantity without lineItemId, or a quantity of 0 or more than the line has), CLOSED.

Arguments

ArgumentTypeRequiredDefault
codeStringOptional
fulfillmentOrderIdID!Required
idID!Required
lineItemIdIDOptional
quantityIntOptional
stepIdID!Required

Returns

TanqoryExtFulfillmentBatchScanPayload

FieldTypeDescription
matchedBoolean

The scanned code matched a line of the order that still had units to scan.

userErrors[TanqoryExtFulfillmentBatchStepUserError!]!
verificationTanqoryExtFulfillmentBatchVerification

The order's progress at the step after this scan.

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":"mutation TanqoryExtFulfillmentBatchScan($fulfillmentOrderId: ID!, $id: ID!, $stepId: ID!) {\n  tanqoryExtFulfillmentBatchScan(fulfillmentOrderId: $fulfillmentOrderId, id: $id, stepId: $stepId) {\n    matched\n    userErrors {\n      code\n      field\n      message\n    }\n  }\n}","variables":{"fulfillmentOrderId":"gid://tanqory/Type/id","id":"gid://tanqory/Type/id","stepId":"gid://tanqory/Type/id"}}'

Built from commit c0b3fb3fdef7 · API version 2026-10