Manifests
The Manifest object
{
"id": "manifest_7KpQ2Rx9Vz",
"status": "in_progress",
"scheduled_date": "2026-08-23",
"started_at": "2026-08-23T07:12:04.000000Z",
"completed_at": null,
"total_distance_m": 41200,
"total_duration_s": 5400,
"stop_count": 8,
"completed_stops": 3,
"pending_stops": 5,
"driver_name": "Ron",
"vehicle_name": "EAS-01",
"notes": null,
"updated_at": "2026-08-23T09:02:00.000000Z",
"created_at": "2026-08-23T06:40:00.000000Z"
}/v1/manifests/:idRetrieve a Manifest
Retrieves a manifest with its stops, in the sequence they are to be driven.
Each stop carries its place inline — a route of twenty stops is one request, not twenty-one — along with its status, estimated and actual arrival, and the distance and duration from the previous stop.
/v1/manifests/:idcurl https://api.fleetbase.io/v1/manifests/:id \
-H "Authorization: Bearer flb_live_…"/v1/manifests/:id/optimizeOptimize a Manifest
Re-sequences the stops a driver has not done yet, nearest first.
This is the driver's optimise, not the orchestrator's. The orchestrator allocates orders across a fleet and produces manifests; this reorders the stops of one manifest that is already assigned.
It is a nearest-neighbour walk over road distances: from the driver's position to the closest remaining stop, then the closest from there. That is usually a large improvement on an arbitrary order and is not guaranteed optimal.
Completed and skipped stops keep their place — a route already driven is not re-planned. A manifest with fewer than three stops still to do is returned unchanged, since there is no ordering to find.
Send latitude and longitude to start the walk from where the driver actually is. Without them it starts from the first stop still to do.
latitudenumberoptionalThe driver's current latitude. The walk starts here when both coordinates are given.
longitudenumberoptionalThe driver's current longitude.
/v1/manifests/:id/optimizecurl -X POST https://api.fleetbase.io/v1/manifests/:id/optimize \
-H "Authorization: Bearer flb_live_…" \
-H "Content-Type: application/json" \
-d '{
"latitude": 1.3521,
"longitude": 103.8198
}'/v1/manifest-stops/:idUpdate a Manifest Stop
Marks a stop on a manifest as arrived, completed or skipped.
Status changes run through the manifest's own transitions rather than writing a column, so arrival and completion timestamps are recorded and a manifest completes itself when its last stop does.
Any other status is refused and changes nothing.
statusstringoptionalOne of arrived, completed or skipped. Anything else is refused.
metaobjectoptionalArbitrary metadata to store against the stop, such as a note left on arrival.
/v1/manifest-stops/:idcurl -X PATCH https://api.fleetbase.io/v1/manifest-stops/:id \
-H "Authorization: Bearer flb_live_…" \
-H "Content-Type: application/json" \
-d '{
"status": "arrived"
}'