setStockAtWarehouse
Sets the stock of a product (or of one of its batches) on the bin locations and the unknown location of a warehouse to an absolute quantity. Increases are booked onto the default bin location of the product in the warehouse, or onto the unknown location when it has none. Decreases are booked from the bin locations in ascending order of their codes, then from the unknown location. Each change is booked as stock movements against the stock-correction special location.
Required scopes
The token needs the stocks:write access scope.
setStockAtWarehouse(
input: SetStockAtWarehouseInput!
): WarehouseStock!
Arguments
setStockAtWarehouse.input ● SetStockAtWarehouseInput! non-null input
Type
WarehouseStock object
Per-warehouse aggregate stock line for a product. One line per (product, warehouse) tuple, maintained by Pickware as a denormalised sum of the matching per-bin Stock lines. Use this when you want "how much of this product lives in warehouse X" without scanning per-bin lines.