Best for:
- Determining available DHL Freight product code(s) and estimated or committed delivery date for a requested pickup date and departure/arrival country.
- Only for road freight groupage shipments that are transported via DHL Freight terminals. Relevant only for terminal based operations (TBO), not relevant for part/full loads (non-Terminal based operations / NTBO).
Precondition:
- For existing DHL Freight business customers with a valid contract.
- For domestic and international palletized road freight transport orders (> 35 kg) across Europe.
The TimeTable API shows available DHL Freight products and their estimated/committed delivery date, based on the requested pickup date and departure/arrival country.
Time Table API should be used only for network based transportation (groupage). It does not cover European part- and full loads that are transported directly, without any terminal/hub involvement.
The API accepts the following information:
Parties (array) containing - Address - Country code (ISO 3166-1 alpha-2 codes)
- Postal code- Type {consignor, consignee, pickup, delivery}
Notes:
- consignor and consignee are mandatory
- pickup resp. delivery are optional and only required if they deviate from consignor resp. consignee
- Type {consignor, consignee, pickup, delivery}
Product code (optional)
If product code is empty, the API returns all available products and their properties
If product code is filled and exists, the API returns requested product code and product properties
The API returns following information, for all available products or for one selected product:
- productCode:
- priorityServiceP10: true/false (only for premium express product)
- priorityServiceP12: true/false (only for premium express product)
- sameDayPickup12: true/false
- sameDayPickup15: true/false
- pickupDate: from input value, but potentially rescheduled based on weekends and bank holidays.
- plannedDeliveryDate: either estimated delivery date (non-premium) or a committed delivery date (premium)
- fixedDeliveryDates: depending on the product, a list of 5 possible dates to select from when you also select the additional service "FixedDeliveryDate".
For additional information, please contact api4freight@dhl.com
Get Access
You must request credentials for any applications you develop. Please check below the options to request your access:
Internal DHL developer:
[1] Click My Apps on the portal website. | [2] Click the + Add App button. | [3.] Complete the Add App form |
You can select the APIs you want to access. When you have completed the form, click the Add App button. |
Authentication
Every call to the API requires a subscription key. This key needs to be either passed through a query string parameter or specified in the request header (DHL-API-Key).
The TimeTable API requires a two step authentication where you first need to get access to the TimeTable API (see below) and as a second step you need to retrieve a Bearer Token.
To view your API subscription keys:
- From the My Apps screen, click on the name of your app.
The Details screen appears.
- If you have access to more than one API, click the name of the relevant API.
Note: The APIs are listed under the “Credentials” section.
- Click the **Show ** link below the asterisks that is hiding the Consumer Key.
The Consumer Key appears.
With your obtained API Key and API Secret you need to obtain a bearer token via the DHL Group Authentication API.
Set username with your API Key
Set Password with your API Secret.
The obtained Bearer Token now can be used for accessing the API products in your APP.
Environments
The addressable API base URL/URI environments are:
Environment | Description |
https://api-sandbox.dhl.com/freight/info/time-table/v1 | Sandbox environment |
https://api.dhl.com/freight/info/time-table/v1 | Production environment |
Rate limits
Rate limits protect the DHL infrastructure from suspicious requests that exceed defined thresholds.
The table below details the main request limits:
Service Level | Maximum calls per second | Maximum calls per day | - | 250 |
---|
Please contact api4freight@dhl.com if you need a different service level.
When the limit is reached, you will receive an HTTP Status code:
429: Too many requests.
Specifics for the use of Freight Time Table API
- The Time Table (DHL Freight) API enables determining available DHL Freight product code(s) and estimated or committed delivery date for a requested pickup date and departure/arrival country.
- For the purposes of these Legal Terms, “you”/”your” or “registrant/user” means the (natural) person or entity holding a (transportation) contract with a DHL Freight entity.
- If you engage an external developer or other IT services provider to represent you and to develop Your Application according to the General Developer Portal Terms of Use and these special API terms & conditions (also referred to as “Legal Terms”), you are liable for the acts or omissions of such third party in connection with the usage of the Time Table (DHL Freight) API and the API Services.
- By registering for the use of and/or using the Time Table (DHL Freight) API, each registrant and/or user of the Time Table (DHL Freight) API in addition to the General Developer Portal Terms of Use agree to these Legal Terms and all the terms included herein. Should the terms of the General Developer Portal Terms of Use and these Legal Terms conflict, these Legal Terms shall govern.
- These Legal Terms and the General Developer Portal Terms of Use govern your usage of Time Table (DHL Freight) API including the API Service and, unless otherwise stated herein, do not replace and/or modify any other DHL Freight terms and conditions, DHL Freight transportation services agreements and/or any other agreements, contracts or SOWs with a specific DHL Freight entity or any of its affiliates, which govern services or products provided to you (separately, each an “Agreement”). Notwithstanding the foregoing, you expressly acknowledge and agree that solely with respect to your use of Time Table (DHL Freight) API including the API Service these Legal Terms and the General Developer Portal Terms of Use shall have preference over the terms and conditions in an Agreement, unless any terms and conditions in an Agreement specifically address the use of the Time Table (DHL Freight) API or the API Service by you, in which case the specific terms and conditions of the Agreement shall prevail with respect to Your use of the Time Table (DHL Freight) API/the API Service.
- The API Productive Key for the Time Table (DHL Freight) API is a private and individual key for you. it shall not be used by or for other external customers. You may not allow your developer or IT services provider to use your API Productive Key for potential other DHL Freight (transportation) customers.
- Neither DHL Freight nor any other affiliate within DHL Group, is responsible for storing a record of any data (API-call or -request data or the actual contents of the data sets), that has been exchanged via the Time Table (DHL Freight) API, unless expressly agreed upon in writing (e.g. in the Agreement).
- You shall use the services and/or data that you receive via the Time Table (DHL Freight) API only for the legitimate business purposes, only in connection with DHL Freight's transportation and/or other services, and in compliance with all applicable laws and regulations, including but not limited to, laws regarding the use of personal data.
- You acknowledge that material and information you may acquire, including (but not limited to) transportation methods, booking information, financial or other accounting information and other procedures and processes relating to the Time Table (DHL Freight) API and the API Service (“Materials”) are proprietary, confidential, and owned by DHL Freight. Other than described herein, you shall have no additional rights to the Materials.
- For the purposes of the use of the Time Table (DHL Freight) API and the API Service, these Legal Terms and the General Developer Portal Terms of Use are governed by the law and jurisdiction defined in the Agreement. Should no law or jurisdiction be defined in the Agreement or otherwise, these Legal Terms shall be governed according to the law and jurisdiction of the principal place of business of the according DHL Freight entity/division providing the transportation services.