# dhl/module-carrier-paket

> Carrier implementation for DHL Business Customer Shipping

`composer require dhl/module-carrier-paket`

Canonical URL: https://packagento.com/dhl/module-carrier-paket

## At a glance

- **Vendor**: DHL (https://packagento.com/dhl.md)
- **Latest version**: 3.6.0 — released 2026-07-10
- **Pricing**: Free
- **Package type**: Magento 2 module
- **Status**: active, accepting new buyers

## Installation

Packagento is licence-gated, so even free packages need a licence on a project before Composer can resolve them.

1. **Sign in or create an account** at https://packagento.com/customer/account/.

2. **Add the package to your account.** Open https://packagento.com/dhl/module-carrier-paket and complete the free checkout. A licence is minted automatically.

3. **Create or pick a project, then activate the licence on it.**
   - Projects represent the Magento installs you deploy to. Manage them at https://packagento.com/projects/.
   - Activate the new licence on the project you'll deploy this package to. Activation is what generates the Composer credentials scoped to that project.

4. **Add the project credentials to your Magento codebase.**

   Grab the project's public + private key from https://packagento.com/projects/ (open the project, then its Credentials tab), and add them to `auth.json`:

   ```json
   {
     "http-basic": {
       "packagento.com": {
         "username": "ppk_live_...",
         "password": "psk_live_..."
       }
     }
   }
   ```

   Add the Packagento Composer repository to `composer.json`:

   ```json
   {
     "repositories": [
       { "type": "composer", "url": "https://packagento.com" }
     ]
   }
   ```

5. **Install and apply.**

   ```bash
   composer require dhl/module-carrier-paket:*
   bin/magento setup:upgrade
   bin/magento setup:di:compile
   bin/magento cache:flush
   ```

## What it does

Carrier implementation for DHL Business Customer Shipping

## README

DHL Paket Shipping Carrier Extension
====================================

The DHL Paket extension for Magento® 2 integrates the _DHL Business Customer Shipping_
API into the order processing workflow.

Description
-----------
This extension enables merchants to request and cancel shipping labels for incoming orders
via the [DHL Business Customer Shipping API](https://entwickler.dhl.de/en/) (DHL Geschäftskundenversand-API).

Requirements
------------
* PHP >= 8.3

Compatibility
-------------
* Magento >= 2.4.8

Installation Instructions
-------------------------

Install sources:

    composer require dhl/module-carrier-paket

Enable module:

    ./bin/magento module:enable Dhl_Paket
    ./bin/magento setup:upgrade

Flush cache and compile:

    ./bin/magento cache:flush
    ./bin/magento setup:di:compile

Uninstallation
--------------

To unregister the carrier module from the application, run the following command:

    ./bin/magento module:uninstall --remove-data Dhl_Paket
    composer update

This will automatically remove source files, clean up the database, update package dependencies.

Support
-------
In case of questions or problems, please have a look at the
[Support Portal (FAQ)](http://dhl.support.netresearch.de/) first.

If the issue cannot be resolved, you can contact the support team via the
[Support Portal](http://dhl.support.netresearch.de/) or by sending an email
to <dhl.support@netresearch.de>.

License
-------
[OSL - Open Software Licence 3.0](http://opensource.org/licenses/osl-3.0.php)

Copyright
---------
(c) 2023 DHL Paket GmbH

## Changelog

All notable changes to this project will be documented in this file.

The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).

### 3.6.0

US customs changes effective 2026-07-24.

#### Added

- Require a 10-digit HTSUS customs tariff number per item for USA and Puerto Rico shipments, enforced in the packaging popup and on label requests.
- Offer the postal delivery duty paid (pDDP) service for Puerto Rico.

#### Changed

- pDDP value thresholds switch from 800 USD / 680 EUR to 2,500 USD / 2,125 EUR at the 2026-07-24 cutover.
- Lock the pDDP checkbox server-side when the service is not permitted for the shipment.

### 3.5.2

#### Added

- Italy as allowed country for _Closest Droppoint_ (CDP) service.

### 3.5.1

#### Added

- The _Electronic Export Notification_ checkbox now stays in sync with the package's customs value while editing a shipment and stops auto-syncing once it is toggled manually.

#### Fixed

- The _Electronic Export Notification_ checkbox is now pre-selected from the package's customs value instead of the whole order subtotal, so partial shipments below 1000 EUR are no longer pre-selected by mistake.

### 3.5.0

Magento 2.4.9 compatibility release

#### Added

- Support for Magento 2.4.9
- Support for PHP 8.5

### 3.4.3

#### Added

- NL, CY, CZ, EE, LT, LV as allowed country for _Closest Droppoint_ (CDP) service.

#### Changed

- Remove HU as allowed country for _Closest Droppoint_ (CDP) service.

### 3.4.2

#### Changed

- Make _Postal Delivery Duty Paid_ (PDDP) service mandatory for USA shipments under $800.

### 3.4.1

#### Added

- France as allowed country for _Closest Droppoint_ (CDP) service.

### 3.4.0

Magento 2.4.8 compatibility release + GoGreen Plus support

#### Added

- Support for Magento 2.4.8
- Support for PHP 8.4
- GoGreen Plus service support for climate-neutral shipping
- GoGreen Plus service support for climate-neutral return shipments

#### Changed

- Upgrade to Monolog 3.x logging framework
- Upgrade to PHPUnit 10 testing framework
- Improved error handling for Magento 2.4.8 compatibility

#### Removed

- Support for PHP 8.2

### 3.3.0 

#### Added 

- Customs Input for MRN (Master Reference Number) in Packaging Popup.

### 3.2.0

Deutsche Post Warenpost becomes DHL Kleinpaket

#### Added

- support for DHL Kleinpaket

#### Removed 

- support for Deutsche Post Warenpost 

### 3.1.2

#### Changed

- Sandbox Credentials

### 3.1.0

#### Fixed 

- Fixed parameter ordering issue that caused shipping label creation for `post office` delivery locations to fail schema validation.

### 3.0.0 

Magento 2.4.7 compatibility release

#### Added

- Support for Magento 2.4.7

#### Changed

- Replace Zend_Measurement with Magento Framework Measurement
- Use escaper instead of block for escaping in templates
- replace sdk-api-bcs with the new sdk-api-parcel-de

#### Removed

- Support for PHP 7.x
- Support for PHP 8.1

### 2.9.0

#### Added 

- Book _Postal Delivery Duty Paid_ (PDDP) service with deliveries to CH destinations.

#### Fixed

- Mask billing numbers and API key in web service logs.

### 2.8.0

#### Added

- Book _Signed for by recipient_ (Empfängerunterschrift) service.
- Book _Postal Delivery Duty Paid_ (PDDP) service.
- Book _Closest Droppoint_ (CDP) service.
- Confgure label size in module configuration.
- Select DHL business customer portal group profile via module configuration.

#### Changed

- Switch DHL shipping API from SOAP to REST. SDK classes are no longer injected via DI.

#### Removed

- The `printOnlyIfCodeable` flag can no longer be set for individual packages.
  The module configuration setting ("Shipment Defaults") always applies.

#### Fixed

- Add DE translation for non-delivery instruction options.
- Type-cast store ID to `integer`, reported via [#11](https://github.com/netresearch/dhl-module-carrier-paket/issues/11).

### 2.7.0

#### Added

_(Changelog truncated for .md surface. Full history on https://packagento.com/dhl/module-carrier-paket.)_

## Recent Versions

| Version | Released |
|---|---|
| 3.6.0 | 2026-07-10 |
| 3.5.2 | 2026-07-07 |
| 3.5.1 | 2026-06-29 |
| 3.5.0 | 2026-06-03 |
| 3.4.3 | 2026-01-16 |
| 3.4.2 | 2025-12-03 |
| 3.4.1 | 2025-09-24 |
| 3.4.0 | 2025-07-02 |
| 3.3.0 | 2025-03-18 |
| 3.2.0 | 2025-01-08 |

Showing 10 of 34 versions. Full release history on https://packagento.com/dhl/module-carrier-paket.

## Dependencies

### Require

| Package | Constraint |
|---|---|
| dhl/module-shipping-core | ^2.5.0 |
| dhl/module-unified-tracking | ^2.3.0 |
| dhl/sdk-api-parcel-de | ^1.3.0 |
| dhl/sdk-api-parcel-management | ^3.4.0 |
| dhl/sdk-api-unified-location-finder | ^3.3.0 |
| ext-intl | * |
| ext-json | * |
| magento/framework | ^103.0.8 |
| magento/module-backend | ^102.0.8 |
| magento/module-bundle | ^101.0.8 |
| magento/module-catalog | ^104.0.8 |
| magento/module-catalog-inventory | ^100.4.8 |
| magento/module-checkout | ^100.4.8 |
| magento/module-config | ^101.2.8 |
| magento/module-configurable-product | ^100.4.8 |
| magento/module-directory | ^100.4.8 |
| magento/module-quote | ^101.2.8 |
| magento/module-sales | ^103.0.8 |
| magento/module-shipping | ^100.4.8 |
| magento/module-store | ^101.1.8 |
| monolog/monolog |  ^3.6.0 |
| netresearch/config-fields-m2 | ^1.3.0 |
| netresearch/module-shipping-core | ^5.0.0 |
| php | ~8.3.0\|\|~8.4.0\|\|~8.5.0 |
| psr/log | ^2.0.0 \|\| ^3.0.0 |

### Require (dev)

| Package | Constraint |
|---|---|
| fig/log-test |  ^1.0.0 |
| magento/module-customer | ^103.0.8 |
| magento/module-offline-payments | ^100.4.6 |
| phpunit/phpunit | ^10.5.0 |

## Quality

Latest release (3.6.0) fails the Packagento QA pipeline. Verdicts below are per-cell (Magento line × PHP version) for the matrixed tools, and run-once for the static / security tiers.


### Compatibility

Each Magento line is installed on its supported PHP versions, then the module is built (DI compile + static-content deploy). Cells show passed / failed / untested; staircase gaps render as `–`.

| Magento | PHP 8.2 | PHP 8.3 | PHP 8.4 | PHP 8.5 |
|---|---|---|---|---|
| 2.4.7 | not tested | 1 | – | – |
| 2.4.8 | – | Pass | Pass | – |
| 2.4.9 | – | – | Pass | Pass |


### Code Quality

Advisory checks against the module's source. Never affect the Compatibility verdict — a phpcs finding can't make a module incompatible.

#### Static Analysis

Coding standards (phpcs), mess detection (phpmd), copy-pasted code (cpd), PHP cross-version compatibility, composer.json validity. Each runs once for the whole module.

| Tool | Status | Findings | Summary |
|---|---|---|---|
| PHPCS | Warning | 47 | 47 warnings (ruleset: Magento2), 2 auto-fixable with phpcbf |
| PHPMD | Warning | 75 | 75 rule violations (UnusedFormalParameter:48, UndefinedVariable:10, MissingImport:7, NPathComplexity:2, TooManyPublicMethods:2) |
| Cpd | Warning | 8 | 8 duplicated chunks spanning 317 total lines (min-lines=5, min-tokens=70) |
| Composer validate | Info | 1 | valid; 1 advisory note (composer validate --strict) |

#### PHPStan

Type-checks the module against a real Magento install. Re-runs per Magento + PHP version because resolvable symbols differ between releases.

| Magento | PHP 8.2 | PHP 8.3 | PHP 8.4 | PHP 8.5 |
|---|---|---|---|---|
| 2.4.7 | 27 | 27 | – | – |
| 2.4.8 | – | 26 | 26 | – |
| 2.4.9 | – | – | 26 | 26 |


### Tests

Unit and integration suites run per Magento + PHP cell. Test failures speak to the module's behaviour, not its compatibility with a line, so they're reported here separately.

#### Unit Tests

| Magento | PHP 8.2 | PHP 8.3 | PHP 8.4 | PHP 8.5 |
|---|---|---|---|---|
| 2.4.7 | N/A | N/A | – | – |
| 2.4.8 | – | N/A | N/A | – |
| 2.4.9 | – | – | N/A | N/A |

#### Integration Tests

| Magento | PHP 8.2 | PHP 8.3 | PHP 8.4 | PHP 8.5 |
|---|---|---|---|---|
| 2.4.7 | N/A | Error | – | – |
| 2.4.8 | – | 41 | 41 | – |
| 2.4.9 | – | – | 42 | 42 |


### Security

Dependency-advisory audit (composer audit) plus a source malware scan. A malware detection fails the version outright.

| Tool | Status | Findings | Summary |
|---|---|---|---|
| Composer audit | Pass | 0 |  |
| Malware scan | Pass | 0 |  |

## Licence and pricing

Free. A licence is still minted on checkout and bound to your project for Composer access — no payment step.

Refundable within 14 days of first purchase via https://packagento.com/account/refunds/.

## Install via Claude Code or any MCP client

The Packagento MCP server can run the licence + project + Composer steps above in one tool call:

```
purchase_and_install_packages(
  composer_names=["dhl/module-carrier-paket"],
  project_id="proj_xxx"
)
```

This handles cart, checkout, licence minting, project activation, and writes auth.json credentials. Connect a client with `claude mcp add packagento https://mcp.packagento.com`. Full setup at https://packagento.com/docs/mcp-setup.

## Vendor

DHL is a Magento 2 vendor on Packagento. See https://packagento.com/dhl.md for their full catalogue.

