DGAssistant Dangerous Goods API (2.10.2)
The DGAssistant Dangerous Goods API is a JSON REST API that connects your ERP, warehouse or transport management system to DGAssistant and returns dangerous goods documents compliant with ADR, IMDG, IATA and 49 CFR.
Your system sends the data of each consignment and DGAssistant supplies the regulatory knowledge: it checks every product and package against the applicable regulation, applies the most favourable exemption and returns the Transport Document, the IMO Dangerous Goods Declaration, the Shipper's Declaration for Dangerous Goods, the checklist and the marking and labelling of packages, ready to print.
It also covers consolidation and transport (master consignments, segregation checks, the dangerous goods manifest, the Notification to Captain (NOTOC) and CMR and e-CMR consignment notes), with webhooks that keep your system informed. Fewer manual steps, fewer errors and documents that follow every change in the regulations.
Master data identifiers. The identifier of a master data entry is stable: it designates the same entry in every later version of the catalogue and of the API, and it is never reused for another entry.
Repeated requests. The requestGuid parameter identifies each request in order to trace it, and it is not an idempotency key unless the operation states it: repeating a creation that was processed creates another record, so before repeating a creation whose response was not received, check whether the record was created.
Rate limits. By default, each account may send up to 4 requests per second and up to 4 requests in parallel. These are the default limits: for specific needs, they can be increased on request. Requests above the limits of the account may be rejected with the HTTP status 429 (Too Many Requests). A request rejected for this reason is not processed and does not count towards the calls of the licence, so it can be repeated safely, even when it is a creation.
Licence quotas. Each API licence includes the following quotas in each year of the licence, and each additional API licence adds the same quotas. Each year of an API licence is counted from the date of its activation, not the calendar year.
- Calls: up to 20 000 calls to the API. Every call counts, whatever its result, except the calls answered with a 5xx status (server error), the calls rejected because their credentials are not valid (401 status) and the requests rejected for exceeding the rate limits (429 status). Calls made during the evaluation of the API or during its integration do not count either.
- Consignments: up to 1 500 of those calls may create consignments (
POST /consignment). Only the creations answered successfully (2xx status) count; those answered with a 3xx, 4xx or 5xx status do not. A consignment that is deleted later still counts. - Master data: up to 5 000 master data records stored in the account at the same time: products, participants, locations of the account, vehicles, trailers and vessels.
Each consignment corresponds to one actual shipment, with its own transport document and date, so a consignment may not be reused to check or to issue the documents of other shipments. The licence agreement sets out the conditions of use of the API licence.
Getting started
- Authentication
OAuth2 access tokens issued with the client credentials grant, an alternative to HTTP Basic authentication for every authenticated operation
- Connection checks
Checks of the availability of the API, of the credentials of the API user and of requests with and without authentication
Reference and account data
- Master data
Dangerous goods and radionuclides, packagings and packing instructions, codes, countries and locations that consignments, products and consolidation refer to
- Products
Simple and mixed packing products of the catalogue, including the interactive creation of a mixed packing product for a consignment
- Participants
Predefined participants: shippers, consignees, loaders, carriers, suppliers, drivers, consolidators, notify parties, freight forwarders and shipping agents
- Vehicles, trailers and vessels
Vehicles, trailers and vessels of the accounts, with their registration, ADR approval and Document of Compliance
- Locations and restrictions
Ports, airports and terminals of the accounts and the restrictions that apply when transport equipment is planned or loaded at them
Consignments
- Consignments
Creation of a consignment with all its contents (batch) or with its first content (interactive), and retrieval and deletion of consignments
- Consignment contents
Products, mixed packings and overpacks added to or removed from a consignment processed interactively
- Consignment documents
Documents of a consignment (transport document, checklist, package marking and others), their sending by email and frozen documents
- Consignment notes
CMR, e-CMR and national consignment notes, from the check of the e-CMR Protocol coverage of the route to issue, delivery and cancellation
Consolidation and transport
- Consolidation requests
Consolidation requests of client accounts, or of their adviser on their behalf, and decisions of the consolidator
- Master consignments
Master consignments with their consignments and approval workflow
- Transport equipment
Transport equipment, its content, its segregation checks and its movement history
- Transport movements and calls
Voyages, flights and road journeys with their calls and transport equipment, segregation checks, load threshold calculation (ADR 1.1.3.6) and restrictions
- Consolidation documents
Documents of master consignments, transport equipment and transport movements
Notifications
- Webhooks
Webhook subscriptions of the account, their test and their recent deliveries