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.
When using a DG Office integration and sending dangerous goods data via EDI, ensure you include both DG Office-required fields and any additional fields your carrier needs. Always include DG Office parameters along with the UN Number. Some carriers may also require details like class, volume, or quantity. Since not all carriers support dangerous goods, check with your carrier if unsure.
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": "Runevej 2A", "PostCode": "8210", "City": "AARHUS V", "Phone": "89885058", "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.