DHL Express


Overview

DHL Express stands as a global courier and logistics company that offers international shipping and express delivery services renowned for their swift and dependable options. These encompass express airfreight, international parcel delivery, and an array of logistics solutions.

Registering a DHL Express Carrier Account

To initiate the registration process for a DHL Express carrier account, users must possess the following pre-requisites:

  • An Account Number
  • Security Credentials in the form of a Username and Password

To complete the onboarding of a DHL Express carrier account, an API request call is executed, encompassing all the essential details. Presented below is an example of such a request.

DHL Express Sample Request

Copy
Copied
{
    "accountNumber": "XXXXXXX",
    "carrierID": "DHLEXP",
    "description": "DHLEXP by API",
    "carrierAccountType": "Shipping",
    "provisioningType": "API",
    "parameters": {
        "username": "XXXXXXXX",
        "password": "XXXXXXXX"
    }
}

Upon successful the request to establish the DHL Express carrier account, the ensuing response will resemble the provided Sample Response below.

DHL Express Sample Response

Copy
Copied
{
    "carrierAccountID": "BGkmpD7Lll7",
    "description": "DHLEXP by API",
    "carrierID": "DHLEXP",
    "accountNumber": "XXXXXXX",
    "parameters": {
        "username": "XXXXXXXX"
    },
    "carrierAccountType": "Shipping",
    "provisioningType": "API"
}

API Operations for Shipping with DHL Express

The APIs integrate with DHL Express through the following operations:

OperationsMethodResource Path
Add a Carrier AccountPOST/api/v1/carrierAccounts
Rate a ParcelPOST/api/v1/rates
Create a Shipping LabelPOST/api/v1/shipments
Reprint a LabelGET/api/v1/shipments/{{shipmentId}}/reprint
Void a LabelPUT/api/v1/shipments/{{shipmentId}}/cancel
Get Tracking InformationGET/api/v1/tracking/{{trackingNumber}}

Metadata

Metadata provides information about DHL carrier services, including origin and destination countries, supported carrier services, supported package types, and supported special services. Users can select specific origin and destination countries from the provided dropdown menu to dynamically view relevant metadata specific to those countries.

Metadata information not available