List all drivers of a carrier
GET/company/my_carriers/driver/:carrierId
Returns a complete listing of all drivers associated with a specific carrier. Requires JWT authentication.
Use cases:
- Consult the driver team of a carrier
- Filter active/inactive drivers
- Obtain basic data to assign drivers to operations
Notes:
- The carrier must exist previously
- The response includes metadata such as the total count
Request
Responses
- 200
- 401
- 404
Driver list retrieved successfully. Returns a direct array of drivers (NOT wrapped in an object with a drivers property).
ID structure within each driver:
_id: ID of the subdocument within the carrier'sdriversarrayassociated: ID of thetrucker_userin thetruckers_userscollection (reference to the actual user)
Response Headers
Unauthorized. Invalid or missing JWT token.
Response Headers
Carrier not found. The provided ID does not exist or is not associated with the company.