List company vehicles
GET/api/vehicle/
Retrieves the paginated list of vehicles associated with the authenticated user's company.Functionality:- Returns vehicles sorted by license plate (plate)- Supports pagination via query parameters (page, limit)- Returned fields: cargo_type, plate, image, itv, vehicle_type, shipping_type, fresh_cargo_tempUse Cases:- Display vehicle list in administration panel- Select a vehicle to assign to a shipmentExample of successful response:json{ docs: [ { plate: 1234ABC, vehicle_type: truck, image: https://s3.amazonaws.com/vehicles/1234ABC.jpg, itv: https://s3.amazonaws.com/documents/ITV_1234ABC.pdf, shipping_type: dry, cargo_type: [construction, industrial] } ], total: 1, limit: 10, page: 1, pages: 1}
Request
Responses
- 200
- 400
- 401
Vehicle list
Request error
Unauthorized