Check whether waybills fit one vehicle
POST/api/load-planning/fit-check
Packs the waybills' packages (plus a delivery's current cargo, with delivery_id) into one vehicle of the given type and reports the result. Nothing is saved. Stop order is ignored. Packages need dimensions (cm) to be planned. Requires the delivery.planning plan feature; a signed-in user also needs the deliveries permission.
Request
Responses
- 200
- 400
- 401
- 403
- 404
- 422
- 500
- 503
The fit result. status: no_cargo is a 200, not an error.
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.
not_found: delivery_id does not exist or is not visible to you.
no_vehicle_type: no vehicle type given, the delivery has none, or it does not exist.
System 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.