Skip to main content

AdjustTotalStockInput

Input for adjustTotalStock. Changes the physical stock of a product (or of one of its batches) across all locations by a relative delta (positive or negative).

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

Fields​

AdjustTotalStockInput.productId ● ID! non-null scalar​

ID of the product.

AdjustTotalStockInput.delta ● Int! non-null scalar​

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

AdjustTotalStockInput.batchId ● ID scalar​

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

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

adjustTotalStock mutation