Title: Unauthorized 401 error
Last modified: August 31, 2025

---

# Unauthorized 401 error

 *  [eli7gug](https://wordpress.org/support/users/eli7gug/)
 * (@eli7gug)
 * [9 months, 2 weeks ago](https://wordpress.org/support/topic/unauthorized-401-error/)
 * I am working on a WooCommerce website that uses DHL for shipments to Germany.
   For this purpose, we installed the official plugin:
   **DHL Shipping Germany for
   WooCommerce by DHL**.
 * Since installing the plugin, I have received the following credentials:
    - EKP number
    - DHL Business Portal login
 * I entered these credentials in the plugin settings, and on click get account 
   settings, get success message, that account is connected.
    - The plugin is configured to automatically create a shipping label and include
      the tracking number in the customer email when an order is **Processing**.
 * However, this is not happening. Even when I try to create a label manually within
   the order, I receive the error:
   **Error creating label: The credentials you provided
   are invalid.**
 * I have enabled **Logging** in the plugin and I am attaching the log file for 
   your review.
 * Please advise which credentials are required and how to configure them correctly
   so that both automatic and manual label creation will work.
 * attached the log:
 * _[ Attached log deleted as it contained sensitive information. ]_

Viewing 1 replies (of 1 total)

 *  Plugin Author [Saleem Summour](https://wordpress.org/support/users/sal4sup/)
 * (@sal4sup)
 * [9 months, 2 weeks ago](https://wordpress.org/support/topic/unauthorized-401-error/#post-18615543)
 * Hi [@eli7gug](https://wordpress.org/support/users/eli7gug/),
 * thanks for sharing the details
 * **Why you see “Unauthorized 401”?**
 * The GET calls to DHL Checkout (CIG) are succeeding → that means your EKP and 
   portal login are valid.
 * The POST call to create the actual label fails → this part requires not only 
   the EKP, username, and password, but also the correct participation number(s)
   and the right login format.
 * 
   **In most cases this error comes from either:**
 * -Using the email address instead of the actual Business Portal username.
 * -Missing or wrong participation numbers for the DHL products (last two digits
   of the account number, e.g. 01).
 * -Wrong combination of billing number (EKP + participation) and the credentials.
 * **What to check**
 * In WooCommerce → Settings → Shipping → DHL Paket:
 * **Username **= your Business Customer Portal username (not email).
 * **Password **= your Business Portal password.
 * **EKP number **= the 10-digit account number from DHL.
   Participation number(s)
   = the last 2 digits of your billing/accounting number (e.g. 01, 53 depending 
   on your contract). Make sure these are entered under each DHL product you plan
   to use.
 * Click Save and then Get Account Settings to fetch/confirm the EKP + participations.
 * Make sure “Automatic Label Creation” is only enabled after a successful manual
   test label can be created.
 * **Important**
   For security reasons: please don’t post your raw debug logs in 
   the forum. They can include authorization headers and account data. If you need
   us to review a full log, send it to our support email instead: dhlsupport(at)
   progressus.io

Viewing 1 replies (of 1 total)

The topic ‘Unauthorized 401 error’ is closed to new replies.

 * ![](https://ps.w.org/dhl-for-woocommerce/assets/icon.svg?rev=1777040)
 * [DHL Shipping Germany for WooCommerce](https://wordpress.org/plugins/dhl-for-woocommerce/)
 * [Support Threads](https://wordpress.org/support/plugin/dhl-for-woocommerce/)
 * [Active Topics](https://wordpress.org/support/plugin/dhl-for-woocommerce/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/dhl-for-woocommerce/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/dhl-for-woocommerce/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [Saleem Summour](https://wordpress.org/support/users/sal4sup/)
 * Last activity: [9 months, 2 weeks ago](https://wordpress.org/support/topic/unauthorized-401-error/#post-18615543)
 * Status: not resolved