adjustTotalStock
Changes the physical stock of a product (or of one of its batches) across all locations by a relative delta (positive or negative). The stock in boxes and goods receipts is never booked out: a delta that exceeds the remaining stock is rejected. Increases are booked into the default warehouse of the default location, onto the default bin location of the product or onto the unknown location when it has none. Decreases are booked from the default location first, then from the other locations in the order of their creation; within a location from its default warehouse first, then from its other warehouses in the order of their creation; within a warehouse 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. Returns the product.
Required scopes
The token needs the stocks:write access scope.
adjustTotalStock(
input: AdjustTotalStockInput!
): Product!
Arguments
adjustTotalStock.input ● AdjustTotalStockInput! non-null input
Type
Product object
A purchasable article tracked in the catalog.