Register for API credentials via the DHL Express XML Developer Portal website. Use thse API credentials in the provider information either through the control panel, or in the configuration file.
DHL doesn't offer a set list of services for you to enable or disable as required. Services are automatically returned based on the matching criteria with your shipping origin and destination.
Add the following code to your configuration file under the
providers array, as per the below. Note that to disable certain services, simply omit them from the
'providers' => [ 'dhlExpress' => [ 'name' => 'DHL Express', 'settings' => [ 'username' => 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx', 'password' => 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx', 'account' => 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx', 'useTestEndpoint' => true, ], ], ]
Available for Craft 3. Get it from the plugin store.