Skip to main content

AdjustStockAtWarehouseInput

Input for adjustStockAtWarehouse. Applies a relative delta (positive or negative) to the per-warehouse total at a (productId, warehouseId[, batchId]) tuple.

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

Fields​

AdjustStockAtWarehouseInput.productId ● ID! non-null scalar​

ID of the product whose stock is being adjusted.

AdjustStockAtWarehouseInput.warehouseId ● ID! non-null scalar​

ID of the warehouse whose stock is being adjusted.

AdjustStockAtWarehouseInput.delta ● Int! non-null scalar​

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

AdjustStockAtWarehouseInput.batchId ● ID scalar​

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

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

adjustStockAtWarehouse mutation