Skip to content
Pyck docs

createInventoryCollectionMovement

Since pyck v0.27.0

Served by: inventory

Name Type Default Description
input CreateCollectionMovementInput!

CreateCollectionMovementOutput

Creates a collection of item movements in a single operation. The collection can mix item movements (using itemID) and repository movements (using repositoryID). Each entry specifies a quantity, source, and destination repository.

mutation CreateInventoryCollectionMovement($input: CreateCollectionMovementInput!) {
createInventoryCollectionMovement(input: $input) {
eventCount
id
movements {
id
movementType
}
transactionID
}
}

Variables

{
"input": {
"collection": [
{
"fromID": "<source repository ID>",
"handler": "operator-01",
"itemID": "<inventory item ID>",
"quantity": 10,
"toID": "<destination repository ID>"
},
{
"fromID": "<source repository ID (optional, inferred from repositoryID if omitted)>",
"handler": "operator-01",
"repositoryID": "<repository ID to move>",
"toID": "<destination repository ID>"
}
],
"handler": "operator-01"
}
}