setStockAtLocation
Sets the physical stock of a product (or of one of its batches) at a location to an absolute quantity. The physical stock includes the stock in boxes and goods receipts of the location, which is never booked out: a quantity below it is rejected. Increases are booked into the default warehouse of the location, onto the default bin location of the product or onto the unknown location when it has none. Decreases are booked from the default warehouse of the location first, then from the other warehouses of the location 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.
Required scopes
The token needs the stocks:write access scope.
setStockAtLocation(
input: SetStockAtLocationInput!
): Boolean!
Arguments
setStockAtLocation.input ● SetStockAtLocationInput! non-null input
Type
Boolean scalar
The Boolean scalar type represents true or false.