Skip to main content

TransferStockInput

Input for transferStock. Moves quantity units of productId from sourceBinLocationId to destinationBinLocationId in a single stock movement (no external counter-location involved).

input TransferStockInput {
productId: ID!
sourceBinLocationId: ID!
destinationBinLocationId: ID!
quantity: Int!
batchId: ID
}

Fields

TransferStockInput.productId ● ID! non-null scalar

ID of the product whose stock is being moved.

TransferStockInput.sourceBinLocationId ● ID! non-null scalar

ID of the bin location stock is moved out of.

TransferStockInput.destinationBinLocationId ● ID! non-null scalar

ID of the bin location stock is moved into. Must differ from sourceBinLocationId.

TransferStockInput.quantity ● Int! non-null scalar

Number of units to move. Must be positive.

TransferStockInput.batchId ● ID scalar

ID of the batch when batch tracking is enabled for the product.

Member Of

transferStock mutation