Site Logo

🎉 ShipEngine is becoming ShipStation API 🎉

Over the next few months you'll notice the ShipEngine website, documentation portal, and dashboard being rebranded as ShipStation API. For our ShipEngine customers, you don't need to take any action or change any of your integrations in any way. All endpoints will remain the same and continue to function as they always have.

To learn more about what's coming, review our New ShipStation API page.

DHL Express MyDHL API

DHL Express MyDHL API offers both domestic and international services for shipping to and from destinations worldwide.

This guide provides developers with the details needed to build DHL Express MyDHL API shipping capabilities into your ShipEngine workflows.

Requirements

PropertyTypeRequired?Description
nicknamestringrequiredUsed to identify your account in ShipEngine
dhl_shipper_numberstringrequiredYour DHL Shipper Account Number
dhl_payer_numberstringOptionalYour DHL Payer Account Number
dhl_duties_taxes_numberstringOptionalYour DHL Duties Taxes Account Number
api_keystringrequiredYour DHL account API key
api_secretstringrequiredYour DHL account API secret
dhl_location_finder_api_keystringOptionalYour DHL Location Finder API Key

Shipping Requirements

  • All shipments require both weight and dimensions.

Connect Account

You can connect a DHL Express MyDHL API account using the POST method to the /v1/connections/carriers/ endpoint, or via the ShipEngine Dashboard.

Connect via Endpoint

carrier_name: dhl_express_mydhl

POST /v1/connections/carriers/:carrier_name

Sample request:

1
2
3
4
5
6
7
8
9
10
11
POST /v1/connections/carriers/dhl_express_mydhl HTTP/1.1
Host: api.shipengine.com
API-Key: __YOUR_API_KEY_HERE__
Content-Type: application/json
{
"nickname": "My DHL Express MyDHL API account",
"dhl_shipper_number": "123456789",
"api_key`": "1234-abcd-5678-efgh-0129",
"api_secret": "my-api-secret"
}

A successful connection will return a response with the carrier_id, which you'll use for any requests for this account going forward.

Connect via Dashboard

Steps to connect via dashboard coming soon!

Rates

DHL Express MyDHL API supports rate shopping with ShipEngine.

Service Details

Available DHL Express MyDHL API services are provided below. Please note that carriers may update their available services at any time. To ensure you are always using valid services, you can use the list carrier services endpoint at any time.

Domestic Services

ServiceAPI Code
DHL Domestic Express 09:00 - Service Pointdhl_express_mydhl_domestic_express_09_service_point
DHL Domestic Express 09:00dhl_express_mydhl_domestic_express_09
DHL Domestic Express 12:00 - Service Pointdhl_express_mydhl_domestic_express_12_service_point
DHL Domestic Express 12:00dhl_express_mydhl_domestic_express_12
DHL Domestic Express - Service Pointdhl_express_mydhl_domestic_express_service_point
DHL Domestic Expressdhl_express_mydhl_domestic_express

International Services

ServiceAPI Code
DHL Economy Select (nondoc) - Service Pointdhl_express_mydhl_economy_select_nondoc_service_point
DHL Economy Select (nondoc)dhl_express_mydhl_economy_select_nondoc
DHL Express 09:00 (doc) - Service Pointdhl_express_mydhl_express_09_doc_service_point
DHL Express 09:00 (doc)dhl_express_mydhl_express_09_doc
DHL Express 09:00 (nondoc) - Service Pointdhl_express_mydhl_express_09_nondoc_service_point
DHL Express 09:00 (nondoc)dhl_express_mydhl_express_09_nondoc
DHL Express 10:30 (doc) - Service Pointdhl_express_mydhl_express_1030_doc_service_point
DHL Express 10:30 (doc)dhl_express_mydhl_express_1030_doc
DHL Express 10:30 (nondoc) - Service Pointdhl_express_mydhl_express_1030_nondoc_service_point
DHL Express 10:30 (nondoc)dhl_express_mydhl_express_1030_nondoc
DHL Express 12:00 (doc) - Service Pointdhl_express_mydhl_express_12_doc_service_point
DHL Express 12:00 (doc)dhl_express_mydhl_express_12_doc
DHL Express 12:00 (nondoc) - Service Pointdhl_express_mydhl_express_12_nondoc_service_point
DHL Express 12:00 (nondoc)dhl_express_mydhl_express_12_nondoc
DHL Express Worldwide (doc) - Service Pointdhl_express_mydhl_express_worldwide_doc_service_point
DHL Express Worldwide (doc)dhl_express_mydhl_express_worldwide_doc
DHL Express Worldwide (nondoc) - Service Pointdhl_express_mydhl_express_worldwide_nondoc_service_point
DHL Express Worldwide (nondoc)dhl_express_mydhl_express_worldwide_nondoc
Economy Select EU - Service Pointdhl_express_mydhl_economy_select_eu_service_point
Economy Select EUdhl_express_mydhl_economy_select_eu
Express Worldwide EU - Service Pointdhl_express_mydhl_express_worldwide_eu_service_point
Express Worldwide EUdhl_express_mydhl_express_worldwide_eu

Shipping from Great Britain to Northern Ireland

DHL Express MyDHL API will support the B2B movement types for shipping from Great Britain to Northern Ireland, in accordance with the Windsor Framework.

Details about data requirements for DHL Express MyDHL API shipments to Northern Ireland are coming soon.

Return Services

DHL Express MyDHL API does not currently support support creating return labels.

Packages

The following carrier package types are available for DHL Express MyDHL API services:

NameAPI CodePackage Attributes
3BXdhl_express_mydhl_3bxInternational, Domestic
2BCdhl_express_mydhl_2bcInternational, Domestic
2BPdhl_express_mydhl_2bpInternational, Domestic
CE1dhl_express_mydhl_ce1International, Domestic
7BXdhl_express_mydhl_7bxInternational, Domestic
6BXdhl_express_mydhl_6bxInternational, Domestic
4BXdhl_express_mydhl_4bxInternational, Domestic
2BXdhl_express_mydhl_2bxInternational, Domestic
1CEdhl_express_mydhl_1ceInternational, Domestic
WB1dhl_express_mydhl_wb1International, Domestic
WB3dhl_express_mydhl_wb3International, Domestic
XPDdhl_express_mydhl_xpdInternational, Domestic
8BXdhl_express_mydhl_8bxInternational, Domestic
5BXdhl_express_mydhl_5bxInternational, Domestic
WB6dhl_express_mydhl_wb6International, Domestic
TBLdhl_express_mydhl_tblInternational, Domestic
TBSdhl_express_mydhl_tbsInternational, Domestic
WB2dhl_express_mydhl_wb2International, Domestic

Adding Shipment Insurance

DHL Express MyDHL API supports adding carrier insurance to shipments created in ShipEngine.

Review our insurance page for details on adding insurance to your shipments.

Label Support

  • Label sizes: 4" x 6"
  • Label formats: PDF, PNG, ZPL
  • Supports unicode characters: no

Label Reference Fields

DHL Express MyDHL API supports adding custom label messages.

Label messages map in the following way:

  • labelMessage1: reference1
  • external_shipment_id: reference2
  • packages[].content_description: reference3

Multi-Package Labels

DHL Express MyDHL API supports creating multi-package shipments with all available services.

See our Multi-Package Shipping page for details about creating multi-package labels.

Label Branding

DHL Express MyDHL API supports label branding.

Voiding Labels

DHL Express MyDHL API does not support voiding labels in ShipEngine.

Paperless Labels

DHL Express MyDHL API does not support paperless labels.

Customs Declarations

DHL commercial invoices are available to download from the forms_download object in the label response.

Delivery Confirmation

Confirmation TypeAPI CodeDescription
No confirmation requirednoneNo confirmation requested.
Signature requiredsignatureSignature is required for the shipment to be delivered. This signature may be a neighbor, building manager, or the recipient can authorize the release of the package (without being present).

See our Delivery Confirmation page for more details about using the confirmation property.

Advanced Options

DHL Express MyDHL API supports certain advanced options, which you can add to the shipment object when creating a shipment or label.

OptionTypeDefault ValueDescription
dry_icebooleanfalseIndicates the shipment includes dry ice. Used in conjunction with the dry_ice_weight object.
saturday_deliverybooleanfalseIndicates that the carrier should charge for delivery on Saturday for services that do not otherwise include saturday delivery.

To ensure you always have the most up-to-date information about a carrier's advanced options, use the list carrier options call.

Manifests

DHL Express MyDHL API does not require manifesting your shipments.

Scheduling Pickups

DHL Express MyDHL API does not support scheduling pickups using ShipEngine.

Service Points (PUDO)

DHL Express MyDHL API supports shipping to service points with their "Service Point" specific services.

When shipping to service points:

  • The date should not be a past date or a date more than 10 days in the future.
  • The time is the local time of the shipment based on the shipper's time zone.

See our Intro to Service Points for more details about how to use service points with ShipEngine.

Tracking

ShipEngine's integration with DHL Express MyDHL API supports receiving tracking updates. Review our ​Track a Package guides​​ for details on tracking with the ShipEngine API.

Disconnecting Your DHL Express MyDHL API Account

See the Disconnect section in our Delete a Carrier page for the process of deleting or disconnecting a carrier from ShipEngine.