Add a new carrier
POST/company/my_carriers/
Allows registering a new carrier associated with the company. Requires authentication via JWT.
Use cases:
- Register new carriers to manage shipments
- Maintain a directory of available carriers
- Associate carriers with logistics operations
Example flow:
- Obtain authentication token
- Register carrier with basic data
- Enable carrier when ready to operate
Request
Responses
- 201
- 400
- 401
Carrier created successfully.
IMPORTANT NOTE: Currently, the endpoint returns the complete Company object instead of the created Carrier.
This is a known system behavior. The ID of the created carrier will be in the my_carriers array of the response.
Response Headers
Invalid input data. Possible causes:
- Empty or too short name
- NIF/CIF with incorrect format
- Invalid email
Response Headers
Unauthorized. Invalid or missing JWT token.