--- title: inventoryShipmentAddItems - GraphQL Admin description: Adds items to an inventory shipment. api_version: 2025-10 api_name: admin type: mutation api_type: graphql source_url: html: https://shopify.dev/docs/api/admin-graphql/latest/mutations/inventoryshipmentadditems md: https://shopify.dev/docs/api/admin-graphql/latest/mutations/inventoryshipmentadditems.md --- # inventory​Shipment​Add​Items mutation Requires `write_inventory_shipments` access scope. Also: The user must have permission to manage inventory. Adds items to an inventory shipment. ## Arguments * id [ID!](https://shopify.dev/docs/api/admin-graphql/latest/scalars/ID) required The ID of the inventory shipment to modify. * line​Items [\[Inventory​Shipment​Line​Item​Input!\]!](https://shopify.dev/docs/api/admin-graphql/latest/input-objects/InventoryShipmentLineItemInput) required The list of line items to add to the inventory shipment. *** ## Inventory​Shipment​Add​Items​Payload returns * added​Items [\[Inventory​Shipment​Line​Item!\]](https://shopify.dev/docs/api/admin-graphql/latest/objects/InventoryShipmentLineItem) The list of added line items. * inventory​Shipment [Inventory​Shipment](https://shopify.dev/docs/api/admin-graphql/latest/objects/InventoryShipment) The inventory shipment with the added items. * user​Errors [\[Inventory​Shipment​Add​Items​User​Error!\]!](https://shopify.dev/docs/api/admin-graphql/latest/objects/InventoryShipmentAddItemsUserError) non-null The list of errors that occurred from executing the mutation. *** ## Examples * ### inventoryShipmentAddItems reference ## Mutation Reference ```graphql mutation inventoryShipmentAddItems($id: ID!, $lineItems: [InventoryShipmentLineItemInput!]!) { inventoryShipmentAddItems(id: $id, lineItems: $lineItems) { addedItems { # InventoryShipmentLineItem fields } inventoryShipment { # InventoryShipment fields } userErrors { field message } } } ``` ## Input ```json { "id": "gid://shopify//10079785100", "lineItems": [ { "inventoryItemId": "gid://shopify//10079785100", "quantity": 1 } ] } ``` ##### Variables ``` { "id": "gid://shopify//10079785100", "lineItems": [ { "inventoryItemId": "gid://shopify//10079785100", "quantity": 1 } ] } ``` ##### Schema ``` input InventoryShipmentLineItemInput { inventoryItemId: ID! quantity: Int! } ```