--- 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 --- # inventory​Transfer​Set​Items 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 [Inventory​Transfer​Set​Items​Input!](https://shopify.dev/docs/api/admin-graphql/2025-07/input-objects/InventoryTransferSetItemsInput) required The input fields for the InventoryTransferSetItems mutation. *** ## Inventory​Transfer​Set​Items​Payload returns * inventory​Transfer [Inventory​Transfer](https://shopify.dev/docs/api/admin-graphql/2025-07/objects/InventoryTransfer) The Transfer with its line items updated. * updated​Line​Items [\[Inventory​Transfer​Line​Item​Update!\]](https://shopify.dev/docs/api/admin-graphql/2025-07/objects/InventoryTransferLineItemUpdate) The updated line items. * user​Errors [\[Inventory​Transfer​Set​Items​User​Error!\]!](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