tanqoryExtFulfillmentBatch
- Query
- Orders and payments
Arguments
| Argument | Type | Required | Default |
|---|---|---|---|
id | ID! | Required |
Returns
| Field | Type | Description |
|---|---|---|
assigneeId | ID | Deprecated The assignee of the batch's current step: the earliest step that holds an order, else Done once every order is past the steps, else the first step. Each step has its own assignee: read steps.assignee and doneAssignee. |
assigneeName | String | Deprecated The name of the current step's assignee (as assigneeId). |
closedAt | DateTime | |
createdAt | DateTime! | |
doneActivity | [TanqoryExtFulfillmentBatchEvent!]! | The Done step's activity log, newest first. |
doneAssignee | StaffMember | Who works the Done step (each step has its own: TanqoryExtFulfillmentBatchStep.assignee); null = Unassigned. |
doneFulfillmentOrders | [FulfillmentOrder!]! | Fulfillment orders moved past the last step (Done). Only a move puts an order here: one fulfilled while at a step stays at that step. |
fulfillmentOrders | [FulfillmentOrder!]! | The batch's fulfillment orders, in the order they were added. |
id | ID! | |
name | String! | The creation date in the store's time zone (2026-11-06), with " (2)", " (3)" ... when that name is taken. |
ordersCount | Int! | Distinct orders in the batch. |
stage | TanqoryExtFulfillmentBatchStage! | Deprecated Where the batch is on the built-in flow: the earliest step that still holds an order (its position read as Pick, Print, Pack), DONE when none does. Each order now has its own step: read steps. |
steps | [TanqoryExtFulfillmentBatchStep!]! | The batch's steps in order: the store's workflow as it was when the batch was created. |
timeline | [TanqoryExtFulfillmentBatchEvent!]! | The batch timeline, newest first: created, renamed, closed, and staff comments. |
updatedAt | DateTime! |
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 -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 TanqoryExtFulfillmentBatch($id: ID!) {\n tanqoryExtFulfillmentBatch(id: $id) {\n assigneeId\n assigneeName\n closedAt\n createdAt\n doneActivity { id }\n doneAssignee { id }\n doneFulfillmentOrders { id }\n fulfillmentOrders { id }\n id\n name\n }\n}","variables":{"id":"gid://tanqory/Type/id"}}'// Node.js 18 or later (fetch is built in). Save as request.mjs and run: node request.mjs
const query = `query TanqoryExtFulfillmentBatch(\$id: ID!) {
tanqoryExtFulfillmentBatch(id: \$id) {
assigneeId
assigneeName
closedAt
createdAt
doneActivity { id }
doneAssignee { id }
doneFulfillmentOrders { id }
fulfillmentOrders { id }
id
name
}
}`;
const variables = {
"id": "gid://tanqory/Type/id"
};
const res = await fetch(`https://api.tanqory.com/admin/2026-10/stores/${process.env.STORE_ID}/graphql`, {
method: 'POST',
headers: {
'Authorization': 'Bearer ' + process.env.TANQORY_ACCESS_TOKEN,
'Content-Type': 'application/json',
},
body: JSON.stringify({ query, variables }),
});
console.log(res.status, JSON.stringify(await res.json(), null, 2));# Python 3, standard library only. Save as request.py and run: python3 request.py
import json, os, urllib.request
query = """query TanqoryExtFulfillmentBatch($id: ID!) {
tanqoryExtFulfillmentBatch(id: $id) {
assigneeId
assigneeName
closedAt
createdAt
doneActivity { id }
doneAssignee { id }
doneFulfillmentOrders { id }
fulfillmentOrders { id }
id
name
}
}"""
variables = json.loads("""{
"id": "gid://tanqory/Type/id"
}""")
req = urllib.request.Request(
"https://api.tanqory.com/admin/2026-10/stores/" + os.environ["STORE_ID"] + "/graphql",
data=json.dumps({"query": query, "variables": variables}).encode(),
headers={
"Authorization": "Bearer " + os.environ["TANQORY_ACCESS_TOKEN"],
"Content-Type": "application/json",
},
)
with urllib.request.urlopen(req) as res:
print(res.status, json.dumps(json.load(res), indent=2))