--- title: inventoryShipmentCreateInTransit - GraphQL Admin description: Adds an in-transit shipment to an inventory transfer. api_version: 2025-10 api_name: admin type: mutation api_type: graphql source_url: html: https://shopify.dev/docs/api/admin-graphql/latest/mutations/inventoryshipmentcreateintransit md: https://shopify.dev/docs/api/admin-graphql/latest/mutations/inventoryshipmentcreateintransit.md --- # inventory​Shipment​Create​In​Transit mutation Requires `write_inventory_shipments` access scope. Also: The user must have permission to manage inventory. Adds an in-transit shipment to an inventory transfer. ## Arguments * input [Inventory​Shipment​Create​Input!](https://shopify.dev/docs/api/admin-graphql/latest/input-objects/InventoryShipmentCreateInput) required The input fields for the inventory shipment. *** ## Inventory​Shipment​Create​In​Transit​Payload returns * inventory​Shipment [Inventory​Shipment](https://shopify.dev/docs/api/admin-graphql/latest/objects/InventoryShipment) The created inventory shipment. * user​Errors [\[Inventory​Shipment​Create​In​Transit​User​Error!\]!](https://shopify.dev/docs/api/admin-graphql/latest/objects/InventoryShipmentCreateInTransitUserError) non-null The list of errors that occurred from executing the mutation. *** ## Examples * ### inventoryShipmentCreateInTransit reference ## Mutation Reference ```graphql mutation inventoryShipmentCreateInTransit($input: InventoryShipmentCreateInput!) { inventoryShipmentCreateInTransit(input: $input) { inventoryShipment { # InventoryShipment fields } userErrors { field message } } } ``` ## Input ```json { "input": { "movementId": "gid://shopify//10079785100", "trackingInput": { "trackingNumber": "", "company": "", "trackingUrl": "https://example.myshopify.com", "arrivesAt": "2019-09-07T15:50:00Z" }, "lineItems": [ { "inventoryItemId": "gid://shopify//10079785100", "quantity": 1 } ], "dateCreated": "2019-09-07T15:50:00Z" } } ``` ##### Variables ``` { "input": { "movementId": "gid://shopify//10079785100", "trackingInput": { "trackingNumber": "", "company": "", "trackingUrl": "https://example.myshopify.com", "arrivesAt": "2019-09-07T15:50:00Z" }, "lineItems": [ { "inventoryItemId": "gid://shopify//10079785100", "quantity": 1 } ], "dateCreated": "2019-09-07T15:50:00Z" } } ``` ##### Schema ``` input InventoryShipmentCreateInput { movementId: ID! trackingInput: InventoryShipmentTrackingInput lineItems: [InventoryShipmentLineItemInput!]! dateCreated: DateTime } input InventoryShipmentTrackingInput { trackingNumber: String company: String trackingUrl: URL arrivesAt: DateTime } input InventoryShipmentLineItemInput { inventoryItemId: ID! quantity: Int! } ```