Test your integration
Test errors
Test error statuses
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:
1. Connect errors
access_denied
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.
vehicle_incompatible
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.
VIN | |
---|---|
smartcar@vehicle-incompatible.com | 0SCAUDI012FE3B132 |
invalid_subscription
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.
VIN | |
---|---|
smartcar@invalid-subscription.com | 0SCAUDI0155C49A95 |
2. Request errors
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).
Error | Error code | Description | VIN | |
---|---|---|---|---|
vehicle_owner_action_required | VOA_000 | Vehicle authentication failed. Please prompt the vehicle owner to log in again using Connect. | smartcar@voa-000.vehicle-owner-action-required.com | 0SCAUDI01391D9CA7 |
vehicle_owner_action_required | VOA_001 | Connected services subscription invalid or expired. Please prompt the vehicle owner to reactivate their subscription. | smartcar@voa-001.vehicle-owner-action-required.com | 0SCAUDI01AEF8D583 |
vehicle_state_error | VS_000 | Vehicle state cannot be determined. | smartcar@vs-000.vehicle-state-error.com | 0SCAUDI019D6FC7A6 |
vehicle_state_error | VS_001 | Some of the vehicle's doors are open. | smartcar@vs-001.vehicle-state-error.com | 0SCAUDI0169A043C2 |
vehicle_state_error | VS_002 | Some of the vehicle's trunks are open. | smartcar@vs-002.vehicle-state-error.com | 0SCAUDI016B51ACF3 |
vehicle_state_error | VS_003 | The vehicle's hood is open. | smartcar@vs-003.vehicle-state-error.com | 0SCAUDI01D6B3233E |
vehicle_state_error | VS_004 | Charging plug is not connected to the vehicle. | smartcar@vs-004.vehicle-state-error.com | 0SCAUDI01BF2D854E |
vehicle_state_error | VS_005 | Vehicle is fully charged. | smartcar@vs-005.vehicle-state-error.com | 0SCAUDI01E99C2F91 |
vehicle_state_error | VS_006 | Vehicle is asleep. | smartcar@vs-006.vehicle-state-error.com | 0SCAUDI019063631B |
vehicle_state_error | VS_007 | Vehicle is offline. | smartcar@vs-007.vehicle-state-error.com | 0SCAUDI01CC0B946C |
vehicle_state_error | VS_008 | Vehicle's ignition is switched on. | smartcar@vs-008.vehicle-state-error.com | 0SCAUDI01C940E389 |
vehicle_state_error | VS_009 | Vehicle is moving. | smartcar@vs-009.vehicle-state-error.com | 0SCAUDI0179F360C5 |
vehicle_state_error | VS_010 | Remote access is disabled. | smartcar@vs-010.vehicle-state-error.com | 0SCAUDI01E7AC5E5B |
vehicle_state_error | VS_011 | Vehicle is charging. | smartcar@vs-011.vehicle-state-error.com | 0SCAUDI0172704858 |