GET /servicepoints
Get service points based on the given input parameters
Servers
- https://api-mock.dhl.com/mydhlapi
- https://express.api.dhl.com/mydhlapi/test
- https://express.api.dhl.com/mydhlapi
Request headers
Name | Type | Required | Description |
---|---|---|---|
Plugin-Version |
String | No |
Please provide version of the plugin (applicable to 3PV only) |
Shipping-System-Platform-Version |
String | No |
Please provide version of the shipping platform (applicable to 3PV only) |
Webstore-Platform-Version |
String | No |
Please provide version of the webstore platform (applicable to 3PV only) |
Message-Reference-Date |
String | No |
Optional reference date in the HTTP-date format https://tools.ietf.org/html/rfc7231#section-7.1.1.2 |
Webstore-Platform-Name |
String | No |
Please provide name of the webstore platform (applicable to 3PV only) |
Shipping-System-Platform-Name |
String | No |
Please provide name of the shipping platform(applicable to 3PV only) |
Message-Reference |
String | No |
Please provide message reference |
Plugin-Name |
String | No |
Please provide name of the plugin (applicable to 3PV only) |
Query parameters
Name | Type | Required | Description |
---|---|---|---|
importCharges[] |
Array | No |
Y/N – indicator whether it is possible to pay import charges on service point. |
svpStatus[] |
Array | No |
ServicePoint Status(svpStatus) to be used especially when looking for inactive service points with the svpStatus S,U,X,Y. By default active svpStatus 'A' is considered when this parameter is not sent in the request. A = Service Available (Open) S = Service Suspended (Temporarily closed) U = Service Unavailable (Temporarily closed) Y = Not Yet Open (Temporarily closed) X = Closed (Temporarily closed) |
combineParameters |
String | No |
Allows combination of values for parameters servicePointTypes and importChanges. Limitations:- Only 1 level of conditions is allowed (not multiple AND/OR)Applicable only on servicePointTypes and importCharges parameters “,” stands for OR condition “&” stands for AND condition “()” splits multiple conditions. |
width |
String | No |
Max. width of the shipment - the middle dimension e.g. 20. Decimals are allowed as well (decimal separator either “,” or “.”) |
capability |
String | No |
Comma separated list of physical process capability codes. 81: I have a DHL account or return shipment 82: I have paid online 88: I will pay at the DHL Service Point 73: I will create a DHL shipping label at the DHL Service Point 74: I have printed a DHL label 75,76: I have a QR code 78,79: Im collecting a DHL Express parcel 86,87: I have directed a DHL Express parcel to a DHL Service Point Possible Combinations : 81,73 | 81,74 | 81,75,76 | 82,74 | 82,75,76 | 88,73 | 78,79 | 86,87 Note: | is just used to represent the seperation of combinations. |
shipmentID |
String | No |
To specify the shipment ID. This is used for Servicepoint Capacity Management System parameter. |
latitude |
String | No |
Latitude of user location. If address / servicePointID parameter used, this parameter is not needed. |
pieceCountLimit |
String | No |
Static number, max pieces which can be handled on the service point. |
openDay[] |
Array | No |
Open on Weekday, valid values as follow: 1 - Monday 2 - Tuesday 3 - Wednesday 4 - Thursday 5 - Friday 6 - Saturday 0 – Sunday |
longitude |
String | No |
Longitude of user location. If address / servicePointID parameter used, this parameter is not needed. It works in combination with the latitude parameter |
b64[] |
Array | No |
This indicates whether the address parameter contains the base64 encoded value or not. |
length |
String | No |
Max. length of the shipment - the highest dimension e.g. 30. Decimals are allowed as well (decimal separator either “,” or “.”) |
key |
String | No |
Unique API key which required separate onboarding request to enable this service. Please approach your country representative for onboarding. Once approval is granted, API key will be generated and used for authentication. |
openAfter |
String | No |
Service points open After given time e.g.:15:00 will find service points which are open after 15:00 |
pieceID |
String | No |
Piece ID without Data Identifier / Prefix. (for example JD0081105201831337270 instead of JJD0081105201831337270). This is a Servicepoint Capacity Management System parameter. |
providerId |
String | No |
To specify the providerId(provider) for the place ID |
edd |
String | No |
Estimated Delivery date: YYYY-MM-DDThh:mm:ssTZD (for example 2023-06-25T22:59:00Z). This is a Servicepoint Capacity Management System Parameter to receive a capacity data of the found service points additionally calling Servicepoint Capacity Management System service. |
servicePointResults |
String | No |
Max. number of service points to be returned. If id or idf is used, this parameter is not needed as this will return searched service point. |
language |
String | No |
Language Code - represents the language. Mandatory if Script Code is provided or Language Country Code is provided, else optional. E.g. ‘eng’ Language Code is using ISO 3166-1 alpha-3 (3 letters) |
resultUom[] |
Array | No |
Distance uom to be used when returning response, it can be either km or mi. If not provided, default uom set for the country is returned. |
height |
String | No |
Max. height of the shipment - the lowest dimension e.g. 10. Decimals are allowed as well (decimal separator either “,” or “.”) |
shipmentOriginServiceAreaCode |
String | No |
To specify the Shipment Origin Service Area Code. This is a Servicepoint Capacity Management System parameter. |
serviceAreaCode |
String | No |
Service Area Code of the search address |
encrypt[] |
Array | No |
This 'encrypt' flag is to indicate to Service Point Locator whether the address is tokenized(encrypt=y) or non-tokenized. So that Service Point Locator can detokenize to provide matching Service Point list. When 'encrypt=y', Service Point Locator clients should mandatorily send tokenized address in the REST request. When 'encrypt=n' or without 'encrypt' parameter, client should only send non-tokenized address(raw address). Sample below:
Address Tokenization: Service Point Locator provides additional security to mask the address sent by the client in REST request which will hide raw address visible on the ‘View page Source’ or in ‘Developer tools. |
countryCode |
String | No |
Only ISO 3166-1 - Alpha-2 for country code can be used, e.g. “NL”, “ES”, “GB”, “US”, “DE”, .... This country code is used for returning matching service points in that country. When rendering the service point information, the time format (24h or AM/PM), and distance unit (km/miles) are derived from the country information stored in the GSPL database for the country specified via this parameter. E.g. for countryCode=GB will be time format AM/PM and distance unit will be mi. E.g. for countryCode=DE will be time format 24h and distance unit will be km. The CountryCode is also used in the address search by Google/Bing to limit the results to the specified country (f.e. to avoid picking a street with the same name from a different country) |
excludeFullyBooked[] |
Array | No |
Parameter which will enable to filter out fully booked services in the Service Point Locator response to client. Values: Y - Service Point Locator will not send back service points which are fully booked. N - Service Point Locator will send back all service points, also those where is no free capacity. If not provided in request, it will be set up as N by default. This is a Servicepoint Capacity Management System parameter. |
languageCountryCode |
String | No |
Language Country Code - can be used to differentiate between linguistic variants of the same Language. |
dimensionsUom[] |
Array | No |
Dimension units – cm or in. Required with any of length, width or height parameter. |
servicePointID |
String | No |
Service Point ID is a unique key with 6 characters, consisting of Service Area for first 3 characters (e.g. BRU) and the last 3 characters is the Facility code (e.g. 001); Service point ID = BRU001. If address is used, id is not possible to use. |
languageScriptCode |
String | No |
Language Script Code - represents the writing system. Mandatory if Language Country Code is provided, else optional. |
openBefore |
String | No |
Service points open Before given Time. E.g.: 14:00 will find service points which are open before 14:00 |
weightUom[] |
Array | No |
Weight units – kg or lb. Required if weight is passed in. |
isResultsSpecificCapabRequired[] |
Array | No |
This is to include preconfigured non UI capability codes(ex. PPC 72) to be considered while sending the request to Reference Data backend service. PPC 72 is applicable only for REST request and not for Service Point Locator UI. |
servicePointTypes[] |
Array | No |
Comma separated list of service point types, e.g. “CTY,STN,247”. Allowed Values: CTY (City) - High street premises. DHL owned and managed. Eg. Downtown STN (Station) - DHL premises. DHL owned and managed at PUD locations PRT (Partner) - Partners(External) store. Eg. 7-Eleven, Shell 247 (24/7) - operating 24hours a day, has locker facility. DHL owned and unmanned or / and automated |
weight |
String | No |
Max. weight of the shipment. Decimals are allowed as well (decimal separator either “,” or “.”) |
placeId |
String | No |
To specify the placeID for which the nearest service points have to be searched. PlaceId refers to the ID provided by any provider for particular Address. Ex: Google |
maxDistance |
String | No |
Maximum distance in kilometers between the geocoded address and the returned Service Points. Values equal or less than 0 are ignored. Accuracy of the maxDistance parameter: The GREF web service uses a search rectangle for Service Point searches. Therefore the maxDistance value is used to create a square with side length l = maxDistance * 2. This means that the distance of some of the found Service Points may actually be longer as specified by the maxDistance parameter, if the Service Point is located outside the circle with radius r = maxDistance, but still within the search square: Centre point of the search square is the latitude/longitude pair resulting from a geocoding request to the Bing geocoding API, which in some cases may not represent the actual location of the address. The more precisely the address is specified, the higher is the probability that the geocoded location matches with the search address. |
address |
String | No |
The address near which Service Points are to be found. If servicePointID is used, address is not needed. Address can be sent as raw address. However to be GDPR compliant, tokenized address in request should be sent. |
How to start integrating
- Add HTTP Task to your workflow definition.
- Search for the API you want to integrate with and click on the name.
- This loads the API reference documentation and prepares the Http request settings.
- Click Test request to test run your request to the API and see the API's response.