Send command to lock or unlock a vehicle
PUT/vehicles/:registration/central-locking
This function requires a specific fitment by Cartrack. You can remotely lock or unlock the vehicle by sending the commands "UNLOCK", "UNLOCK_0", "LOCK". A device is installed in your vehicle and reproduces the keyfob signals.
- "UNLOCK": this command turns on the keyfob in the car and uses it to send the unlock command. The doors can now be opened. The keyfob stays powered up, the user can turn on the engine.
- "UNLOCK_0": this command turns on the keyfob in the car and uses it to send a different set of unlock command. The doors can now be opened. However, the keyfob will be immediately powered down, the user won't be able to turn on the engine.
- "LOCK": this command turns on the keyfob in the vehicle and it uses it to send a lock command. The doors are now locked. The keyfob is powered down immediately after, the engine can't be turned on.
Not all vehicles and devices are compatible with this function.
To prevent duplicate commands, the same command cannot be sent to the same vehicle while a previous one is still being processed (up to 30 seconds). In that case the API responds with an HTTP 409 error and a Retry-After header indicating the number of seconds to wait before retrying.
Request
Responses
- 200
- 401
- 403
- 404
- 409
- 422
- 500
Successful operation
Unauthorized access. Authentication is required.
Access is forbidden. The user does not have permission to access this resource.
The requested resource was not found.
A command of the same type was recently sent to this vehicle and is still being processed. Wait for the number of seconds indicated in the Retry-After header before sending the command again.
Response Headers
The number of seconds to wait before the command can be sent again.
Validation failed for the input parameters.
Internal server error.