Propose or create a multi-vehicle split
POST/api/load-planning/split
action: propose spreads the waybills over the given vehicle types, one group per vehicle, and creates nothing. action: accept creates one delivery per group and computes each delivery's load plan. Requires the delivery.planning plan feature; a signed-in user also needs the deliveries permission.
Request
Responses
- 200
- 400
- 401
- 403
- 409
- 422
- 500
- 503
LoadPlanSplitProposal for propose; LoadPlanSplitAccepted for accept.
Body is not JSON (invalid_json) or fails validation (validation_failed).
No valid signature or session.
The plan lacks delivery.planning, or the signed-in user lacks the deliveries permission.
waybills_assigned (accept): a waybill is already in a delivery; propose again.
no_vehicle_type: none of the vehicle types exist (propose), or a group's does not (accept). no_cargo (propose): no package has usable dimensions; problems lists them. invalid_groups (accept): a waybill appears in more than one group.
create_failed (accept): a delivery could not be created; the deliveries this request created were removed. Or internal_error.
load_planning_unavailable: the load-planning engine is temporarily unavailable. Retry after the Retry-After header (30 seconds).
Response Headers
Seconds to wait before retrying.