Download Contract PDF
GET/truckers/contract/:service_code
Download the PDF document of a specific contract identified by its unique code.
Functionality:
- Returns the contract PDF as binary data
- Validates that the contract code exists
- Requires valid JWT authentication
- Includes Content-Type and Content-Disposition headers
Use Cases:
- Viewing the contract in a browser
- Local download for archiving
- Integration with document management systems
URL Example:
https://api.demo.cargoffer.com/truckers/contracts/TRANS-2023-001
Request
Responses
- 200
- 401
- 404
PDF of the contract
Unauthorized. The JWT token is invalid or has expired. Authentication must be renewed.
Contract not found. Possible causes:
- The contract code does not exist
- The contract is not associated with the carrier
- The contract has been deleted