Skip to main content

SetStockAtLocationInput

Input for setStockAtLocation. Sets the physical stock of a (productId, locationId[, batchId]) tuple to an absolute quantity.

input SetStockAtLocationInput {
productId: ID!
locationId: ID!
quantity: Int!
batchId: ID
comment: String
}

Fields​

SetStockAtLocationInput.productId ● ID! non-null scalar​

ID of the product.

SetStockAtLocationInput.locationId ● ID! non-null scalar​

ID of the location.

SetStockAtLocationInput.quantity ● Int! non-null scalar​

Target physical stock quantity, including the stock in boxes and goods receipts. Must be >= 0.

SetStockAtLocationInput.batchId ● ID scalar​

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

SetStockAtLocationInput.comment ● String scalar​

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

Member Of​

setStockAtLocation mutation