Download delivery document
GET/company/delivery/documents/:service_code/:document_id
Download a specific document from a shipment from S3.
Objective
Allow companies to individually download the documents attached to a shipment as needed.
Use Cases
- Download a specific document without downloading the entire ZIP
- View a document in the browser
- Share a specific document with third parties
Notes
- The file is served directly from S3
- Content-Type depends on the file type
- Verify the user has permissions (company or trucker_cia)
Request
Responses
- 200
- 401
- 404
- 500
File downloaded successfully
Response Headers
Content-Disposition
Example:
attachment; filename="factura.pdf"Content-Type
Example:
application/pdfUnauthorized.
Document not found.
Error downloading the document.