TanqoryDocs

tanqoryExtFulfillmentBatchActionScan

  • Mutation
  • Orders and payments

Runs the action a scanned Barcode action sheet code stands for, on this batch, and logs the scan on the batch timeline (SCANNED). NEXT_STEP / PREVIOUS_STEP move every order one step (as tanqoryExtFulfillmentBatchMove, each from its own step); PRIMARY_ACTION / SECONDARY_ACTION run the first / second action of the current step (Create documents here, with its event; Scan to verify is opened by the dashboard, which gets the step); CLOSE_BATCH closes the batch, REOPEN_BATCH reopens a closed one. NOT_FOUND (batch), INVALID (not a sheet code, a code of another batch, nothing to move, no such action on the step, reopening an open batch), CLOSED (any action but REOPEN_BATCH on a closed batch), and whatever Create documents refuses.

Arguments

ArgumentTypeRequiredDefault
codeString!Required
idID!Required

Returns

TanqoryExtFulfillmentBatchActionScanPayload

FieldTypeDescription
actionTanqoryExtFulfillmentBatchSheetAction

The action the code stands for.

batchTanqoryExtFulfillmentBatch
countInt

Orders the action moved or acted on.

eventTanqoryExtFulfillmentBatchEvent

CREATE_DOCUMENTS: the DOCUMENTS_CREATED event with the PDF.

stepTanqoryExtFulfillmentBatchStep

PRIMARY_ACTION / SECONDARY_ACTION: the step the action ran on.

stepActionTanqoryExtFulfillmentWorkflowActionType

PRIMARY_ACTION / SECONDARY_ACTION: which step action it was. SCAN_TO_VERIFY: the dashboard opens the scan view; CREATE_DOCUMENTS: the PDF is in event.

userErrors[TanqoryExtFulfillmentBatchStepUserError!]!

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 TanqoryExtFulfillmentBatchActionScan($code: String!, $id: ID!) {\n  tanqoryExtFulfillmentBatchActionScan(code: $code, id: $id) {\n    action\n    batch { id }\n    count\n    event { id }\n    step { id }\n    stepAction\n    userErrors {\n      code\n      field\n      message\n    }\n  }\n}","variables":{"code":"","id":"gid://tanqory/Type/id"}}'

Built from commit 0cac88ece6de · API version 2026-10