DHL Express Developer Guide & API Credentials
Overview
This developer guide outlines how you can access DHL shipping API via AfterShip Shipping, and DHL Express web services and XML services. The guide also provides the list of required API credentials/keys for DHL integration.
Get DHL Express Developer Credentials (new, MyDHL API)
- Register for an account on DHL developer portal and Get access for DHL Express - MyDHL API .
- Follow the DHL User Guide to set up your developer app and work with your DHL account manager to enable the production access.
- Search for the User Guide section for details.
- If you already have a DHL Express Account number, click here to Get Access.
You will be redirected to a new page to input necessary on-boarding request details. Check with your DHL account manager if you have no idea how to fill in the information.
- After submission, you can see a new App with name DHL EXPRESS auto created, similar as below.
- Click the app name to find your app's API Key and API Secret as the API credentials.
- Click Request Production Access , check the statement and Submit your request. Check with your DHL account manager to enable the production access.
- Find your app's API Key, API Secret and input them along with your Account number in AfterShip Shipping.
Required DHL API credentials
****
- Account number
- API key
- API secret
Get DHL Express Developer Credentials (Legacy, XML API, deprecated in late 2024)
- 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 including, the
Site ID
andPassword
. - It takes around 24 hours for the API credentials to be activated.
Required DHL API credentials
****
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.
DHL Express Developer Resources
- Read DHL Express docs
- Supported DHL Express service types and service options
- AfterShip Shipping DHL technical support:
support+shipping@aftership.com
Updated on: 25/03/2025