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.
- OpenAPI / REST reference
- https://developer.dhl.com/api-reference/dhl-express-mydhl-api
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
- DHL eCommerce Solutions Americas API (REST)
- DHL Post & Parcel Germany API (REST, Germany)
- DHL Freight API Farm (REST, Sweden)
Tooling and references
- DHL Developer Portal — MyDHL API (Express)
DHL Express MyDHL API REST reference. Distinct product from DHL eCommerce and DHL Parcel DE. HTTP Basic over TLS.
Sources
Last reviewed: 2026-04-25