---
title: inventoryTransferSetItems - GraphQL Admin
description: |-
This mutation allows for the setting of line items on a Transfer. Will replace the items already set, if any.
> 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/inventorytransfersetitems
md: https://shopify.dev/docs/api/admin-graphql/2025-07/mutations/inventorytransfersetitems.md
---
# inventoryTransferSetItems
mutation
Requires `write_inventory_transfers` access scope. Also: The user must have permission to manage inventory.
This mutation allows for the setting of line items on a Transfer. Will replace the items already set, if any.
***
**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
* input
[InventoryTransferSetItemsInput!](https://shopify.dev/docs/api/admin-graphql/2025-07/input-objects/InventoryTransferSetItemsInput)
required
The input fields for the InventoryTransferSetItems mutation.
***
## InventoryTransferSetItemsPayload returns
* inventoryTransfer
[InventoryTransfer](https://shopify.dev/docs/api/admin-graphql/2025-07/objects/InventoryTransfer)
The Transfer with its line items updated.
* updatedLineItems
[\[InventoryTransferLineItemUpdate!\]](https://shopify.dev/docs/api/admin-graphql/2025-07/objects/InventoryTransferLineItemUpdate)
The updated line items.
* userErrors
[\[InventoryTransferSetItemsUserError!\]!](https://shopify.dev/docs/api/admin-graphql/2025-07/objects/InventoryTransferSetItemsUserError)
non-null
The list of errors that occurred from executing the mutation.
***
## Examples
* ### inventoryTransferSetItems reference