Get available vehicle types
GET/truckers/vehicles/types
This endpoint returns the complete list of vehicle types registered in the system. Each type includes its unique identifier, name, and reference code.
Use cases:
- Display options when creating/editing a vehicle
- Filter vehicles by type
- Validate allowed vehicle types
Response example:
[
{
_id: 60a1b2c3d4e5f67890123456,
name: Rigid Truck,
code: RIGID
},
{
_id: 60a1b2c3d4e5f67890123457,
name: Trailer,
code: TRAILER
}
]
Responses
- 200
- 401
- 403
Vehicle type list successfully obtained.
Unauthorized
Authorization or validation error.
Occurs when the user lacks permissions or the data is invalid.