GET apioauth/matrixv2/services/{serviceId}/historicalodometer?startDate={startDate}&endDate={endDate}

Get the historical odometer of a service

Request Information

URI Parameters

NameDescriptionTypeAdditional information
serviceId

The id of the service to query

unsigned integer

Required

startDate

The start date being queried yyyyMMddHHmmss

string

Required

endDate

The end date being queried yyyyMMddHHmmss

string

Required

Body Parameters

None.

Response Information

Resource Description

A ServiceOdometerResponse

HistoricalServiceOdometerResponse
NameDescriptionTypeAdditional information
StartOdometer

The start odometer in miles

decimal number

None.

EndOdometer

The end odometer in miles

decimal number

None.

CurrentOdometer

The current odometer in miles

decimal number

None.

Response Formats

application/json, text/json

Sample:
{
  "StartOdometer": 1.1,
  "EndOdometer": 2.1,
  "CurrentOdometer": 3.1
}

application/xml, text/xml

Sample:
<HistoricalServiceOdometerResponse xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <StartOdometer>1.1</StartOdometer>
  <EndOdometer>2.1</EndOdometer>
  <CurrentOdometer>3.1</CurrentOdometer>
</HistoricalServiceOdometerResponse>