This example shows a SubmitShipment that includes the mandatory fields for a dangerous goods shipment using a DG Office integration. DG Office is a 3rd-party software specializing in making dangerous goods documents and they will ensure that the documents you print fulfill the legal requirements. Read more about DG Office here.
If you are using a DG Office integration while also sending information about dangerous goods to your carrier in the EDI, it is important to remember to include both the fields required by DG Office as well as the fields your carrier may require. All the parameters mentioned under the DG Office parameters must be included together with the UN Number. It may also be mandatory to include other fields like class, volume, and number but this varies from carrier to carrier. (Note: not all carriers support dangerous goods. If in doubt, please ask your carrier).
DG Office parameters:
Name |
Type |
Mandatory |
ArticleNo |
Int (Article number from DG Office) |
Yes, for shipments with dangerous goods and DG Office integration. |
Transportmode |
Int (0/1) |
Yes, for shipments with dangerous goods and DG Office integration. |
DelarantName |
String |
Yes, for shipments with dangerous goods and DG office. |
Count |
Int |
Yes, for shipments with dangerous goods and DG office. |
See the complete list of parameters here.
Data:
{ "Kind": 1, "ActorCSID": 8995, "ProdConceptID": 112, "Addresses": [ { "Kind": 1, "Name1": "John Doe", "Street1": "Testvej 10", "PostCode": "8000", "City": "AARHUS C", "Mobile": "12345678", "Attention": "Doe", "CountryCode": "DK" }, { "Kind": 2, "Name1": "nshift", "Street1": "Bredskifte alle 11", "PostCode": "8210", "City": "AARHUS V", "Phone": "70273377", "Attention": "CS", "CountryCode": "DK" } ], "Lines": [ { "LineWeight": 50000, "PkgWeight": 50000, "GoodsTypeKey1": "PL1", "References": [ { "Kind": 23, "Value": "Test contents" } ], "Pkgs": [ { "ItemNo": 1 } ] } ], "DangerousGoods": [ { "GoodsLineNo": 1,
"Count": 1,
"ArticleNo": "334",
"TransportMode": 2,
"DeclarantName": "Muller"
"UN": 3304, "Name": "COMPRESSED GAS, TOXIC, CORROSIVE, N.O.S.", "Class": 2, "Classification": "1TC", "GrossWeight": 60000, "NetWeight": 50000, "Vol": 600000000, "PackingTypeName": "Aluminiumcylinder", "PackingTypeID": 256, "UnitOfMeasure": 1 } ] }
The example above includes some of the most common fields. You may also use the method GetDGArticleNoInfo to return DG data from DG Office that you can include in your SubmitShipment request together with DG Office and carrier required fields.
The method GetDocument is needed to retrieve the DG freight letter once the shipment has been created. A delay between SubmitShipment and GetDocument is also required since the document is created by a third-party vendor.