/api/partner/v1/cars/{carId}/gps/mileageCar mileage
How far one car drove over a period.
Distance summed from the car's own fixes, with no-fix pings and physically impossible jumps excluded so a single bad reading cannot inflate a bill. coveredFromUtc/coveredToUtc say which part of the period actually had data: positionCount: 0 means it is no longer measurable, not that the car stood still.
Authorization
X-Api-Key headerSend your partner key on every request. The key is bound to exactly one owner account.
Path parameters
carIdstringpathrequiredQuery parameters
fromstringqueryStart of the window (UTC, inclusive). Defaults to 30 days before to.
tostringqueryEnd of the window (UTC, exclusive). Defaults to now.
Response
200 · application/jsonsuccessbooleanrequireddataobjectDistance driven over a window, summed from the vehicle's own fixes.
carIdstringexternalCarIdstringnullablebookingIdstringnullableSet on the booking-scoped read.
externalBookingIdstringnullablefromUtcstring <date-time>toUtcstring <date-time>distanceMilesnumberdistanceKmnumberpositionCountintegerFixes the figure was summed from. 0 or 1 means no distance could be measured.
coveredFromUtcstring <date-time>nullableFirst fix actually found in the window — null when the period holds none.
coveredToUtcstring <date-time>nullabletruncatedbooleanThe window held more fixes than one request reads; the distance is then a lower bound.
errorstringnullable