APIs/Connected Vehicle API
APIs/Connected Vehicle API

Odometer

Get odometer value

Endpoint used to read vehicle’s latest odometer value in kilometers.

get

https://api.volvocars.com/connected-vehicle/v1/vehicles/{vin}/odometer

Scopes

  • openid

  • conve:odometer_status

Headers

KeyDescription
Key
accept
Description
The mediatype of what should be returned. The valid values are: application/vnd.volvocars.api.connected-vehicle.vehicledata.v1+json
Key
authorization
Description
The access token issued by Volvo ID identity system.
Key
vcc-api-key
Description
Your application’s VCC API Key.
All these header values are mandatory. They must exist in every request.

Response body

The response’s data node lists the vehicle’s latest odometer value.

FieldDescription
Field
odometer.value
Description
The latest retrieved odometer value.
Field
odometer.unit
Description
Always kilometers.
Field
odometer.timestamp
Description
Timestamp in ISO-8601 format when the value has been last retrieved from the vehicle.

Examples

curl -v -X GET 'https://api.volvocars.com/connected-vehicle/v1/vehicles/{vin}/odometer' \
-H 'accept: application/vnd.volvocars.api.connected-vehicle.vehicledata.v1+json' \
-H 'authorization: Bearer <your-access-token>' \
-H 'vcc-api-key: <your-vcc-api-key>'

Odometer/Get odometer value