Ir al contenido

Listar vehículos disponibles

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

Lista vehículos con status DISPONIBLE

teamId
required
string format: uuid

ID del equipo (UUID)

Lista de vehículos disponibles

Media typeapplication/json
object
vehicles
Array<object>
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
{
"vehicles": [
{
"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"
}