Troubleshooting
“Test connection” fails
Section titled ““Test connection” fails”- Check the mode: test credentials only work in test mode and live credentials only in live mode (DHL sandbox and production are separate systems with their own billing numbers).
- Check for spaces before or after the API key, the secret, the user and the password. The API key and secret belong to your app in the developer portal; the user and password belong to the business customer portal.
- “Invalid username or password”: the business customer user is wrong or the password changed. “Client authentication failed”: the API key or secret is wrong.
- “Billing number check: … The selected billing number is invalid”: the billing number does not belong to the user group profile, the product, or your contract. Check the 14 characters with your DHL contact. The profile (default STANDARD_GRUPPENPROFIL) must be the one of your user.
- The Log tab shows DHL’s answer (masked).
- Your server must be able to reach api-eu.dhl.com / api-sandbox.dhl.com over HTTPS (outgoing port 443) and have a current CA bundle.
A shipment is refused
Section titled “A shipment is refused”The reason is on the order page and in the Log. The usual ones: a billing number that does not match the product (“The selected billing number is invalid”), a service your contract does not include (age check, GoGreen Plus, cash on delivery, return label), a missing HS code or an invalid customs value for an international parcel, a postal code in the wrong format, a Packstation without the Postnummer, a weight above the limit of the product. With mustEncode on, an address that DHL cannot encode is refused.
“The street entered could not be found”
Section titled ““The street entered could not be found””This is a warning: the label is valid, but DHL could not verify the address and may charge to correct it (the routing code on the label ends with zeros). Ask the customer to check the address, or turn on Only create labels for codable addresses to refuse such addresses.
The label cannot be downloaded again
Section titled “The label cannot be downloaded again”DHL keeps the labels until the shipment is closed out and for a limited time afterwards; the add-on stores its own copy of every label when the shipment is created, and downloads from that copy. If a label is missing (the response had none), the queue fetches it with GET /orders until the close-out.
“Result unknown: check the DHL portal”
Section titled ““Result unknown: check the DHL portal””DHL did not answer the label request in time (timeout, network error or a server error), so a shipment may or may not exist. The add-on never sends the request again by itself, because that could create a second shipment that DHL bills and closes out. Open the DHL business customer portal and look for the reference shown on the order (Order 000123-<number>):
- Found it: enter its shipment number in the DHL label and tracking tab and press Adopt shipment. The add-on checks the number with DHL, stores the label and continues as normal.
- Not there: press Nothing was created at DHL. The request is closed and Create label is offered again. Only do this after you checked the portal.
- Two shipments for one order (you created a second label before checking): cancel the extra one in the portal before the close-out.
Cancel is refused
Section titled “Cancel is refused”DHL deletes only shipments that were not closed out (“Tagesabschluss”). The close-out runs at the time set in your business customer portal (default 5:45 pm) or when you close out shipments here. A closed-out shipment has to be handled with DHL.
Tracking shows nothing
Section titled “Tracking shows nothing”DHL knows a parcel after it is handed over, so a new shipment shows “Label created, waiting for hand-over to DHL”. The tracking API needs your API key to be subscribed to the Shipment Tracking - Unified API. A 404 answer is normal until the first scan.
The location search finds nothing
Section titled “The location search finds nothing”The key must be subscribed to the Location Finder - Unified API in the developer portal, and the postal code must be German. The search covers 5 km around the address. A Packstation method lists lockers only; a Postfiliale method lists post offices and Paketshops.
Nothing happens after an order changes status
Section titled “Nothing happens after an order changes status”- Check Settings > General > Enable and the order status settings.
- Check the license status bar on the add-on pages.
- Open Jobs: queued jobs wait for cron. If the counts never change, the cron job is not running; run the command from the settings page by hand once.
A job is “Waiting to retry” or “Gave up”
Section titled “A job is “Waiting to retry” or “Gave up””The last error is shown in the list. Fix the cause (credentials, data, DHL outage) and press Retry. Jobs are retried automatically after 5 minutes, 15 minutes, 1 hour, 3 hours and 12 hours before they give up. Validation answers of DHL (HTTP 4xx) are not retried: they do not get better by themselves.
The cron address answers “Forbidden”
Section titled “The cron address answers “Forbidden””The key in the address is wrong. Copy the address again from the settings page.
Still stuck
Section titled “Still stuck”Contact us through https://cs-cart.kaviolabs.com with the add-on version, the CS-Cart version and the relevant log lines (secrets are masked automatically).