ConnectedVehicle

Connected Vehicle API.

Provides access to vehicle status, diagnostics, statistics data and remote commands. All methods are suspending and require a valid VCC API key and OAuth2 access token.

All methods in this interface may throw:

Throws

if the access token is invalid or expired (401)

if the API key lacks required permissions (403)

if the request is malformed or the VIN is not found (400/404)

if the Volvo API returns a server error (5xx)

Functions

Link copied to clipboard
abstract suspend fun getBrakeStatus(vin: String, requestOptions: RequestOptions? = null): BrakeStatusResponse

Get brake status.

Link copied to clipboard
abstract suspend fun getCommandAccessibility(vin: String, requestOptions: RequestOptions? = null): CommandAccessibilityResponse

Get command accessibility status.

Link copied to clipboard
abstract suspend fun getCommandList(vin: String, requestOptions: RequestOptions? = null): CommandListResponse

Get list of available commands for the vehicle.

Link copied to clipboard
abstract suspend fun getDiagnostics(vin: String, requestOptions: RequestOptions? = null): DiagnosticsResponse

Get vehicle diagnostics (service warnings, washer fluid, etc.).

Link copied to clipboard
abstract suspend fun getDoorAndLockStatus(vin: String, requestOptions: RequestOptions? = null): DoorAndLockStatusResponse

Get door and lock status.

Link copied to clipboard
abstract suspend fun getEngineDiagnostics(vin: String, requestOptions: RequestOptions? = null): EngineDiagnosticsResponse

Get engine diagnostic values (oil level, coolant level warnings).

Link copied to clipboard
abstract suspend fun getEngineStatus(vin: String, requestOptions: RequestOptions? = null): EngineStatusResponse

Get engine running status.

Link copied to clipboard
abstract suspend fun getFuelAmount(vin: String, requestOptions: RequestOptions? = null): FuelAmountResponse

Get fuel amount in liters.

Link copied to clipboard
abstract suspend fun getOdometer(vin: String, requestOptions: RequestOptions? = null): OdometerResponse

Get odometer value in kilometers.

Link copied to clipboard
abstract suspend fun getStatistics(vin: String, requestOptions: RequestOptions? = null): StatisticsResponse

Get vehicle statistics (average speed, trip meters, etc.).

Link copied to clipboard
abstract suspend fun getTyreStatus(vin: String, requestOptions: RequestOptions? = null): TyreStatusResponse

Get tyre pressure status for all tyres.

Link copied to clipboard
abstract suspend fun getVehicleDetails(vin: String, requestOptions: RequestOptions? = null): VehicleDetailsResponse

Get vehicle details including model, year, fuel type, etc.

Link copied to clipboard
abstract suspend fun getVehicleList(requestOptions: RequestOptions? = null): VehicleListResponse

Get list of vehicles associated with the user.

Link copied to clipboard
abstract suspend fun getWarnings(vin: String, requestOptions: RequestOptions? = null): WarningsResponse

Get vehicle warnings (bulb failures, etc.).

Link copied to clipboard
abstract suspend fun getWindowStatus(vin: String, requestOptions: RequestOptions? = null): WindowStatusResponse

Get window status for all windows.

Link copied to clipboard
abstract suspend fun invokeClimatizationStart(vin: String, requestOptions: RequestOptions? = null): CommandResponse

Send climatization start command to the vehicle.

Link copied to clipboard
abstract suspend fun invokeClimatizationStop(vin: String, requestOptions: RequestOptions? = null): CommandResponse

Send climatization stop command to the vehicle.

Link copied to clipboard
abstract suspend fun invokeEngineStart(vin: String, request: EngineStartRequest, requestOptions: RequestOptions? = null): CommandResponse

Send engine start command to the vehicle.

Link copied to clipboard
abstract suspend fun invokeEngineStop(vin: String, requestOptions: RequestOptions? = null): CommandResponse

Send engine stop command to the vehicle.

Link copied to clipboard
abstract suspend fun invokeFlash(vin: String, requestOptions: RequestOptions? = null): CommandResponse

Send flash lights command to the vehicle.

Link copied to clipboard
abstract suspend fun invokeHonk(vin: String, requestOptions: RequestOptions? = null): CommandResponse

Send honk command to the vehicle.

Link copied to clipboard
abstract suspend fun invokeHonkFlash(vin: String, requestOptions: RequestOptions? = null): CommandResponse

Send honk and flash command to the vehicle.

Link copied to clipboard
abstract suspend fun invokeLock(vin: String, requestOptions: RequestOptions? = null): CommandResponse

Send lock command to the vehicle.

Link copied to clipboard
abstract suspend fun invokeLockReducedGuard(vin: String, requestOptions: RequestOptions? = null): CommandResponse

Send lock with reduced guard command to the vehicle.

Link copied to clipboard
abstract suspend fun invokeUnlock(vin: String, requestOptions: RequestOptions? = null): UnlockCommandResponse

Send unlock command to the vehicle.