Appearance
POST
/warehouse-management/stock-balance/stock-balances/_reserveRequired scope:
viskan:stockreservation:createRuns the order reservation routine for the given stock keeping units or whole products, recomputing reserved/not-reserved balances against open order demand.
Each item identifies either a stockKeepingUnitId or a productId (which targets all of the product's stock keeping units). An optional warehouseId may be given per item to limit the run to a single warehouse. Package (master) articles are not supported.
Note: This run does not re-divide order rows across warehouses. On installs with several active outdelivery warehouses per country, restocking one warehouse will not move order rows already assigned to another warehouse. It also does not trigger ship-from-store processing.
Parameters
Query parameters
skipWhenNothingToReserve booleanIf
true, the run is skipped for products that have no reserved, incoming-reserved or not-reserved balances. Useful for automated callers that run reservation frequently. Defaults to false.Default value:
falseRequest body
JSON
{
"productId": 42,
"stockKeepingUnitId": 619,
"warehouseId": 1
}
Response
The reservation run completed. The body indicates whether any reservation work was performed.
JSON
{
"reserved": true
}