GET /v1/external/daily-summary
Distance, engine hours and idle time of one unit per day
Returns one unit's daily figures for the local days in [from, to), at most 92 days, in date order. A day is a local date in the time zone of the unit's organization (time_zone); a day without derived figures is absent. A unit outside the caller's units answers 404, the same as one that does not exist. Requires the CAN telemetry module in the client's client access; without it the answer is the 403 of a key without this product.
5 credits per successful call
curl -s -H "X-API-Key: $KEY" \ "https://api.orbistrack.tools/v1/external/daily-summary?uid=<uid>"
| Name | Type | Description |
|---|---|---|
| uidrequired | string | The unit's id: a canonical (lowercase, hyphenated) UUID. |
| from | string | First local date of the range, included (YYYY-MM-DD). Required. |
| to | string | Local date the range ends before, excluded (YYYY-MM-DD). Required; at most 92 days after from. |
| organization_id | string | Only a unit of this organization: a UUID. Optional. An organization outside the caller's reach answers 404, the same as one that does not exist. |
| Name | Type | Description |
|---|---|---|
| items | array | null | |
| items[].date | string (date) | The local date of the day (YYYY-MM-DD), in time_zone. |
| items[].distance_km | number (double) | null | Distance driven that day, in km, from the odometer, rounded to 2 decimals. Null when the unit has no odometer reading. |
| items[].engine_hours | number (double) | null | Time with the engine on, in hours, rounded to 2 decimals. Null when the unit has no engine state. |
| items[].final | boolean | True once the day is closed; false while its figures may still change (today, or a day still being derived). |
| items[].idle_hours | number (double) | null | Time idling (engine on, stopped, power take-off excluded), in hours, rounded to 2 decimals. Null when the unit has no engine state. |
| items[].organization_id | string (uuid) | The unit's organization. |
| items[].time_zone | string | The IANA time zone that defines the day: the organization's. |
| items[].unit_id | string (uuid) | The unit's id. |
| next_cursor | string | Pass as cursor to read the next page. Absent at the end of the list. |