For the complete documentation index, see llms.txt. This page is also available as Markdown.

DHL

Gsped code list

Service
Courier code
Service code
Notes

Domestic Express

104
0

Domestic

Domestic Express H12

104
1

Domestic

Domestic Express H10:30

104
2

Domestic

Domestic Express H9

104
4

Domestic

Express Worldwide H12

104
7

International

Economy Select

104
8

International

Express Worldwide

104
9

International

Express Worldwide H9

104
10

International

Medical Express

104
20

Domestic / International

DHL ICS2 (CIN)

For non-EU shipments the courier requires the following to be set in the Shipment call:

Additional Charges

You can define values that are not related to the actual value of the goods, such as shipping costs, packaging costs etc. To pass them to DHL you must fill in the additional_charges section; below is the full list of available fields:

Sales invoices

You can send the Shipper's invoice data (for now only the VAT number / tax code) to the courier by setting the fattura_dhl field as follows

Third-party billing

For DHL you can give a third party's client codes to charge them the shipping costs and/or the customs duties.

Below are some example payloads to use in the various cases:

Shipping costs and customs duties to a third party:

Shipping costs to a third party:

Customs duties to a third party:

Customs codes for international shipments

For international shipments where the goods are subject to customs checks, you may need to give specific codes used by customs, such as the ITN code for export shipments from the United States.

Each code to give to the courier consists of two pieces of information: the code type (what it corresponds to) and its value.

Here is an example of the payload to use:

Below is the list of codes accepted by the courier:

  • ACL -> Parent Shipment ID for BBX

  • CID -> Customer Identifier

  • CN -> Contract Number

  • CU -> Consignor reference number

  • ITN -> US Export declaration reference ID

  • MRN -> Movement Reference number

  • UCN -> Unique reference of a consignment (UCRN)

  • OID -> Order Number

  • PON -> Purchase Order Number

  • RMA -> RMA Number

  • AAM -> AWB Ref #

  • ABT -> Goods Declaration number

  • ADA -> Buyer Reference number

  • AES -> AES Post Clearance

  • AFD -> 1496 Item number

  • ANT -> Consignee Reference number

  • BKN -> Booking Number

  • BOL -> Bill of Lading Number

  • CDN -> Customs Declaration number

  • COD -> Cash On Delivery

  • DSC -> Weltpaket Reference

  • FF -> Freight forwarder's reference number

  • FN -> Freight bill number

  • FTR -> Post Clearance Exemption US

  • HWB -> Shipment Identifiers

  • IBC -> Inbound center reference number

  • IPP -> Insurance Policy Provider

  • LLR -> Load list reference

  • MAB -> Master Airwaybill Number

  • MWB -> MAWB Reference number

  • NLR -> ECCN - No License Required indicator (NLR)

  • OBC -> Outbound center reference number

  • PD -> Vendor Reference Number

  • PRN -> Pickup request number

  • RTL -> Return Leg waybill number

  • SID -> Shipment ID 15 Digit CODA

  • SS -> Seller Reference number

  • SWN -> Original Waybill number (Return)

Go Green Plus service

Low-emission transport services, enabled by sustainable aviation fuel.

Adult Signature service

DHL will require a delivery signature from an adult at the agreed delivery address.

Direct Signature service

DHL will obtain the signature from the recipient or from a representative at the delivery address. If nobody is at the delivery address, DHL will attempt delivery again. The Direct Signature service ensures that your shipments cannot be redirected, left in a mailbox or left with a neighbour.

Proactive Tracking

Monitoring of your shipment's transit, with real-time incident and delivery notifications.

Editing a shipment (Shipment PATCH)

Adding an electronic document to a shipment

To upload documents later, i.e. after the shipment has been created, you must state it explicitly when creating the shipment with the Shipment POST, because the courier needs to know that documents will be uploaded later for a specific shipment.

The parameter to use is uploadDocAfterwards, and it goes inside the courierData field.

Here is the documentation:

https://apidocs.gsped.com/gsped-api-english-version/spedizioni-e-dintorni/shipment/shipment-objects/courierdata/uploaddocafterwards

Barcode on the label

DHL lets you put a barcode on the label.

Payload to use when creating the shipment:

Where:

  • barcodeType: Barcode type. Allowed values --> 39, 93 and 128

  • barcodeContent: Content that will be shown as a barcode

  • textBelowBarcode: This field is optional and is the text that will be shown below the barcode.

WARNING:

In multi-parcel shipments, the barcode will be shown on all labels (you cannot have a different code for each of them)

WARNING:

If you use ZPL labels, keep in mind that with this feature the labels provided by the courier will be in 10x20 CM format

Label-Free / Label-Less shipments

DHL lets you create shipments that do not require a label: the courier will not return a label, but a QR Code that the sender must show when handing over the parcel to be shipped at the DHL service point.

This type of service is very useful for returns, where the end customer can essentially bring their package to the service point and, by showing the QR code on their phone, drop off the parcel to be shipped or returned without having to print the label at home.

The shipment creation request through Shipment must include the following:

Here is an example of the returned QrCode: