Introduction
UltraCart integrates with DHL through two different APIs:
-
DHL Express
-
DHL eCommerce.
This guide walks you through the setup process, enabling you to configure DHL shipping methods, distributor center settings, and item-level customs information.
Prerequisitesβ
Before configuring DHL in UltraCart, youβll need the following:
-
A DHL Express Site ID and Password (for DHL Express integration).
-
A DHL eCommerce Client ID and Client Secret (for DHL eCommerce integration).
-
An active DHL account with billing details.
-
Access to the UltraCart Configuration β Checkout β Shipping settings.
Obtain your credentials from your DHL Representative.
Which DHL API Should You Use?β
- DHL Express: Requires Site ID and Password. Recommended for international and time-sensitive shipments.
First things first, youβll need a Site ID and Password from DHL Express. Here are their instructions:
Each UltraCart user will need their own credentials.
To obtain credentials to access the DHL Express XML PI web service, registration on our XML Portal is required: https://xmlportal.dhl.com/login
Once the registration is complete, the test credentials will provided. Once approved, production credentials will be provided by the next business day. Please request that the user enter "UltraCart" in the field marked "Describe the application and business process where XML Services will be used.β
- DHL eCommerce: Requires Client ID and Client Secret. Recommended for domestic and economical parcel shipping.
DHL Express Shipping Methodsβ
-
ECONOMY SELECT
-
EXPRESS 9:00
-
EXPRESS 10:30
-
EXPRESS 12:00
-
EXPRESS EASY
-
EXPRESS WORLDWIDE
DHL eCommerce Shipping Methodsβ
Domestic
-
DHL SmartMail Parcel
-
DHL SmartMail Parcel Plus
-
DHL SmartMail Parcel Return
-
DHL SmartMail Bound Printed Matter
-
DHL SmartMail Flats
International
-
DHL Parcel International
-
DHL Parcel International Standard
-
DHL Parcel International Direct
Setting up DHL requires six major stepsβ
-
Get a DHL Express Site ID and Password. See the green instructions above.
-
Main shipping screens
-
Enabling DHL shipping methods
-
Distributor center specific screens (optional)
-
Item screens
-
Customer profile screens (optional)
Main Settings
The main DHL settings are found in the carrier settings for DHL.
Navigate to the DHL carrier settings:
Home β Configuration β Checkout β Shipping β Carriers β DHL

DHL has two APIs for its shipping methods, DHL eCommerce and DHL Express. They are managed by different parts of the DHL organization and require different sets of credentials. You may need one or both, depending on the shipping methods you want to use.
The credential and sender settings appear twice, once under Production Environment and once under Test Environment. The Web Service Environment setting and the three account numbers appear once, above those columns.
| Field | Description |
|---|---|
| Web Service Environment | production or test |
| Shipper Account Number | This account pays for normal shipping. |
| Billing Account Number | This account pays for freight charges. |
| Duty Account Number | This account pays for duty charges when Terms of Trade is DDP. Defaults to the Shipper Account Number if blank. |
| Shipping Payment Type | Shipper, Recipient, or Third Party |
| Use DHL Invoice | You should use DHL invoices unless you have special needs. |
| Use Paperless Trade | Unless you have a compelling reason, you should use Paperless Trade. This allows DHL to file customs invoices electronically. |
| DHL eCommerce Client ID | Contact your DHL eCommerce representative for the Client ID and Secret. |
| DHL eCommerce Client Secret | Contact your DHL eCommerce representative for the Client ID and Secret. |
| DHL Express Site ID | Provided by DHL Express with the password. |
| DHL Express Password | Provided by DHL Express with the Site ID. |
| Sender Company | |
| Sender Person Name | |
| Sender Address Line 1 | |
| Sender Address Line 2 | |
| Sender City | |
| Sender State | |
| Sender Postal Code | |
| Sender Country | |
| Sender Phone Number | |
| Sender Phone Extension (optional) | |
| Sender Fax Number (optional) | |
| Sender Telex (optional) | |
| Sender Email (optional) | |
| Terms of Trade |
|
| ITN | An ITN number is only required for single commodity items over $2,500. See: https://www.irs.gov/individuals/individual-taxpayer-identification-number |
| Label Size | Options are 6X4_PDF and 8X4_PDF. |
UltraCart also integrates with AfterShip.com, which provides automated tracking updates to your customers. If you have an AfterShip.com account, enter your AfterShip API Key at the bottom of the DHL screen.
Enabling DHL Shipping Methods
Home β Configuration β Checkout β Shipping β Methods
-
Navigate to the Shipping Methods screen via the above route.
-
Click the
New Methodbutton. -
Within the βAll Shipping methods forβ drop down box, select DHL.
-
Click the
Continuebutton.
Distributor Center Settings
Home β Configuration β Checkout β Shipping β Distribution Centers β click Edit for your distribution center
Distributor Center settings are exactly the same as the main DHL settings. They allow a DC to have its own DHL specific information.
The DHL settings are contained on their own tab. Be aware, this tab is not displayed until DHL shipping methods are enabled (prior section).
Refer to the main section for field definitions.
Item Settings
The Customs information is located on the item editor screens within the Shipping tab (vertical) and the Customs Information tab (horizontal).

| Field | Description |
|---|---|
| Country of Origin | |
| Customs Form Description | 75 characters maximum |
| Customs Value | |
| HTS Commodity Code | (DHL Express strongly recommends supplying this to avoid customs delays) See Harmonized Tariff Schedule for code reference |
Customer Settings
The customer edit screen provides two additional fields to override settings on a per customer basis.
They are:
-
DHL Account Number
-
DHL Duty Account Number
If you wish a customer to use either of these during their purchase, just fill in those fields.