How to Configure DHL Carrier in Magento 2
With a big catalog of 234+ extensions for your online store
Integrating DHL Shipping Methods into your Magento 2 store, your customers are allowed to ask for anything to ship, from goods to letters and documents, and more. The DHL is the perfect solution to focus on customer’s demands and free you from worries of shipping risks caused by unprofessional work.
In this post, let’s find out what credentials you need to connect your Magento 2 store to the DHL server. Moreover, we will also guide you in details about other methods in the topics including UPS, USPS, and FedEx.
Read more about Shipping Method configuration in Magento 2
4 Steps to Configure DHL Carrier in Magento 2
- Step 1: Apply DHL
- Step 2: Setup the Packaging Description and Handling Fees
- Step 3: Assign Allowed Methods
- Step 4: Assign Applicable Countries
Step 1: Apply DHL
- On the Admin Panel, Stores > Settings > Configurations.
- On the left panel, under
Sales, select Shipping Methods. - Open the
DHLsection,- Accept to enable DHL method by choosing Yes in the
Enabled for Checkoutfield. - Enter the
Titlefor the name of the shipping method that is shown during the checkout process. - Enter
Gateway URLto calculate the DHL shipping rate. The default is ready to use, and you don’t need to change. - Complete UPS XML account information: Access ID, Password, and Account Number.
- Accept to enable DHL method by choosing Yes in the

Step 2: Setup the Packaging Description and Handling Fees
- From the
Content Typelist, choose one for the type of package you ship: “Documents” or “Non documents”. - Set the
Handling Feeas the following (optional)- Set
Calculate Handling Feeto “Fixed” or “Percent”. - In the
Handling Appliedfield, allow specifying how to calculate the handling fee. - Insert the amount of
Handling Fee. - In the
Divide Order Weightfield, choose “Yes” if you allow the total order weight to be broken up to ensure an accurate calculation of shipping charges. - Assign the
Weight Unitto the unit of measurement as you need: “Pounds” or “Kilograms”. - Determine the
Sizeof the typical package: “Regular” or “Specific”.
If you want to set a specific size, select
Specific, then enter theHeight,Depth, andWidthof the package in centimeters. - Set

Step 3: Assign Allowed Methods
- Choose the FedEx method offered to your customers from the
Allowed Methodlist. - Set the
Ready Timeto ship the order after submission. - Enter an error message in the
Displayed Error Messagebox that will appear if UPS Shipping is not available. - In the Free Method field, select the USPS service you want to apply free shipping for.
- In the
Free Shipping Amount Thresholdfield, select “Enable” to set the minimum number of the quantities for free USPS shipping in the next field.

Step 4: Assign Applicable Countries
- Set
Ship to Applicable Countriesto one of two options:- All Allowed Countries : USPS Shipping is supported for every country.
- Specific Countries: USPS Shipping is only supported for selected countries.
- Set
Show Method if Not Applicableto Yes if you want to show UPS Shipping all time. - To create a log file with the details of USPS shipments, set
Debugto “Yes”. - Set the
Sort Orderon the Shipping Method on the checkout page. Save Configto finish.

The bottom line
A good shipping carrier option can help effectively manage your orders and improve customers’ experience. DHL Carrier is a well-known shipping company who handles a large number of product types to different countries. Not only does it enable the standard shipping service, but it also calculates the shipping fee based on the parcel’s volume.
If you still have concerns about this tutorial or other shipping configuration issues, please leave comments below and we will be right back.
Related Post
Looking for
Customization & Development Services?
8+ years of experiences in e-commerce & Magento has prepared us for any challenges, so that we can lead you to your success.
Get free consultantRecent Tutorials
Change Store Email Addresses
Fix Magento 2 'Invalid Form Key. Please refresh the page'
Magento 2 Search Settings: Default Magento vs Mageplaza AJAX Search
Explore Our Products:
People also searched for
- dhl magento 2
- magento 2 dhl
- magento 2 dhl shipping
- dhl magento
- magento dhl
- magento dhl shipping
- dhl carrier
- dhl carrier setup
- magento handling fee
- magento dhl ship label
- dhl magento integration
- magento dhl integration
- dhl shipping methods
- dhl integration magento
- what is dhl shipping method
- dhl magento uk
- dhl account setup
- magento dhl uk
- 2.2.x, 2.3.x, 2.4.x
Stay in the know
Get special offers on the latest news from Mageplaza.
Earn $10 in reward now!
