Skip to main content

SetStockAtWarehouseInput

Input for setStockAtWarehouse. Sets the absolute per-warehouse total stock for a (productId, warehouseId[, batchId]) tuple. The mutation computes the delta against the current aggregate and writes one stock movement.

input SetStockAtWarehouseInput {
productId: ID!
warehouseId: ID!
quantity: Int!
batchId: ID
}

Fields

SetStockAtWarehouseInput.productId ● ID! non-null scalar

ID of the product.

SetStockAtWarehouseInput.warehouseId ● ID! non-null scalar

ID of the warehouse.

SetStockAtWarehouseInput.quantity ● Int! non-null scalar

Target absolute stock quantity. Must be >= 0.

SetStockAtWarehouseInput.batchId ● ID scalar

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

Member Of

setStockAtWarehouse mutation