Send contracts by email
POST/truckers/contract/
Send one or more contracts to the specified carrier email.
Functionality:
- Sends the contract PDFs as attachments
- Validates that the 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
Request Example:
{
contract_codes: [TRANS-2023-001, TRANS-2023-002],
email: carrier@company.com
}
Notes:
- Limit of 10 contracts per shipment
- The email must be valid and associated with the carrier
Request
Responses
- 200
- 400
- 401
Emails sent successfully
Invalid data. Possible causes:
- Incorrect email format
- Empty contract list
- More than 10 contract codes
Unauthorized. The JWT token is invalid or has expired. Authentication must be renewed.