GET
/api/partner/v1/bookings/{bookingId}/gps/mileageBooking mileage
How far one rental drove.
The mileage of a single rental, over the booking's own window — what a mileage overage is computed from. Read it while the rental is still inside the position retention: once the raw fixes are purged the answer becomes 0.
Authorization
X-Api-Key headerSend your partner key on every request. The key is bound to exactly one owner account.
Path parameters
bookingIdstringpathrequiredOur booking id OR your own external booking id.
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.
errorstringnullableStatus codes
200The distance driven during the rental.
401Missing, unknown or revoked API key.
404The resource does not exist under this owner.
