Shipment Tracking Unified API
I receive a 401 Unauthorized code when calling the DHL Shipment Tracking - Unified API
Created by: Jhonathan Ibanez
Modified on: Mon, 21 Aug, 2023 at 12:19 PM
If you are receiving an "Unauthorized" error code when calling the Shipment Tracking - Unified API via an API platform like Postman, then there could be a series of scenarios causing this issue like:
- The URL of the API is not well written. This is a well-written example: https://api-eu.dhl.com/track/shipments?trackingNumber=12345678
- The API Key parameter is not well written in the Headers. Read more about it in this article.
- You are adding an API Key that has no rights to access the Shipment Tracking - Unified API
If your issue is not related to the previous cases, please open a ticket in our Help Center.