This API will return the device’s current odometer. It requires the Account ID and Device IDs as input parameters.
Request
Add parameter in header x-api-key
Example:x-api-key: ********************
Access token which was generated earlier
Body Params application/json
Device id list, Comma separated String
{
"acctId": "string",
"devIds": "string"
}
Request samples
curl --location --request POST '/devices/odometer' \
--header 'token;' \
--header 'Content-Type: application/json' \
--header 'x-api-key;' \
--data-raw '{
"acctId": "string",
"devIds": "string"
}'
Responses
devices
array [object {3}]
optionalOdometer Unit, for US - miles, EU- KM
Device total Odometer calulated by multiplying totalMileage * conversion_unit. conversion_unit for US is 0.000621371 and for EU is 0.001
{
"devices": [
{
"devId": "string",
"unit": "string",
"totalOdometer": "string"
}
]
}
Modified at 2025-02-28 08:12:14