CPL API
Useful links
  • Developer
  • Sandbox
Useful links
  • Developer
  • Sandbox
Přepni do češtiny
  1. Authentication
  • Introduction
  • General
  • Creation of orders and shipments
  • Changelog
  • Authentication
    • Getting Bearer token
      POST
  • API Methods
  • Examples
    • Response - pick up labels (PDF A4)
    • Response - pickup label (ZPL)
    • Response - pick up label (JPG)
    • Shipment - shipment set items
    • International Shipment with or without COD – Parcels in a Set
    • Multiple shipments in one request
  • FAQ
  • Postman Collection
  1. Authentication

Getting Bearer token

Developing
POST
https://api-dev.dhl.com/ecs/ppl/myapi2/login/getAccessToken
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://api-dev.dhl.com/ecs/ppl/myapi2/login/getAccessToken' \
--header 'Content-Type: application/x-www-form-urlencoded' \
--data-urlencode 'grant_type=client_credentials' \
--data-urlencode 'client_id=clientID' \
--data-urlencode 'client_secret=clientSecret' \
--data-urlencode 'scope=myapi2'
Response Response Example
{}

Request

Header Params
Content-Type
string 
required
Example:
application/x-www-form-urlencoded
Body Params application/x-www-form-urlencoded
grant_type
string 
required
Example:
client_credentials
client_id
string 
required
assigned individually
Example:
clientID
client_secret
string 
required
assigned individually
Example:
clientSecret
scope
string 
required
Example:
myapi2

Responses

🟢200Success
application/json
Body
object {0}
Previous
Authentication
Next
API Methods
Built with