Get trucker company contact info
GET/company/truckers/contact/:id
Gets contact information of the company to which a trucker belongs.
Main use:
- Get contact data of transport company
- Information for direct communication
- Data for document generation (CMR, contracts)
Returned information:
- _id: Trucker company ID
- name: Company name
- email: Contact email
- phone: Phone number
- country: Country code
- timezone: Time zone
- createdAt: Registration date
- deleted: Deletion status
Difference with GET /{id}:
- This endpoint returns info of trucker's COMPANY
- GET /{id} returns info of individual TRUCKER
Responses:
- 200 OK: Company contact information
- 404 Not Found: Company not found
- 400 Bad Request: Error getting contact
Request
Responses
- 200
- 400
- 404
Contact information obtained
Error getting contact
Company not found