Skip to main content
The DHL Express connector lets your workflows quote rates, create shipments and labels, track parcels, and manage pickups through the MyDHL API.
For the full API reference, see the DHL Express MyDHL API documentation.

Connection setup

1

Register on the DHL Developer Portal

Sign up at developer.dhl.com, create an app, and subscribe it to the MyDHL API. Copy the API username and API password issued for your app.
2

Add the connection in Spojit

Go to Connections in Spojit, click Add Connection, select DHL Express, and enter:
  • DHL API Username: Your MyDHL API username
  • DHL API Password: Your MyDHL API password
  • Environment: production (default) or sandbox for testing
Sandbox uses a separate base URL (/mydhlapi/test) and separate credentials. Production credentials will not work in sandbox and vice versa.

Tools

Rates

Retrieve available DHL Express products and rates between an origin and destination.
string
required
Origin postal/zip code.
string
required
Origin country code (ISO 3166-1 alpha-2, e.g. US).
string
Origin city name.
string
required
Destination postal/zip code.
string
required
Destination country code (ISO 3166-1 alpha-2).
string
Destination city name.
number
required
Package weight in kilograms.
number
Package length in centimetres.
number
Package width in centimetres.
number
Package height in centimetres.
string
required
Planned shipping date (YYYY-MM-DD).
boolean
required
Whether the shipment is customs-declarable.
string
default:"metric"
metric or imperial.
Example request:
Example response:

Shipments

Submit a ShipmentRequest to the MyDHL API. The payload argument is passed through unchanged as the request body.
object
required
MyDHL API ShipmentRequest. Typically includes plannedShippingDateAndTime, productCode, customerDetails (shipperDetails, receiverDetails), content (packages, isCustomsDeclarable, declaredValue, description), and accounts.
Example request:
Example response:
string
required
DHL Express tracking / waybill number.
string
Optional individual piece tracking number.
string
default:"all"
all, shipment, or piece.
Example request:
Example response:
string
required
DHL Express tracking / waybill number.
string
required
Name of the person requesting cancellation.
string
required
Reason for the cancellation.
Example request:
Example response:

Pickups

Submit a PickupRequest to the MyDHL API. The payload is passed through unchanged.
object
required
MyDHL API PickupRequest. Typically includes plannedPickupDateAndTime, customerDetails (shipperDetails), shipmentDetails (packages, productCode), and accounts.
Example request:
Example response:
string
required
Dispatch confirmation number returned from create-pickup.
string
required
Name of the person requesting cancellation.
string
required
Reason for the cancellation.
Example request:
Example response:

Advanced

Send a request to any MyDHL API endpoint not covered by the curated tools, for example address validation, products listing, label image retrieval, or paperless trade document upload.
string
required
GET, POST, PATCH, or DELETE.
string
required
API path (e.g. /address-validate or /shipments/1234567890/proof-of-delivery).
object
Optional query parameters object.
object
Request body for POST/PATCH.
Example request:
Example response: