Send contracts by email
POST/truckers/contracts/
Send one or more contracts to the specified carrier email.
Functionality:
- Sends contract PDFs as attachments
- Validates that contract codes exist
- Verifies email format
- Requires valid JWT authentication
Use Cases:
- Automatic sending upon digital contract signing
- Resending contracts to a new email
- Sharing contracts with fleet managers
Example Request:
{
contract_codes: [TRANS-2023-001, TRANS-2023-002],
email: carrier@company.com
}
Notes:
- Limit of 10 contracts per send
- The email must be valid and associated with the carrier
Request
Responses
- 200
- 400
- 401
Emails sent successfully
Response Headers
Invalid data. Possible causes:
- Incorrect email format
- Empty contract list
- More than 10 contract codes
Response Headers
Unauthorized. The JWT token is invalid or has expired. Authentication must be renewed.