• 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

    (@sal4sup)

    Hi @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.