Ver vehículo
GET /api/transports/{transport_id}
Autenticación: Bearer del usuario del tenant (Authorization: Bearer <api_token>).
Devuelve un registro.
Quién puede usarlo: cualquier usuario autenticado (administrador o vendedor).
Errores: 404.
Parámetros
| Parámetro | Dónde | Obligatorio | Ejemplo | Descripción |
|---|---|---|---|---|
transport_id |
ruta | sí | 1 |
Respuestas
200 — Detalle
{
"success": true,
"data": {
"id": 2,
"plate_number": "ABC123",
"model": "NPR",
"brand": "ISUZU",
"tuc": "15M21028954E",
"is_default": true,
"is_active": true
}
}
404 — No existe
{
"success": false,
"message": "Registro no encontrado."
}
Pruébalo
Prueba este endpoint con tu empresa y tu token: elige la URL en Servers, pega el token en Authorize y haz clic en Try it out.