Skip to main content

SetStockAtBinLocationInput

Input for setStockAtBinLocation. Sets the absolute stock quantity at a (productId, binLocationId[, batchId]) tuple. The mutation computes the delta against the current row and writes one stock movement.

input SetStockAtBinLocationInput {
productId: ID!
binLocationId: ID!
quantity: Int!
batchId: ID
comment: String
}

Fields​

SetStockAtBinLocationInput.productId ● ID! non-null scalar​

ID of the product.

SetStockAtBinLocationInput.binLocationId ● ID! non-null scalar​

ID of the bin location.

SetStockAtBinLocationInput.quantity ● Int! non-null scalar​

Target absolute stock quantity. Must be >= 0.

SetStockAtBinLocationInput.batchId ● ID scalar​

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

SetStockAtBinLocationInput.comment ● String scalar​

Free-text comment stored on the booked stock movement, e.g. which tool booked it and why. Shown in the stock history of the product in the Administration.

Member Of​

setStockAtBinLocation mutation