Skip to main content

Preview Release Impact

POST 

/api/v2/inventory/movements/preview-release-impact

Dry-run preview: given a receipt payload, compute which pending backorder allocations would be released once the movement is committed.

Named route: v2.inventory.movements.preview-release-impact

When to call: UI should invoke this BEFORE committing a direction=receive movement so the operator can confirm how incoming stock will be consumed by existing backorders.

Request body: Same shape as the commit endpoint (see Commit Movement). Only direction, warehouse_id, movement_date, and lines[*].product_id + lines[*].quantity are required for preview.

Response shape:

{
"data": {
"total_units_receiving": 50,
"total_allocations_released": 2,
"releases": [ { fulfillment_id, product_id, quantity_released, ... } ],
"held_back": [ ... ]
}
}

Request

Responses

Successful response