---
title: inventoryShipmentAddItems - GraphQL Admin
description: |-
Adds items to an inventory shipment.
> Caution:
> As of 2026-01, this mutation supports an optional idempotency key using the `@idempotent` directive.
> As of 2026-04, the idempotency key is required and must be provided using the `@idempotent` directive.
> For more information, see the [idempotency documentation](https://shopify.dev/docs/api/usage/idempotent-requests).
api_version: 2025-07
api_name: admin
type: mutation
api_type: graphql
source_url:
html: https://shopify.dev/docs/api/admin-graphql/2025-07/mutations/inventoryshipmentadditems
md: https://shopify.dev/docs/api/admin-graphql/2025-07/mutations/inventoryshipmentadditems.md
---
# inventoryShipmentAddItems
mutation
Requires `write_inventory_shipments` access scope. Also: The user must have permission to manage inventory.
Adds items to an inventory shipment.
***
**Caution:** As of 2026-01, this mutation supports an optional idempotency key using the \@idempotent\ directive. As of 2026-04, the idempotency key is required and must be provided using the \@idempotent\ directive. For more information, see the \idempotency documentation\.
***
## Arguments
* id
[ID!](https://shopify.dev/docs/api/admin-graphql/2025-07/scalars/ID)
required
The ID of the inventory shipment to modify.
* lineItems
[\[InventoryShipmentLineItemInput!\]!](https://shopify.dev/docs/api/admin-graphql/2025-07/input-objects/InventoryShipmentLineItemInput)
required
The list of line items to add to the inventory shipment.
***
## InventoryShipmentAddItemsPayload returns
* addedItems
[\[InventoryShipmentLineItem!\]](https://shopify.dev/docs/api/admin-graphql/2025-07/objects/InventoryShipmentLineItem)
The list of added line items.
* inventoryShipment
[InventoryShipment](https://shopify.dev/docs/api/admin-graphql/2025-07/objects/InventoryShipment)
The inventory shipment with the added items.
* userErrors
[\[InventoryShipmentAddItemsUserError!\]!](https://shopify.dev/docs/api/admin-graphql/2025-07/objects/InventoryShipmentAddItemsUserError)
non-null
The list of errors that occurred from executing the mutation.
***
## Examples
* ### inventoryShipmentAddItems reference