DHL Express Developer Guide & API Credentials

This developer guide shows how to access DHL shipping API via Postmen, and DHL Express web services / XML services. See also the list of required API credentials/keys for DHL integration.

Get DHL Developer Credentials

  1. First, you will need to register on DHL Express XML Developer Portal.
  2. When registering please make sure to indicate that you are using AfterShip in the field titled, “Describe the application and business process where XML Services will be used.”
  3. DHL will provide DHL XML- PI toolkit (Developer guide), and API credentials for both Sandbox and Production environment:   Site ID and Password.
  4. It takes around 24 hours for the API credentials to be activated.

Required DHL API credentials

Credentials Environment Description
account_number Sandbox / Production Your DHL Shipper account number. 
site_id Sandbox / Production API credentials to access DHL XML service and Postmen API.
password Sandbox / Production API credentials to access DHL XML service and Postmen API.

Optional DHL credential

Show account on invoice: The possible values for this field are - YES or NO. If not specified, it will be set as NO by default. If this field is set as YES,  the WayBill DOC will display payer's details. 

Please note: DHL will print WayBill DOC only if the value of field "service_options.paperless_invoice" is not set or is set as false. 

DHL Developer Resources

Was this article helpful?
2 out of 3 found this helpful