Create new DGT record
POST/truckers/dgt/
Create a new DGT record associated with the authenticated carrier.
Complete process:
- Validate the provided DGT code
- Retrieve deliveries in 'collected' status for the carrier
- Obtain the associated transport company
- Create the record with all associated information
Required fields:
- dgt_code: Unique code provided by the DGT
Usage example:
- Register new DGT codes received
- Associate DGT codes with existing deliveries
- Initiate the DGT documentation process
Notes:
- Automatically associates all deliveries in 'collected' status
- Requires valid JWT authentication
Request
Responses
- 200
- 400
- 401
- 500
DGT record successfully created.
Input data error:
- DGT code empty or invalid
- No deliveries available to associate
Unauthorized - Invalid or missing JWT token
Internal server error while processing the request