Skip to main content

AdjustStockAtBinLocationInput

Input for adjustStockAtBinLocation. Applies a relative delta (positive or negative) to the current stock at a (productId, binLocationId[, batchId]) tuple.

input AdjustStockAtBinLocationInput {
productId: ID!
binLocationId: ID!
delta: Int!
batchId: ID
comment: String
}

Fields​

AdjustStockAtBinLocationInput.productId ● ID! non-null scalar​

ID of the product whose stock is being adjusted.

AdjustStockAtBinLocationInput.binLocationId ● ID! non-null scalar​

ID of the bin location whose stock is being adjusted.

AdjustStockAtBinLocationInput.delta ● Int! non-null scalar​

Signed quantity to apply. Positive values add stock, negative values remove stock. Zero is rejected (no-op).

AdjustStockAtBinLocationInput.batchId ● ID scalar​

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

AdjustStockAtBinLocationInput.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​

adjustStockAtBinLocation mutation