Guide: Heavy Packages and Capacity-Aware Dispatch
This guide explains how Yonne handles heavier shipments and why rider assignment may fail even when riders are online.The dispatch model
Yonne uses capacity-qualified dispatch. That means the system does not simply pick the nearest rider first. Instead, dispatch works conceptually like this:- find online riders
- filter by courier affiliation
- filter by vehicle capacity
- enforce vehicle-class rules
- prefer the smallest valid vehicle class
- then sort by distance
Required weight
Dispatch uses a computedrequired_weight_kg.
This comes from:
weight_estimate- optionally
total_weight_kg
Weight bucket interpretation
The routing layer treats weight buckets conservatively:0-5kg->55-10kg->1010-20kg->2020-50kg->5050kg+-> above50for routing purposes
The bike rule
BIKE riders are excluded when the shipment is above 50 kg required weight.
This is a hard routing rule.
Even if a bike rider has a custom capacity override, the system does not assign bikes to shipments above that threshold.
Suggested vehicle class in quotes
Quote responses may include:required_weight_kgsuggested_vehicle_classservice_id
Heavy-order example
No-capacity outcome
If no online rider can carry the shipment, the API may return:Recommended client behavior
When you receiveERR_NO_CAPACITY_AVAILABLE:
- do not retry immediately in a tight loop
- show a clear user-facing message
- suggest retrying later or contacting support
- keep the merchant order in a pre-submit or failed state until capacity is available
Best practice
Always send:weight_estimatetotal_weight_kgwhen the actual weight is known
