tanqoryExtFulfillmentBatchUpdate
- Mutation
- Orders and payments
Changes the stage, or closes the batch (close true, on the batch timeline). stage moves every order still in a step to the step at that place (PICK, PRINT, PACK = the first, second, third step; DONE = Done). Each step's assignee is set with tanqoryExtFulfillmentBatchAssign: assigneeId and unassign are refused (INVALID). NOT_FOUND, CLOSED (already closed), INVALID (the batch has no step at that place, or assigneeId / unassign given).
Arguments
| Argument | Type | Required | Default | Description |
|---|---|---|---|---|
assigneeId | ID | Optional | Deprecated | |
close | Boolean | Optional | ||
id | ID! | Required | ||
stage | TanqoryExtFulfillmentBatchStage | Optional | ||
unassign | Boolean | Optional | Deprecated |
Returns
TanqoryExtFulfillmentBatchPayload
| Field | Type | Description |
|---|---|---|
addedCount | Int | Fulfillment orders added by this call. |
batch | TanqoryExtFulfillmentBatch | |
userErrors | [TanqoryExtFulfillmentBatchUserError!]! |
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":"mutation TanqoryExtFulfillmentBatchUpdate($id: ID!) {\n tanqoryExtFulfillmentBatchUpdate(id: $id) {\n addedCount\n batch { id }\n userErrors {\n code\n field\n message\n }\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 = `mutation TanqoryExtFulfillmentBatchUpdate(\$id: ID!) {
tanqoryExtFulfillmentBatchUpdate(id: \$id) {
addedCount
batch { id }
userErrors {
code
field
message
}
}
}`;
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 = """mutation TanqoryExtFulfillmentBatchUpdate($id: ID!) {
tanqoryExtFulfillmentBatchUpdate(id: $id) {
addedCount
batch { id }
userErrors {
code
field
message
}
}
}"""
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))