In our DHL Developer Account we created an API Key for “Parcel DE Tracking (Post & Parcel Germany)”.
Status is: Enabled.
When trying to use the DHL Module it first asks to create a connection by inputting the API Key. When I input the key (I also tried the secret) I get the error “[401] Unauthorized for given resource”.
Do I have to select a different Type of API in the DHL Account or could there be another problem?
Seems your api key isn’t accurate. 401 errors basically means either the key is wrong maybe a typo, or the key is expired, or the key might be valid but missing required permissions from DHLs end.
Most companies will allow you generate a new api key. Please generate a new one if need be and check for its permissions from DHL end. If it has customizable permissions give the key full permissions so that make.com cam use all the endpoint you need.
Another slight possibility could be that the module is facing some slight issues right now. Try resolving the keys first should it persist let’s know here.
DHL offers global and country-based APIs, and they’re not interchangeable – if you generated your API in the German domestic DHL system, it mostly won’t work with the global one.
Have a look at the API section:
To my knowledge, Make’s DHL app works with the Shipment Tracking API:
The API key is likely valid, it is more likely an issue of connecting the wrong API product to Make. The “Parcel DE Tracking (Post & Parcel Germany)” API is a different regional offering, and Make’s DHL module isn’t designed for that one, it wants the DHL Express API or the Unified Tracking API.
Go back to your DHL Developer account and generate a new API key under DHL Express or Unified Tracking and test that instead.
thing to remember is that it can take a few minutes for a newly generated key to become active so don’t panic if it doesn’t work right away, just wait a few moments and try again. but if tracking specifically of Post & Parcel Germany is your primary objective, Make’s included DHL module may not have that support. In that case your best bet is to use an HTTP module and query the Parcel DE API directly yourself.
Ok, here are two solutions: my own and the one Make Support suggested.
Make Support suggestion, not tested
After trying all suggestions in this thread without success, I contacted Make Support. After some back and forth, they sent me a video showing that creating a connection works when using/creating an app in the DHL Developer Account with the following two DHL APIs:
Shipment Status, DHL Global Forwarding
Shipment Tracking, DHL Global Forwarding
Unfortunately, these APIs are not available when setting up the app in my DHL Developer Account. To get access, you seem to need a DHL Global Forwarding account/account number. You then either have to fill out a form or potentially contact your DHL representative. I did not try this. This could also be a problem or not available because we have a DHL Germany and not DHL Global Account.
My solution
I was able to set up an HTTP module in Make that uses the DHL API “Shipment Tracking - Unified”, for which I had already created an app in the DHL Developer Account while testing solutions. This was quite easy using the DHL API documentation and ChatGPT.