Test your integration
You can use test mode to verify that your application properly handles various error statuses that Smartcar may return. There are two types of errors that can occur after integrating Smartcar into an application:
This error occurs when a user denies your application access to the requested scope of permissions. To test this error, launch Smartcar Connect in test mode and select “Deny access” on the permissions screen.
We recommend handling this error by re-prompting the user to authorize their vehicle and adding a message like in the example below.
This error occurs when a user tries to authorize an incompatible vehicle in Smartcar Connect. In order to be compatible, a vehicle must:
- Have the hardware required for internet connectivity
- Belong to the makes and models Smartcar is compatible with
- Be capable of the required permissions that your application is requesting access to
If the user’s vehicle is incompatible, Smartcar will let the user know and offer them to share their vehicle’s VIN, make, model, and year with your application.
We recommend that your application provides a flow for incompatible vehicles like in the example below.
This error occurs when a user’s vehicle is compatible but their connected services subscription is inactive because either it has expired or it has never been activated. Smartcar will direct the user to the connected services website to (re-)activate their subscription. However, a user may choose to return back to your application instead, like in the example below.
The following request errors can be tested using Smartcar’s test mode.
vehicle_owner_action_required: This error occurs when a user has either changed the password of their connected services subscription or their subscription has expired. You should prompt your user to take the necessary action.
vehicle_state_error: This error occurs when a vehicle is unable to perform the request in its current state. For example, the vehicle might be outside of a cellular coverage area or the vehicle’s doors might stand open while a lock request is initiated. See the error codes below for a detailed list of all possible scenarios. Depending on the scenario, you should try sending another request at a later time or prompt your user to take the necessary action.
To test these errors, launch Smartcar Connect in test mode and log in with one of the following emails and any password. Then make a request to any non-static vehicle endpoints (all endpoints under the /vehicles resource, excluding the VIN, vehicle attributes, and application permissions endpoints).
|vehicle_owner_action_required||VOA_000||Vehicle authentication failed. Please prompt the vehicle owner to log in again using Connect.||email@example.com||0SCAUDI01391D9CA7|
|vehicle_owner_action_required||VOA_001||Connected services subscription invalid or expired. Please prompt the vehicle owner to reactivate their firstname.lastname@example.org||0SCAUDI01AEF8D583|
|vehicle_state_error||VS_000||Vehicle state cannot be email@example.com||0SCAUDI019D6FC7A6|
|vehicle_state_error||VS_001||Some of the vehicle's doors are firstname.lastname@example.org||0SCAUDI0169A043C2|
|vehicle_state_error||VS_002||Some of the vehicle's trunks are email@example.com||0SCAUDI016B51ACF3|
|vehicle_state_error||VS_003||The vehicle's hood is firstname.lastname@example.org||0SCAUDI01D6B3233E|
|vehicle_state_error||VS_004||Charging plug is not connected to the email@example.com||0SCAUDI01BF2D854E|
|vehicle_state_error||VS_005||Vehicle is fully firstname.lastname@example.org||0SCAUDI01E99C2F91|
|vehicle_state_error||VS_006||Vehicle is email@example.com||0SCAUDI019063631B|
|vehicle_state_error||VS_007||Vehicle is firstname.lastname@example.org||0SCAUDI01CC0B946C|
|vehicle_state_error||VS_008||Vehicle's ignition is switched email@example.com||0SCAUDI01C940E389|
|vehicle_state_error||VS_009||Vehicle is firstname.lastname@example.org||0SCAUDI0179F360C5|
|vehicle_state_error||VS_010||Remote access is email@example.com||0SCAUDI01E7AC5E5B|
|vehicle_state_error||VS_011||Vehicle is firstname.lastname@example.org||0SCAUDI0172704858|