Skip to content

API Farm

API Farm is DHL Freight’s integration toolbox – a suite of REST APIs that lets you connect your systems directly to DHL Freight’s services. With these APIs, you can: Search for DHL ServicePoints Book transports Print shipping labels Calculate shipping prices You can view API definitions, explore examples, and test API calls directly in the … Continued

Getting started

Prerequisites DHL Customer Number: Most APIs require a DHL customer number. Your company must be registered with an organisation number. Apply here API Key: You’ll receive an API key after registering your organisation and application in API Farm. API keys are GUIDs and must be included in the request header of each API call. Registration … Continued

AdditionalService API

What is it? The AdditionalService API lets you see which extra services you can add to a DHL shipment (like insurance, delivery options, etc.). What can you do with it? Check which additional services are available for your shipment. Get the codes you need for handling, pickup, transport instructions, and routing. Make sure you don’t … Continued

e-ID API

What is it? The e-ID API is used to validate DHL Freight account numbers. For example, when you want to request quotes for a specific account number. Why use it? Needed for some DHL APIs, like PriceQuote, to get your contract prices. Ensures only authorized users can access your account information. You can apply for … Continued

HomeDeliveryLocator API

What is it? The HomeDeliveryLocator API is used with the “DHL Home Delivery” product. It helps you find out which extra services are available for a specific home delivery, based on the recipient’s postal code and sometimes the DHL account number. What can you do with it? Check which additional services you can offer for … Continued

Pallet API

What is it? The Pallet API is for DHL Freight Sweden’s pallet exchange system. It helps you keep track of your pallet account. What can you do with it? See your current pallet balance. View your latest pallet transactions. Why use it? Makes it easy to manage and monitor your pallet exchanges with DHL.

PickupRequest API

What is it? The PickupRequest API is used to book a pickup for most DHL Freight products. You send the pickup details, and the API tells you if the booking is accepted, moved to another date, or rejected. How does it work? Accepted: You get a booking number (save this for cancellations or tracking). Moved: … Continued

PostalCodes API

What is it? The PostalCodes API helps you check if a Swedish postal code is valid for DHL shipments. It’s mainly for Swedish postal codes; codes outside Sweden are usually not supported. What can you do with it? Validate Swedish postal codes before sending data to DHL. Find the correct domestic routing/linehaul code and international … Continued

PriceQuote API

What is it? The PriceQuote API provides a preliminary freight price for a shipment. It uses your shipment information to generate an estimated cost, either based on your DHL Freight agreement or the standard gross price if no contract is in place. The price returned is only an estimate and not legally binding. What do … Continued

Print API

What is it? The Print API lets you create and download shipping documents for DHL shipments. What can you do with it? Generate shipping labels Create instruction labels for home delivery Get Swedish waybills and international CMR waybills Download shipment lists and guarantee service labels How does it work? The documents are returned in Base64 … Continued