Skip to main content

adjustStockAtBinLocation

Applies a relative delta (positive or negative) to the stock at a (product, bin location[, batch]) tuple. Writes one stock movement against the stock-correction special location. Returns the stock row of the bin location, or null when the bin location holds no stock afterwards and is not the default bin location of the product.

Required scopes​

The token needs the stocks:write access scope.

adjustStockAtBinLocation(
input: AdjustStockAtBinLocationInput!
): Stock

Arguments​

adjustStockAtBinLocation.input ● AdjustStockAtBinLocationInput! non-null input​

Type​

Stock object​

A per-location stock line — the most granular stock entity. One line per (product, location) tuple, where the location is either a physical bin / warehouse or a special slot (order, return order, goods receipt, …). Use locationTypeTechnicalName / specialStockLocationTechnicalName to disambiguate.