Split Fulfillment Order
POST/api/fulfillment-orders/:fulfillmentOrder/split
Manually carve an unsubmitted (proforma) FulfillmentOrder into a NEW open/unsubmitted FO sized to the supplied per-line quantities. The original FO keeps the remainder. This is pure FulfillmentOrderLine budget redistribution — neither FO is submitted as a result (split and submit are separate concerns). To dispatch part of an order, split it then submit/hold each piece.
Only valid while the FO is open + unsubmitted. Allocations are SOL-linked, so no allocation moves on a split.
Request body
lines(required, array, min 1): the quantities to carve into the new FO.lines[].sales_order_line_id(required, integer, exists) — a SOL present on this FO.lines[].quantity(required, integer, min 1) — must not exceed the FOL'sremaining_quantity, and must not carve the FO's entire remaining budget (that would leave nothing behind — submit/fulfill the whole FO instead).
Responses
201— the NEW carved FO (open/unsubmitted).422— a quantity exceeds the FOL remaining budget, or validation failed.409— the FO is not open+unsubmitted, or the request would carve the entire FO (nothing left to split).
Request
Responses
- 201
- 409
- 422
Created
Response Headers
Content-Type
Conflict
Response Headers
Content-Type
Unprocessable Entity
Response Headers
Content-Type