Get my vehicle fleet
GET/truckers/vehicles/
Returns the complete list of vehicles associated with the authenticated carrier's company.
Use Cases:
- View all vehicles in the fleet
- Filter vehicles by characteristics (implemented on the client side)
- Obtain information for fleet maintenance or management
Response Example:
[
{
_id: 60a1b2c3d4e5f67890123456,
licensePlate: 1234ABC,
type: RIGID,
brand: Volvo,
model: FH16,
year: 2022,
images: [https://storage.example.com/vehicles/1234ABC.jpg],
createdAt: 2022-05-15T10:00:00Z,
updatedAt: 2022-05-15T10:00:00Z
}
]
Responses
- 200
- 401
- 403
Vehicle list successfully obtained.
Unauthorized
Authorization or validation error.
Occurs when the user lacks permissions or the data is invalid.