Odoo DHL eConnect Shipping integration

DHL eConnect Shipping Integration

DHL Parcel Connect and DHL Parcel International labels, returns, access points and customs data from your Odoo delivery orders.

DHL eConnectDHL eCommerce EuropeParcel ConnectParcel InternationalReturn labelsAccess pointsCustoms

What it does

DHL eConnect is the API of DHL eCommerce Europe for cross-border parcels. Add a delivery method of type DHL eConnect, enter the client ID and secret of your developer.dhl.com app and the customer ID DHL gave you at onboarding. When the warehouse validates a delivery order, Odoo sends one parcel per package to DHL and attaches the label to the transfer. Parcels that leave the EU customs union get their customs data sent right after, with HS codes, values and origin countries from the products. Customers can get a return label from the return transfer, and a parcel can go to a DHL access point instead of the door.

Who it is for

  • European webshops with a DHL eCommerce Europe contract. You ship across the EU on DHL Parcel Connect or to the rest of the world on DHL Parcel International. Validating a delivery books one parcel per package with DHL and attaches the label to the transfer in PDF, PNG or ZPL.
  • Shops that ship to the UK, Switzerland or Norway. Customs data goes with the parcel automatically when the address is outside the EU customs union, using each product's HS code, the incoterm DAP or DDP, the goods classification and your VAT, EORI or IOSS number. A CN23 document can be requested too.
  • Merchants who let customers send items back. Odoo's return flow can print a DHL Parcel Return Connect or Return International label from the original delivery, so returns use the same DHL contract.
  • Sellers offering parcel station or access point delivery. Enter the access point keyword, ID and address, and the postnumber for parcel stations, on the transfer. Leave them empty and the parcel goes to the door.

Features

LabelsDHL Parcel Connect or DHL Parcel International, one parcel per package, PDF, PNG or ZPL, 10x15 or 10x21 cm
Returnsreturn labels with DHL Parcel Return Connect or Return International
Access pointsparcelshops and parcel stations by keyword and ID, with the Postnumber for German stations
Customs datasent when the parcel leaves the EU customs union (or always): HS code, value, incoterm, goods type, EORI, VAT or IOSS
ServicesSEPA cash on delivery, bulky parcels, extra insurance A or B, your order barcode on the label
Reprintask DHL for the label again within 10 days
TrackingDHL unified tracking API every three hours, events, estimated and delivered date
PriceeConnect has no price call, so use your contract price as a fixed price or as Odoo price rules
API logevery call with status and timing; secrets and bank data masked

Setting it up

  1. Ask DHL eCommerce Europe for eConnect API access and note the client ID, client secret, customer ID and customer account number. Request a Shipment Tracking Unified API key on the DHL developer portal for tracking.
  2. Open Inventory > Configuration > Shipping Methods, create a method with provider DHL eConnect and fill in the credentials. Tick Demo Mode to try it with sample answers and no account.
  3. Choose DHL Parcel Connect or Parcel International, the return product, label format, size and resolution, and press Test Connection.
  4. Set the price as a fixed contract price or as price rules on weight, volume or order value, because eConnect has no rate call.
  5. Fill the services you use: bulky parcels, extra insurance A or B, and SEPA cash on delivery with the account holder, IBAN, BIC and bank name.
  6. For customs, set HS codes on your products and choose when customs data is sent, the incoterm and the sender customs ID type. Then validate a delivery and check Inventory > Operations > DHL eConnect Parcels.

DHL eConnect Shipping Integration: questions

Can I cancel a DHL eConnect parcel from Odoo?

Only inside Odoo. The eConnect API has no cancel call, so Cancel in Odoo marks the parcel cancelled here; if the label was already handed to DHL, contact DHL to stop it.

Is this the same as DHL Express?

No. It covers the DHL eCommerce Europe eConnect products (Parcel Connect, Parcel International and their returns). DHL Express and national DHL parcel services use other APIs.

How is tracking updated?

A job every three hours asks the DHL Shipment Tracking Unified API for the status of open parcels, and Update DHL Tracking on the delivery does it at once. Tracking events are listed on each parcel.

Can I print a label again?

Yes. Reprint Label asks eConnect for the label again, and Download Label opens the stored copy.

What does it need to run?

Odoo 19 Community or Enterprise with Inventory, delivery methods and Sales, plus the requests Python library. The sandbox host is used until the method is set to production.