Planned journeys: a route, a schedule, vehicle and driver assignments, and rules,
with adherence scored against real telemetry. 33 endpoints under
/api/v2/dispatches, all reachable with an API key (§15).
What it is for
A dispatch is a plan. The platform then compares the plan against what the vehicles actually did, which is where the value is: plan versus actual distance, on time arrival, border waits, rule breaches and cost per journey. If you are integrating a TMS, an ERP or an insurer's risk model, this is the module that carries the operational truth rather than raw position dots.
The lifecycle
POST /api/v2/dispatches create a plan
POST /api/v2/dispatches/{id}/start begin it
POST /api/v2/dispatches/{id}/stops/{sid}/reach a stop was reached
POST /api/v2/dispatches/{id}/stops/{sid}/delivery what happened there
POST /api/v2/dispatches/{id}/proof upload proof of delivery
POST /api/v2/dispatches/{id}/complete close it
cancel, recompute and send exist alongside. recompute re-scores adherence
after late telemetry arrives, which matters because a vehicle out of coverage
reports its history when it reconnects.
Reading them
| Endpoint | Returns |
|---|---|
GET /api/v2/dispatches |
Paginated list, plus tab_counts by status and a kpis block |
GET /api/v2/dispatches/{id} |
One dispatch with assignments and stops |
GET /api/v2/dispatches/mine |
Only those assigned to the calling account |
GET /api/v2/dispatches/{id}/tracking |
Live progress against the plan |
GET /api/v2/dispatches/{id}/adherence |
The scored result |
GET /api/v2/dispatches/{id}/result |
Final outcome once complete |
GET /api/v2/dispatches/{id}/card |
The dispatch card, as the portal renders it |
GET /api/v2/dispatches/{id}/report |
The per dispatch report |
GET /api/v2/dispatches/create-data |
The vehicles, drivers and rules available to build one |
GET /api/v2/dispatches/fuel-guide |
Expected fuel for a planned journey |
POST /api/v2/dispatches/check |
A dry run. Validates a plan and stores nothing |
Parameters on the list endpoint:
| Parameter | Notes |
|---|---|
status |
active, pending, completed, cancelled. Omit for all |
search |
Substring match on the dispatch name |
per_page |
Default 20, maximum 200 |
The tab_counts block is computed before the status filter is applied, so you
get every status count in one call rather than four.
Analytics
Seven endpoints, and the reason an integrator would pay for this module:
| Endpoint | Answers |
|---|---|
GET …/compliance |
How many dispatches are compliant, at risk, breached, on time |
GET …/violations |
The individual rule breaches |
GET …/analytics/plan-vs-actual |
Planned against actual distance and timing |
GET …/analytics/on-time |
Arrival performance |
GET …/analytics/border-waits |
Time lost at border crossings |
GET …/analytics/cost |
Expenses per journey, grouped |
GET …/analytics/rules |
Which rules fire, and how often |
GET …/analytics/coverage |
Telemetry coverage, so you know how much to trust the rest |
Date window: from and to, with date_from and date_to accepted as
aliases. The window applies to the dispatch's planned start, and
unscheduled dispatches are kept rather than dropped.
analytics/cost takes group_by: one of dispatch, vehicle or driver.
Anything else returns 422 with a message naming the three, which is more
than most endpoints on this platform do.
Read analytics/coverage first. Every other number here is derived from
telemetry, and a fleet with gaps in coverage produces adherence scores that look
precise and are not. The endpoint exists so you can qualify the rest.