Authentication
Authentication Requirements
1.
Request CPL support to enable OAuth 2.0 access and obtain your client credentials (Client ID and Client Secret).
2.
Log in to the service using your Client ID and Client Secret.
Send a request to the URL designated for issuing tokens (https://api.dhl.com/ecs/ppl/myapi2/login/getAccessToken).
Security Guidelines
Access Token Validity
Recommendations
1.
Access tokens and the Client Secret should never be stored in source code or in publicly accessible locations.
2.
Implement a mechanism to automatically refresh the token before it expires.
3.
Never send tokens or credentials over an unencrypted connection (HTTP).
Common Issues
Expiration: If the token has expired, generate a new one.
Authentication Errors: Ensure that you are using the correct Client ID and Client Secret.
Modified at 2025-02-07 07:04:38