Send DGT documents by email
POST/truckers/dgt/email
Send by email the DGT documents associated with a specific code.
Complete process:
- Validate the DGT code and the destination email
- Generate ZIP files with documents from each associated delivery
- Send an email with the attached files
Required fields:
- email: Valid email address
- dgt_code: Existing DGT code
Usage example:
- Share documentation with the transport company
- Send a copy of documents to authorities
- Digitally archive the documentation
Notes:
- Documents are sent in ZIP format
- The email language is determined by the user's preference (i18n)
- Requires valid JWT authentication
Request
Responses
- 200
- 400
- 401
- 404
- 500
Email sent successfully
Error in input data:
- Email empty or invalid
- DGT Code empty
Unauthorized - Invalid or missing JWT token
Record not found. Possible causes:
- Incorrect DGT code
- The record does not belong to the user
Error sending the email. Possible causes:
- Problem with the mail server
- Error generating the attachments