DHL Express Shipping (MyDHL API)

Ship with DHL Express from Odoo: account rates at checkout, labels in PDF or ZPL, customs declaration with the DHL commercial invoice, pickup booking, proof of delivery and automatic tracking updates through the MyDHL API.

Buy on the Odoo App StoreThe catalogue

What it does

Adds DHL Express as a provider for Odoo shipping methods. At checkout the customer sees your DHL Express account rate for the product you chose. When a delivery order is validated, DHL Express creates the waybill with one piece per package, and the label is attached to the transfer.

Shipments leaving the EU customs area carry the export declaration (one line per product with HS code, country of origin, quantity, value and weight) and DHL Express returns the commercial invoice. Tracking is updated on a schedule; every DHL Express call is written to a history.

Demo video

The video loads from YouTube (privacy-enhanced mode) when you press play. Watch on YouTube

Features

FeatureWhat it does
RatesYour DHL Express account price for the chosen product, converted into the order currency; or a fixed price, or pricing rules.
LabelsOne piece per package; PDF or ZPL, label template of your choice, optional waybill document.
CustomsFor destinations outside the EU customs area (or always / never): export lines from the products, incoterm and export reason; the commercial invoice comes back from DHL.
PickupOptionally book a DHL Express courier with every shipment; the pickup is cancelled again when the shipment is cancelled.
ChecksCheck with DHL Express before the label is created, and an address check for the recipient.
TrackingEvents on a schedule, with a chatter note on delivery or a delivery problem; a button for an immediate update.
Proof of deliveryDHL's proof-of-delivery PDF attached to the transfer on request.
SecurityCredentials visible to administrators only and never logged; shipment records can only be changed by the integration and administrators; answers from DHL Express are size-limited and type-checked.

Setup

  1. Inventory > Configuration > Shipping Methods > New, provider DHL Express (MyDHL API).
  2. As an administrator, on the DHL Express tab: the MyDHL API key and secret from DHL Express and your DHL Express account number. Leave Production off to work against the DHL test environment first.
  3. Click Test Connection (an address check of your warehouse; nothing is created).
  4. Choose the product, the price (DHL Express rate, fixed price or pricing rules), the label format and template, and the customs settings (incoterm, export reason).
  5. Give the warehouse address and your recipients a phone number: DHL Express requires one.

Requirements

  • Odoo 17, 18, 19 or 20, Community edition
  • Odoo apps: Delivery, Discuss
  • Python requests on the Odoo server

What it does not do

  • Cancelling a waybill at DHL Express: the MyDHL API has no such call. Cancel marks it cancelled in Odoo and cancels the booked pickup.
  • Landed cost, separately booked pickups, paperless trade uploads, add-piece, service points, value-added services (insurance, dangerous goods), return labels.
  • EPL / LP2 label printers and imperial units.

Tests

Automated tests, last run
OdooTests passedLast run
1768
1868
1968
2068

The tests ship with the module source, so you can run them on your own server.

Questions

Do I need a DHL Express account?

Yes: an active DHL Express customer account and MyDHL API access (key and secret), which DHL Express provides.

Which price does the customer see?

With "DHL Express rate", the price DHL Express quotes for your account (billing currency) for the product chosen on the shipping method, converted into the order currency. You can add Odoo's margin on top, or use a fixed price or pricing rules instead.

When is a customs declaration sent?

By default when sender and recipient are not both in the EU customs area; the setting can also be "always" or "never". Products need a country of origin; the HS code is sent when set.

Can I cancel a shipment?

The MyDHL API has no shipment cancellation. Cancel in Odoo cancels the pickup booked with the shipment and marks the waybill cancelled; do not hand the parcels over.

Can I test without shipping real parcels?

Yes: leave Production off to use the DHL Express test environment (DHL allows 500 calls a day there).

Questions about the module?

Tell us your carrier account and Odoo version. We reply within one business day.

Contact us [email protected]