TanqoryDocs

tanqoryExtInventoryShipmentSetItems

  • Mutation
  • Inventory and fulfillment

Sets every item of a shipment ("Edit shipment"). lineItems is the whole new list: an item left out, or given quantity 0, leaves the shipment and its units go back to the transfer's ready to ship units; a new item comes from them. A quantity can't be less than what was already received, nor more than the shipment's quantity plus the units ready to ship. Shipped units move at once (the origin's reserved and on hand, the destination's incoming). A shipment left with no item is deleted (deletedShipmentId); a transfer with nothing shipped any more is ready to ship again.

Arguments

ArgumentTypeRequiredDefault
idID!Required
lineItems[InventoryShipmentLineItemInput!]!Required

Returns

TanqoryExtInventoryShipmentSetItemsPayload

FieldTypeDescription
deletedShipmentIdID

The shipment's id when it lost its last item and was deleted.

inventoryShipmentInventoryShipment

The shipment after the change; null when it was deleted.

inventoryTransferInventoryTransfer
userErrors[TanqoryExtInventoryShipmentUserError!]!

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 TanqoryExtInventoryShipmentSetItems($id: ID!, $lineItems: [InventoryShipmentLineItemInput!]!) {\n  tanqoryExtInventoryShipmentSetItems(id: $id, lineItems: $lineItems) {\n    deletedShipmentId\n    inventoryShipment { id }\n    inventoryTransfer { id }\n    userErrors {\n      code\n      field\n      message\n    }\n  }\n}","variables":{"id":"gid://tanqory/Type/id","lineItems":[]}}'

Built from commit c0b3fb3fdef7 · API version 2026-10