Get Odometer
AI-generatedSummary
Retrieves the current odometer reading of the selected vehicle.
Inputs
- vin — Optional VIN to target a specific vehicle. If empty, the vehicle index will be used.
- vehicleIndex — Index of the vehicle to use when VIN is not provided. Must be >= 0.
Output shape
json
The actual odometer value returned by the BlueLinky API, or { message: 'No odometer returned' } if the reading is unavailable.
Examples
Example 1: Vehicle found via VIN
vin: 'ABC123', vehicleIndex: 0 (unused)
Example 2: Vehicle found via index
vin: empty, vehicleIndex: 2