Register License Plate / Registrar Placa
const url = 'https://api-dev.zonaparqueo.com/external/placa';const options = { method: 'POST', headers: {Authorization: '<Authorization>', 'Content-Type': 'application/json'}, body: '{"placa":"ABC123","tipo_vehiculo_id":1,"tipo_vehiculo":"example","electrico":0,"minusvalido":0}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://api-dev.zonaparqueo.com/external/placa \ --header 'Authorization: <Authorization>' \ --header 'Content-Type: application/json' \ --data '{ "placa": "ABC123", "tipo_vehiculo_id": 1, "tipo_vehiculo": "example", "electrico": 0, "minusvalido": 0 }'Registers a license plate in the system. This is the mandatory step 1
of vehicle onboarding: register the plate first, then create the vehicle with
POST /external/vehiculo, which links it to a client.
Compatibility note: the verified implementation sends the vehicle type twice, as
tipo_vehiculo(string) andtipo_vehiculo_id(integer), to cover both variants accepted by the server.
Authorizations
Section titled “Authorizations”Request Bodyrequired
Section titled “Request Bodyrequired”object
License plate
Example
ABC123Vehicle type identifier (see /external/tipo-vehiculo)
Example
1Vehicle type as text. Sent alongside tipo_vehiculo_id for
compatibility with both variants accepted by the server.
1: is electric; 0: is not electric (optional)
1: is disabled; 0: is not disabled (optional)
Responses
Section titled “Responses”Plate registered successfully
object
Response data
object
Examples
{ "estado": "ok", "data": { "message": "Placa registrada correctamente" }}Validation error
object
Error message
Field-specific error details
object
Example
{ "estado": "fail"}