Anchor to inventoryShipmentUpdateItemQuantitiesinventory
inventoryShipmentUpdateItemQuantities
mutation
Requires access scope and
access scope. Also: The user must have permission to manage inventory.
Updates items on a draft inventory shipment.
Anchor to Arguments
Arguments
- •ID!required
The ID of the inventory shipment to update item quantities.
- Anchor to itemsitems•
The list of line items to be updated to the shipment.
Was this section helpful?
Anchor to InventoryShipmentUpdateItemQuantitiesPayload returnsInventoryShipmentUpdateItemQuantitiesPayload returns
- Anchor to shipmentshipment•
The inventory shipment with updated item quantities.
- Anchor to updatedLineItemsupdated•
Line Items The updated item quantities.
- Anchor to userErrorsuser•
Errors The list of errors that occurred from executing the mutation.
Was this section helpful?
Mutation Reference
mutation inventoryShipmentUpdateItemQuantities($id: ID!, $items: [InventoryShipmentUpdateItemQuantitiesInput!]) {
inventoryShipmentUpdateItemQuantities(id: $id, items: $items) {
shipment {
# InventoryShipment fields
}
updatedLineItems {
# InventoryShipmentLineItem fields
}
userErrors {
field
message
}
}
}
Input
{
"id": "gid://shopify/<objectName>/10079785100",
"items": [
{
"quantity": 1,
"shipmentLineItemId": "gid://shopify/<objectName>/10079785100"
}
]
}
{
"id": "gid://shopify/<objectName>/10079785100",
"items": [
{
"quantity": 1,
"shipmentLineItemId": "gid://shopify/<objectName>/10079785100"
}
]
}
input InventoryShipmentUpdateItemQuantitiesInput {
quantity: Int!
shipmentLineItemId: ID!
}