Ir al contenido

Obtener vehículo por ID

GET
/teams/{teamId}/vehicles/{vehicleId}
curl --request GET \
--url https://api.dev.lade.com.mx/teams/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/vehicles/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0 \
--header 'Authorization: Bearer <token>'

Retorna información detallada de un vehículo

teamId
required
string format: uuid

ID del equipo (UUID)

vehicleId
required
string format: uuid

ID del vehículo (UUID)

Información del vehículo

Media typeapplication/json
object
id
string format: uuid
teamId
string format: uuid
plate
string
brand
string
nullable
model
string
nullable
year
integer
vin
string
nullable <= 17 characters
type
string
nullable
imageUrl
string
nullable
capacity
string
nullable
fuelType
string
nullable
status

Estado del vehículo

string
Allowed values: DISPONIBLE EN_USO MANTENIMIENTO FUERA_DE_SERVICIO
insuranceNumber
string
nullable
insuranceExpiry
string
nullable
registrationExpiry
string
nullable
lastMaintenance
string
nullable
nextMaintenance
string
nullable
mileage
integer
notes
string
nullable
createdAt
string format: date-time
Example
{
"status": "DISPONIBLE"
}

No autenticado

Media typeapplication/json
object
error
required
string
message
string
field
string
Example
{
"error": "Unauthorized",
"message": "Invalid or expired token"
}

Sin permisos

Media typeapplication/json
object
error
required
string
message
string
field
string
Example
{
"error": "Forbidden",
"message": "You don't have permission to access this resource"
}

Recurso no encontrado

Media typeapplication/json
object
error
required
string
message
string
field
string
Example
{
"error": "Not found",
"message": "Resource not found"
}