Retrieve a route by ID, including its stops, travel metrics, and associated orders.
ADocumentation Index
Fetch the complete documentation index at: https://docs.usenash.com/llms.txt
Use this file to discover all available pages before exploring further.
Route object represents a planned sequence of stops for a vehicle or delivery agent.
The core of the Route is the stops array, which lists the specific locations to visit in order. Each stop within this array details:
stopType).objectIds).arrivalTime, departTime, serviceTime).distanceFromPrevious, durationFromPrevious).location).Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Route ID
OK
Represents a planned sequence of stops for a delivery or batch.
Unique identifier for the route.
"rte_JphRWDiEosGpXuxwgaYfY3"
Portal URL of the route.
"https://portal.usenash.com/routes/rte_JphRWDiEosGpXuxwgaYfY3"
Type of the route, indicating the pickup/dropoff structure.
"SINGLE_PICKUP_MULTIPLE_DROPOFFS"
Ordered list of stops included in the route.
External Route ID.
"rte_JphRWDiEosGpXuxwgaYfY3"
Name of the route.
"Route 1"
Courier ID of the driver assigned to the route.
"cou_1234567890abcdef12345678"
Vehicle ID of the vehicle assigned to the route.
"vhc_1234567890abcdef12345678"
Courier/driver details for the route.
Current GPS position of the assigned courier.
Vehicle details for the route.
Name of the delivery provider assigned to this route.
Shift ID of the shift assigned to the route.
"shf_1234567890abcdef12345678"
Dispatched Job ID of this route
"job_1234567890abcdef12345678"
Additional metadata for the route.
{
"priority": "high",
"source": "optimization_engine"
}Validation errors for the route.
{
"order_123": "Order 123 has pickup but no dropoff"
}Encoded polyline representing the route geometry.
Current status of the route.
"CREATED"
History of status changes for the route.
[
{
"created_at": "2025-04-25T03:00:00Z",
"status": "CREATED"
},
{
"created_at": "2025-04-25T03:10:00Z",
"status": "ASSIGNED"
},
{
"created_at": "2025-04-25T03:15:00Z",
"status": "STARTED"
}
]