How to connect MyDHL to ShippyPro
This guide walks you through connecting your MyDHL (DHL Express) account to ShippyPro. It explains every field in the connection window: what it means, whether you need it and where to find the value. Your credentials come from the DHL Developer Portal, and DHL has to approve your access first, so start with 1. Before you start. Once you have everything in the checklist, the connection takes a few minutes.
Overview:
1. Before you start
Register on the DHL Developer Portal
ShippyPro connects to DHL Express through DHL's MyDHL API. To use it you need an active DHL Express account and MyDHL API credentials, which you get from the DHL Developer Portal once DHL approves your access. If you don't have them yet, see Don't have your API credentials yet? below.
What you'll need
To connect MyDHL you need these three details. They may be called something different on DHL's side, so here is where to find each one. The other fields are explained in 2. Carrier's Configuration.
| Field in ShippyPro | Where to find it |
| API Key | On developer.dhl.com: open DHL EXPRESS - MYDHL API › your company name and click Show Key next to API Key. It is NOT the email you use to log in to MyDHL. |
| API Secret | Same place as the API Key: click Show Key next to API Secret. It is NOT your MyDHL login password. |
| Account Number (codice di abbonamento on DHL Express Italy invoices) | Printed on every DHL invoice and in DHL's welcome email. It is not your Developer Portal ID or the API Key. Can't find it? Your DHL account manager or sales representative has it. |
Don't have your API credentials yet? Request them from DHL
You request MyDHL API access yourself on the DHL Developer Portal. DHL approves it on its own timeline, so do this before you start connecting.
-
Go to APIs > Browse all services

-
Click on DHL Express - MyDHL API

-
Then on Get Access

-
Fill in your company data.
-
At "How would you like to use the API?" inside the DHL registration page, you should select the option "I require credentials to DHL Express – MyDHL API for an existing plugin/ecommerce platform/third-party solution" and simply add ShippyPro.
-
Concerning the section called "Requested Services", please tick over all the services available. The field named "Transaction volume per month" is only useful to DHL for statistics purposes, therefore it won't influence you on the use of the API.
-
After some hours you can check your DHL Developer profile where you should be able to see your App Status as approved.

-
Then, click on DHL EXPRESS – MYDHL API under App Name where you will Request Production Access on a red button. Once you click it, you will receive confirmation that the request has been sent within minutes and the local DHL team will need to approve it according to their timeline.
In case the request remains pending please contact DHL directly in order to speed it up.
-Apr-15-2024-09-04-40-6324-AM.png?width=670&height=329&name=image%2B(1)-Apr-15-2024-09-04-40-6324-AM.png)
Please also refer to DHL guide step-by-step guide here in case of questions or doubts
Start connecting MyDHL
- In the left menu, go to Integrations › Carriers and click + Add Connection.
- On Select a Carrier, search for MyDHL and click its logo. The connection window opens on Step 1: Credentials.
2. Carrier's Configuration
Once DHL has approved your production access, go to Integrations › Carriers, click + Add Connection and select MyDHL. Then fill in the fields as explained below.
⚠️ Match your contract. Select only the services and options agreed in your contract with DHL. Choosing something different here won't change your contract, and it may cause shipments to fail.
Step 1: Credentials
- API Key (required): on developer.dhl.com, log in using the link in DHL's "Production Access Approved" email, open DHL EXPRESS - MYDHL API › your company name and click Show Key next to API Key. It is NOT your MyDHL login email. Paste it without spaces.
- API Secret (required): shown in the same place as the API Key. Click Show Key next to API Secret. It is NOT your MyDHL login password. Paste it without spaces.
- Account Number (required): your DHL Express account number. It's printed on every DHL invoice (on DHL Express Italy invoices it's called codice di abbonamento) and in DHL's welcome email. It is not your Developer Portal ID or the API Key. Can't find it? Your DHL account manager or sales representative has it.
- Return Account Number (optional): the DHL account number used for returns. You only need it to print the return label together with the outbound label: fill it in here and tick Enable Return Label in the box in Step 2. For returns shipped separately, see Need more than one MyDHL connection?
- Test Mode (optional): works only with test (sandbox) credentials. For real shipments, leave it unticked.
⚠️ Getting "Invalid Credentials"? Check that:
- there are no spaces before or after the API Key and API Secret;
- you entered the API Key and API Secret, not the email and password you use to log in to MyDHL;
- DHL has enabled both Testing and Production for your app (My Apps › your app on the Developer Portal). If not, contact DHL.
Step 2: Service And Label
- Label Type: the file format of your labels. Pick the one that matches your printer:
- PDF A4: a PDF on A4 paper. Works with any office or home printer: cut the label out and attach it to the parcel.
- PDF A6: a PDF the size of an A6 label (about 10x15 cm), for A6 adhesive labels or a printer that takes that size.
- PDF 10x20: a 10x20 cm label (4x8 inch), the size DHL Express uses for its labels. Use it with a label printer that takes 10x20 cm labels.
- ZPL: for thermal label printers (e.g. Zebra) that print on rolls of adhesive labels, without ink. Your printer must support the ZPL language (check its manual or settings).
- ZPL 10x15
A return label in the box uses the same format. Not sure? Choose PDF A4.
-
Service Type: the DHL Express service used for your shipments. All Services shows rates for every service. Your DHL account manager can confirm which services are active on your contract. You can choose one service per connection: to use several specific services, create one connection for each.
- Nondoc services are for goods.
- Doc services are for documents only and can't be used for other physical items.
For the full list of services and their codes, see Services in section 3.
-
Enable Return Label in the box: creates the return label together with the outbound label, so you can put it in the parcel. It uses the same format as your Label Type. It needs the Return Account Number from Step 1, otherwise it won't work.
- Return Receiver Address: only works together with Enable Return Label in the box. Pick one of your saved addresses from the dropdown, and the return label in the box sends the parcel back to that address instead of your sender address. Leave it empty to receive returns at your sender address.
Configure Print Preferences: these settings are saved in your profile, not in the MyDHL connection. The link in Step 2 opens them in a new tab. There you choose your label page format and which documents print right after your labels, such as an items card, address card, packing slip, order summary or invoice.
Step 3: Additional Options
Everything in this step is optional. Leave a field empty or at its default unless your DHL contract includes the option.
- Local Product Code (default: Default): DHL identifies each service with a global product code (e.g. P for Express Worldwide) and a local, country-specific code. They are usually the same, so leave this empty unless DHL gave you a different local code for your service.
- Additional Shipping Days (default: Same Day): how many weekdays you need to prepare a shipment. DHL uses it to set the planned shipping date. It does not book a pickup (here's how to book one). Weekends and bank holidays are skipped automatically. Set it on every MyDHL connection you have.
📌 If you choose Same Day, ask DHL until what time you can create shipments each day. Shipments created after that time fail.
- International Shipments: three options for shipments that need customs documents:
- Paperless Trade: sends the commercial invoice to DHL electronically instead of attaching it to the parcel. It needs an invoice: either an ETD invoice uploaded on the order, or Generate invoice with DHL format ticked below. If neither is there, the shipment fails. To ship documents, use a connection with Paperless Trade off. More in International shipments paragraph.
- Generate invoice with DHL format: generates the invoice in DHL format and prints it together with the label. Don't combine it with an ETD invoice uploaded on the order: two invoices for one order cause an error.
- Invoice Type: appears once you tick Generate invoice with DHL format. Choose Commercial Invoice or Proforma Invoice.
- Add freight charges to commercial invoice: adds the shipping cost to the commercial invoice.
- Delivery Signature Option (default: No Signature Required): DHL asks the recipient to sign as proof of delivery. Check with your DHL account manager that it's enabled on your account and what it costs.
- GoGreen Plus (default: Do not use GoGreen Plus services): DHL GoGreen Plus. Select it only if your DHL contract includes it.
- Generate waybill document with DHL format (Archive Doc Label): generates the waybill document in DHL format.
-
- Extend label validity duration (Data Staging): extends how long the label stays valid, for when you don't know yet the date you'll hand the parcel to DHL. Mostly used for return labels; it adds RET to the label.
- Verified Delivery: an optional last-mile security service. The courier scans a unique QR code at delivery.
- Use HS code as inbound for non-EU shipments: for non-EU shipments, sends inbound HS codes (Harmonized System codes) in addition to the outbound ones, as the default for all shipments.
- Enable Cash-on-Delivery: tick it if you ship cash-on-delivery orders. By ticking it, you confirm you've read the note shown under it: tell your DHL contact that you will use cash on delivery.
Need more than one MyDHL connection?
One connection uses one service type. Create a separate MyDHL connection when you need:
- more than one specific service (for example Express Worldwide and Express 12:00);
- to ship documents: use a connection with Paperless Trade off;
- returns shipped separately from the outbound parcel: in the new connection, enter your Return Account Number in Account Number and your Account Number in Return Account Number (the opposite of your main connection), and leave Enable Return Label in the box unticked.
Repeat the steps above for each one.
3. Additional Features
Destinations
- National: Available
- International: Available
Features:
-
Label PDF: Available
-
Label PDF (dimensions): A4 & A6
-
Label ZPL: Available
-
Label EPL: Not Available
-
Track & Trace: Available
-
Paperless: Available
-
PickUp/DropOff (PUDO): Available
-
Cash On Delivery: Available
-
Live Rates: Available
-
Return Labels: Available
-
Return Labels (in the box): Available
-
Book/Schedule Pickup: Available
-
Address Check: Not Available
-
Carrier Options: Available
-
Proof Of Delivery (POD): Available
-
Insurance: Available
-
Multiparcel: Available
-
Delete Shipment (Void): Not Available
-
CloseOut: Not Available
-
CN22: Not Available
-
CN23: Not Available
-
Credentials Validation: Not Available
-
IOSS: Available
-
Dynamic sender: Available
-
After Ship ETD: Available
Services
|
Service Name
|
Service Code
|
|
All Services
|
ALL
|
|
ECONOMY SELECT NONDOC (ESI)
|
H
|
|
EXPRESS 9:00 DOC (TDK)
|
K
|
|
EXPRESS 9:00 NONDOC (TDE)
|
E
|
|
EXPRESS 10:30 DOC (TDL)
|
L
|
|
EXPRESS 10:30 NONDOC (TDM)
|
M
|
|
EXPRESS 12:00 DOC (TDT)
|
T
|
|
EXPRESS 12:00 NONDOC (TDY)
|
Y
|
|
EXPRESS DOMESTIC (DOM)
|
N
|
|
EXPRESS DOMESTIC 9:00 (DOK)
|
I
|
|
EXPRESS DOMESTIC 10:30 (DOL)
|
O
|
|
EXPRESS DOMESTIC 12:00 (DOT)
|
1
|
|
ECONOMY SELECT DOMESTIC (DES)
|
G
|
|
EXPRESS WORLDWIDE DOC (DOX)
|
D
|
|
EXPRESS WORLDWIDE NONDOC (WPX)
|
P
|
|
EXPRESS WORLDWIDE EU (ECX)
|
U
|
|
FREIGHT WORLDWIDE (FRT)
|
F
|
|
ECONOMY SELECT EU (ESU)
|
W
|
|
EXPRESS ENVELOPE DOC (XPD)
|
X
|
|
MEDICAL EXPRESS DOC (CMX)
|
C
|
|
MEDICAL EXPRESS NONDOC (WMX)
|
Q
|
|
EXPRESS JUMBO (WPX)
|
J
|
|
SAME DAY (SDX)
|
S
|
Carrier options
| Name | Slug | Type | Description |
|---|---|---|---|
| Saturday Delivery | saturday_delivery | checkbox | |
| Duties and Taxes Paid | duties_taxes_paid | checkbox | |
| Importer Of Record | importer_of_record | checkbox | |
| Dangerous Goods | dangerous_goods_contentid | select | Allows to specify the type of dangerous goods shipped. Supported values are listed in the table below. |
| Dangerous Goods 4-digit UN Code (Mandatory for Excepted Quantities) | dangerous_goods_uncode | text | To use with Dangerous Goods when the selection is "Excepted Quantities in accordance with IATA". |
| Dangerous Goods Weight in Kg (Mandatory for Dry Ice UN1845) | dangerous_goods_dry_ice_weight | text | To use with Dangerous Goods when the selection is "Dry Ice UN1845". |
| Dangerous Goods Custom Description (Max 200 chars) | dangerous_goods_custom_description | text | To use with Dangerous Goods. This description (max 200 chars) will replace the default label text of the selected Dangerous Goods. |
| Extended Liability | extended_liability | checkbox | |
| Shipment Insurance | shipment_insurance | checkbox | To use with Insurance Amount. |
| Neutral Delivery | neutral_delivery | checkbox | |
| Delivery Signature | delivery_signature | checkbox | |
| Go Green | go_green | checkbox | Adds FE service code and the logo. |
| EXW Only Duties and Taxes | exw_only_duties_taxes | checkbox | To use with Incoterm EXW. |
| Service Point ID | service_point_id | drop_off_point | |
| Receiver Registration Number Type | receiver_registration_number_type | select | To use with receiver_registration_number_value. Supported values: VAT, EIN, CNP, EOR, FED, SDT. |
| Receiver Registration Number Value | receiver_registration_number_value | text | To use with receiver_registration_number_type. |
| Signature Options | signature_options | select | Signature. Deprecates delivery_signature option. |
| Declaration Notes | declaration_notes | text |
Commercial Invoice declaration. |
| Verified Delivery | mydhlverified_delivery | checkbox |
|
|
Add Piece |
mydhladdpiece | text |
Add parcels to a master shipment |
|
Non Stackale pallet |
mydhlnon_stackable_pallet | checkbox |
|
Label design
-
PDF 10 x 20 - available for barcode and text
-
ZPL - available for barcode and text (Note: not available for ZPL 10x15)
For more info click here.
Service Point
If you wish to use myDHL's Service Point, you will need to contact your contact person to verify ODD service enablement (required to use this feature).Once ODD service is enabled, you will need to send the courier's technical department a screenshot of the Carrier Option where the Service Point is chosen, and request service enablement on the desired username.
The Service Point will never appear on the label, which is instead transmitted electronically to the carrier in charge of delivery.
Dangerous Goods
For each shipment containing Dangerous Goods you must insert the contentId of the shipped dangerous goods.
If the shipment contains Dry Ice UN1845 you must insert the weight of the transported dry ice.
If the goods are in Excepted quantities in accordance with IATA, you must insert also the UNCode of the dangerous goods, available here.
Dangerous goods supported by the MyDHL integration:
|
Name
|
Content id
|
Special service code
|
|
Biological substances UN3373
|
650
|
HY
|
|
Class 2 Division 2.1 Flammable gas
|
910
|
HE
|
|
Class 2 Division 2.2 Non-flammable, non toxic gas
|
910
|
HE
|
|
Class 2 Division 2.2 Non-flammable, non toxic gas
|
910
|
HE
|
|
Class 3 Flammable Liquids
|
910
|
HE
|
|
Class 4 Division 4.1 Flammable solids
|
910
|
HE
|
|
Class 4 Division 4.2 Substances liable to spontaneous combustion
|
910
|
HE
|
|
Class 4 Division 4.3 Substances (Dangerous when wet)
|
910
|
HE
|
|
Class 5 Division 5.1 Oxidizer
|
910
|
HE
|
|
Class 5 Division 5.2 Organic Peroxides
|
910
|
HE
|
|
Class 6 Division 6.1 Toxic Substances
|
910
|
HE
|
|
Class 8 Corrosives
|
910
|
HE
|
|
Class 9 Miscellaneous Dangerous Goods
|
910
|
HE
|
|
Consumer Goods ID8000
|
700
|
HK
|
|
Dry Ice UN1845
|
901
|
HC
|
|
Excepted quantities in accordance with IATA
|
E01
|
HH
|
|
Ion PI965 Section IA (LiBa)
|
911
|
HE
|
|
Ion PI965 Section IB (LiBa)
|
911
|
HE
|
|
Ion PI965 Section II (LiBa)
|
965
|
HB
|
|
Ion PI966 Section I (LiBa with equipment)
|
910
|
HE
|
|
Ion PI966 Section II (LiBa with equipment)
|
966
|
HD
|
|
Ion PI967 Section I (LiBa in equipment)
|
910
|
HE
|
|
Ion PI967 Section II (LiBa in equipment)
|
967
|
HV
|
|
Limited quantities to the limits of ADR
|
A01
|
HL
|
|
Metal PI968 Section IA (LiBa)
|
911
|
HE
|
|
Metal PI968 Section IB (LiBa)
|
911
|
HE
|
|
Metal PI969 Section I (LiBa with equipment)
|
910
|
HE
|
|
Metal PI969 Section II (LiBa with equipment)
|
969
|
HM
|
|
Metal PI970 Section I (LiBa in equipment)
|
910
|
HE
|
|
Metal PI970 Section II (LiBa in equipment)
|
970
|
HW
|
|
Perishable Cargo
|
P01
|
HG
|
Print Return Labels
If you’d like to print shipping and return labels together while you ship your orders (return label in the box), add your Account Number inside the "Account Number" field and your Return Account Number in the "Return Account Number" field. Then tick Enable Return Label in the box option at the bottom and confirm. Please note that the label format will be the one you chose for outbound shipments since it cannot be changed for return labels.
If you’d like to make Returns separately from the main shipment, you need to create a new MyDHL connection. This time, insert your Return Account Number in the "Account Number" field and your Account Number in the "Return Account Number" field. So basically, the exact opposite of the first set-up. Do NOT tick the Enable Return Label in the box option. Finally you can create your manual shipment for the Return: click here to learn how.

By selecting Fixed Return Receiver Address (Only for 'Enable Return Label in the box'), if Enable Return Label in the box option is checked and an address is selected from the dropdown menu, the labels in the box are redirected not to the sender address, but to the address set in the dropdown.
You can add and edit the available address at any moment from Admin > My Addresses and parcels > My addresses
Default amount of additional weekdays required to prepare the shipments
This information is used by DHL to find out the planned date of shipment, but it is not equivalent to a pickup request (here how to do). The default amount of days required is 1 day, you can change it as you please by selecting the number of required days. The system will automatically skip bank holidays and weekends in the required days count.
📌 Make sure to do this on all your MyDHL connections, even though you might use only one service.
📌 If you choose "same day" ask DHL until what time you can create shipments, otherwise you may get an error.
International shipments
Generate invoice with DHL format
This option will allow you to automatically generate your invoices for international shipments. You can choose among proforma and commercial invoice.
By selecting this option the invoice will be generated together with the shipping label!
Paperless Trade
You can decide to enable the Paperless documentation option by ticking "Paperless Trade" in Carriers > MyDHL > Edit. In this case, you will need to digitally transmit to the carrier an invoice by uploading your ETD invoice inside the order before shipping it, via UploadPaperlessDocumentation API call or requesting to DHL the generation of an invoice with their format (in this case, please read the next points).
It is also possible to upload the Customs declaration type inside the order and decide to enable the option Generate Invoice with DHL format from Carriers > MyDHL > Edit.
It is important to that to note that you'll need to select the correct typology when uploading your documentation, for example, "Customs Declaration".
If you select both Generate Invoice with DHL format and Paperless options from Carriers > MyDHL > Edit, as well as upload the Customs Declaration inside the order, both the commercial invoice and customs declaration will be electronically transmitted to the carrier.
Some practical examples:
-
the option "Paperless Trade" is enabled, but neither the ETD is uploaded for a specific order, nor the option "Generate Invoice with DHL format" is enabled: we will return an error because you're requesting to send a paperless invoice, but no invoices are associated with that order
-
both "Generate Invoice with DHL format" and Paperless options are enabled: in this way, you are requesting DHL to generate an invoice and to send it digitally without having to physically attach the invoice to the package (Paperless Trade)
-
both ETD document is uploaded, and the option "Generate Invoice with DHL format" is enabled: we will return an error because you are asking to transmit 2 different invoices for a single order
-
You didn't flag the "Paperless Trade" option, but still proceeded with uploading the document via the "UploadPaperlessDocumentation" call or inside the order - the documentation will still be transmitted to the carrier in Paperless mode.
In case you need to ship documents (hence to ship non-dutiable cargo), you will have to do so from a connection with the “Paperless Trade” option disabled and enter “documents” in the content description field: this way the shipment will be set to non-dutiable.
Windsor Framework
For more information, click here
Add Piece for multiparcel shipments
MyDHL Add Piece service aggregates parcels based on the AWB (shipment number) generated in the initial shipment, enabling customers to manage multi-parcel shipments more flexibly.
This service requires a DHL account-specific enablement per username. Contact your DHL representative for this request.
Here you will find the steps for the Add Piece procedure in order to add multiple parcels to a single shipment created previously and not yet handed over to the carrier:
1. Master Shipment (First Parcel)
Set the mydhladdpiececarrier option with isMaster: true to create the initial shipment that remains in "open" state without specifying total parcel count. The API returns an AWB that must be saved and tracked.
{ "CarrierOptions": [ { "name": "mydhladdpiece", "value": "{\"isMaster\":true}" } ] }
2. Subsequent Parcels (Intermediate Packages)
Always specify the main shipment's AWB in the carrier option when adding parcels. Each added parcel receives a unique PackageTrackingNumber (PTN), while the AWB remains the same for all parcels in the shipment.
{ "CarrierOptions": [ { "name": "mydhladdpiece", "value": "{\"awb\":\"<masterAwb>\",\"date\":\"2026-05-26\"}" } } ] } 3. Shipment Closure (Last Parcel)
Set isLast: true to close the shipment automatically. The total parcel count is printed on the last parcel's label.
{ "CarrierOptions": [ { "name": "mydhladdpiece","value": "{\"awb\":\"<masterAwb>\",\"date\":\"2026-05-26\", \"isLast\":true}" } } ] }
4. Errors & troubleshooting
While trying to connect MyDHL or while shipping your orders, you might experience some errors. No panic! For more information on how to solve them, please consult our following guides:
What you can do with MyDHL in ShippyPro
Here's what the MyDHL integration supports in ShippyPro.
- Features: Drop-off and pickup points, Customs documents, Cash on delivery, Live rates, Return labels, Return label in the box, Pickup booking, Proof of delivery, Insurance, Multi-parcel shipments, Tracking, Electronic trade documents (ETD)
- Label formats: ZPL, PDF
- Service types: ALL SERVICES, ECONOMY SELECT NONDOC (ESI), EXPRESS 9:00 DOC (TDK), EXPRESS 9:00 NONDOC (TDE), EXPRESS 10:30 DOC (TDL), EXPRESS 10:30 NONDOC (TDM), EXPRESS 12:00 DOC (TDT), EXPRESS 12:00 NONDOC (TDY), EXPRESS DOMESTIC (DOM), EXPRESS DOMESTIC 9:00 (DOK), EXPRESS DOMESTIC 10:30 (DOL), EXPRESS DOMESTIC 12:00 (DOT), ECONOMY SELECT DOMESTIC (DES), EXPRESS WORLDWIDE DOC (DOX), EXPRESS WORLDWIDE NONDOC (WPX), EXPRESS WORLDWIDE EU (ECX), FREIGHT WORLDWIDE (FRT), ECONOMY SELECT EU (ESU), EXPRESS ENVELOPE DOC (XPD), MEDICAL EXPRESS DOC (CMX), MEDICAL EXPRESS NONDOC (WMX), EXPRESS JUMBO (WPX), SAME DAY (SDX)
- Countries: All countries
💡 Missing something? If you need a service or feature that isn't listed here, or would like more information, get in touch with us: we're here to help and can look into adding what you need.