DHLExpressglobalRESTActive

DHL Express MyDHL API (REST, global)

Modern REST surface for DHL's international express network. OAuth-style basic-credential header, separate sandbox account, and a JSON contract that is unrelated to DHL eCommerce or DHL Parcel DE.

MyDHL API is the JSON/REST surface for DHL Express, the time-definite international express business unit. It is the only DHL surface a developer should target for cross-border express shipments under DHL's air-network products. It is not the API for DHL eCommerce parcel delivery, DHL Parcel DE domestic Germany, or DHL Freight; each of those is a different business unit with a different developer portal, different credentials, and a different contract. Authentication uses HTTP Basic over TLS with an API username and password issued through the DHL Developer Portal. Tokens are not refresh-rotated; treat the credentials as long-lived secrets and rotate them through the portal when staff changes. Most operations require a DHL Express account number per origin country, which is sent in the request body rather than derived from the credentials. The most common operational gotchas are sandbox-versus-production drift on label PDFs, currency-aware rate responses that look identical but differ by surcharges, and idempotency: MyDHL API does not provide a server-managed idempotency key, so duplicate shipments are prevented at the integrator side using a deterministic correlation ID per logical operation. Webhooks for status updates are available through DHL's separate Shipment Tracking API and are not part of MyDHL itself.

Surface details

API name
MyDHL API
Authentication
HTTP Basic over TLS using API username and password
Production base URL
https://api-eu.dhl.com/mydhlapi
Sandbox base URL
https://api-mock.dhl.com/mydhlapi
Sandbox notes
Sandbox is a mock environment with a fixed test account. Production credentials are issued separately and require a customer account number per origin country.

Frequently asked questions

Is MyDHL API the same as the DHL eCommerce API?

No. MyDHL API serves DHL Express (international time-definite). DHL eCommerce Solutions has its own REST API, its own credentials, and a different shipment lifecycle.

Does MyDHL API use OAuth 2.0?

No. MyDHL API uses HTTP Basic authentication with an API username and password over TLS. There is no token endpoint and no refresh flow.

How do I deduplicate retries against MyDHL API?

MyDHL API does not provide a server-managed idempotency key. Generate a stable correlation ID per logical operation, store it before sending the request, and refuse to resend if the upstream response is unknown. Do not rely on the carrier to detect duplicates.

Related concepts

Sibling carrier surfaces

Tooling and references

Sources

Last reviewed: 2026-04-25