Issue
I want to print a label for (New) DHL Parcel UK, but get the following error message:
invalid_client : AADSTS7000222: The provided client secret keys for app 'XXXXXXXX-0000-0000-0000XXXXXXX1' are expired. Visit the Azure portal to create new keys for your app: https://aka.ms/NewClientSecret, or consider using certificate credentials for added security: https://aka.ms/certCreds. Trace ID: XXXXXX-XXXX-XXX-0000-00000000 Correlation ID: XXXXXX-XXXX-XXX-0000-00000000 Timestamp: 2025-08-XX XX:XX:XXZ
Solution
DHL are rotating some API Client Secrets that were generated a long time ago, and are notifying affected users via email with the subject 'CXXXXXX Client Secret'.
If you have received an email like this, please copy the value of the new Client Secret and update it in your DHL Parcel UK integration configuration: Shipping > Integrations > (New) DHL Parcel UK > Config > Client Secret > Next (to save the changes).
After updating, try generating a shipping label to ensure the connection is working as expected.
For more information about the expiration of API credentials or to obtain a new Client Secret, please contact your DHL Parcel UK account manager directly.