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.
IN THIS ARTICLE
Get DHL Developer Credentials
- First, you will need to register on DHL Express XML Developer Portal.
- 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.”
- DHL will provide DHL XML- PI toolkit (Developer guide), and API credentials for both Sandbox and Production environment:
Site ID
andPassword
. - 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
- Read DHL Express API docs
- Supported DHL Express service types
- Postmen DHL technical support:
support@aftership.com