Custom DHL API integration
Appfront builds custom DHL integrations that automate your entire shipping process. Generate labels for Parcel NL and Express, sync tracking statuses to your customers, show service points at checkout and schedule pickups, all directly from your webshop, WMS or custom application via the official DHL Developer APIs.
What is a DHL API integration?
Via developer.dhl.com, DHL offers a set of REST APIs that let you control shipping processes programmatically. The Shipment API generates labels for DHL Parcel NL (domestic) and DHL Express (international), including all required address validation and customs documents. The Tracking API provides a detailed status history for each shipment, which you can display in your own system.
In addition, the Location Finder API provides an overview of all service points and parcel points in a given postcode area, ideal for offering as a delivery option in your checkout. The Pickup API makes it possible to place pickup requests programmatically, so a DHL courier collects your shipments on site.
A custom integration connects these APIs to your webshop, WMS or custom application. Orders are automatically turned into shipping labels, customers see the current delivery status in your environment, and your logistics team no longer has to create labels manually or retype tracking numbers. Appfront builds these integrations with careful attention to error handling, rate limits and scalability during peak volumes.
Automated labelling
Orders are instantly turned into ready-to-ship labels via the Shipment API. Address validation, weight calculation and product type selection happen automatically based on your order data.
Real-time tracking
Status updates from DHL are continuously synchronised with your system. Customers follow the progress of their shipment in your own environment, without having to navigate to external track-and-trace pages.
Service point integration
The Location Finder API shows all DHL service points and parcel lockers near your customer. Integrate it as a delivery option in your checkout for higher conversion and fewer missed deliveries.
Our development process for DHL integrations
We work methodically from analysis to go-live and make sure the integration stays reliable, even during peaks in shipping volume. Every step is aimed at an integration your logistics team can trust and that grows with your order volumes.
We map out your shipping volumes, destinations and DHL products. Which label types do you need? Do you ship domestically, internationally or both? Are specific options such as evening delivery or signature required?
We select the right DHL APIs, design the error handling strategy (rate limits, timeouts, address validation errors) and determine how tracking data is synchronised and cached.
Implementation of label generation, tracking synchronisation, service point lookup and retry logic. Testing against the DHL sandbox environment with representative order data from your system.
Controlled go-live with a subset of orders, followed by a full rollout. Monitoring of API availability, error rates and processing times, with alerting on deviations.
Features of a DHL API integration
Every DHL integration is tailored to your specific shipping logic, carriers and systems. Below are the features we most often deliver for organisations looking to automate their shipping process.
Label generation
Automatically create shipping labels for DHL Parcel NL and DHL Express based on order data. Includes address validation, weight calculation, product type selection and direct PDF output for your print station or thermal printer.
Tracking & webhooks
Retrieve real-time tracking statuses via the DHL Tracking API and feed them into your customer communication. Status changes automatically trigger emails, push notifications or updates in your customer portal.
Service point finder
Integrate the DHL Location Finder API as a delivery option in your checkout. Customers choose a service point or parcel locker based on their postcode, with a map view and opening hours — increasing conversion when people aren't home.
Pickup scheduling
Place pickup requests programmatically via the DHL Pickup API. Based on your daily shipping volume and cut-off times, a courier is scheduled automatically, so your warehouse team doesn't have to arrange it manually.
Multi-carrier support
An abstraction layer on top of DHL, PostNL, DPD and other carriers. The system automatically selects the best carrier based on destination, weight, delivery time and cost. If a carrier goes down, the fallback switches to an alternative.
Return label automation
Include return labels with the original shipment or generate them on demand when a customer registers a return. Includes tracking of the return shipment and an automatic status update in your order system when it arrives at the warehouse.
Typical use cases in practice
A DHL API integration looks different for every organisation. We come across the scenarios below regularly — and for each of them we have a proven architecture that pays attention to scalability, error handling and carrier-specific edge cases.
E-commerce fulfilment
Webshops on WooCommerce, Shopify or Magento that ship anywhere from dozens to thousands of parcels a day. Orders are automatically turned into labels, tracking links appear straight in the order confirmation, and customers can choose home delivery or a service point. See also our API integrations.
B2B logistics
Organisations that send pallets, part loads or bulk shipments via DHL Freight or Express. Integration with your WMS or ERP so that pick lists automatically lead to shipping orders, including customs documentation for international B2B shipments and consolidated invoicing per cost centre.
Cross-border shipping
DHL eCommerce and Express for international e-commerce. Automatic generation of customs documents (CN23, commercial invoice), HS code mapping, and correct calculation of import duties and VAT. Tracking across borders in a single, unified interface for your customer.
Omnichannel (click & collect)
A combination of home delivery, service points and click and collect from physical stores. The checkout shows the available delivery options per product based on stock location and customer address. DHL Location Finder integrates service points as a full delivery channel alongside your own pickup locations.
Technology we use
We build DHL integrations with the official APIs from developer.dhl.com, combined with the backend stack that fits your systems. The exact choice depends on your platform, volumes and carrier strategy.
Why choose Appfront for your DHL integration?
Appfront has extensive experience building shipping integrations for e-commerce companies and logistics organisations in the Netherlands. We know the DHL APIs in detail, including the specific edge cases around address validation, customs data and the differing response structures for each DHL product.
A shipping integration has to be reliable at the moments that matter most: during peak periods such as Black Friday, Sinterklaas and Christmas. That is why we design with scalability as the starting point, including queue-based processing, caching of service point data and graceful degradation during API downtime.
You work with a single point of contact who understands both the technical DHL API documentation and your business logic. This prevents miscommunication about carrier selection rules, cut-off times and warehouse-specific requirements.
Also take a look at our broader services around API integrations, middleware and custom software.
- Experience with the DHL Parcel NL, Express and eCommerce APIs
- Error handling for DHL-specific edge cases (address validation, customs data, unknown postcodes)
- Multi-carrier architecture with DHL, PostNL and DPD
- Monitoring and alerting for API downtime or increased error rates
- Scalability for peak periods (Black Friday, Christmas)
- Queue-based processing for high volumes without timeout risk
- Clear documentation for your logistics and development teams
- A single point of contact, no passing you between account managers
- Ongoing maintenance and proactive further development
- An approach tailored to your existing WMS/ERP landscape
Frequently asked questions about DHL API integrations
Answers to the questions we get asked most often about DHL integrations.
A DHL API integration is a technical integration between your system (webshop, WMS or own application) and the DHL Developer APIs. With the Shipment API you generate shipping labels programmatically for DHL Parcel NL and DHL Express, the Tracking API gives your customers real-time status updates, the Location Finder shows service points and parcel points in your checkout, and the Pickup API schedules pickup requests. The result: less manual work, faster processing and a better customer experience.
We integrate with all relevant DHL products: DHL Parcel NL for domestic shipments, DHL Express for international express shipments, DHL eCommerce for cross-border e-commerce and DHL Freight for pallets and part loads. For each product, we select the right API endpoints and configure the specific options, such as evening delivery, signature on delivery or customs documents.
DHL offers a Tracking API that returns the current status based on a tracking number, from registered and in transit to delivered or at a service point. We implement polling with configurable intervals or process DHL notifications as soon as they are available, so your customers stay informed in your own environment (order status page, email, app notification) without having to navigate to an external track-and-trace site.
A standard integration with label generation and tracking for DHL Parcel NL can go live within a few weeks. More complex scenarios, such as multiple DHL products, international shipments with customs data, multi-carrier fallback or integration with an existing WMS, take more time. After analysing your volumes, destinations and current system landscape, we give you a concrete plan.
The cost depends on the number of DHL products to be integrated, the complexity of your fulfilment logic (multi-warehouse, carrier selection rules, customs handling), the required depth of tracking and whether integrations with existing systems are needed. Ongoing maintenance and monitoring also affect the total investment. After a no-obligation analysis, we always provide a clear quote.
Yes. We regularly build multi-carrier architectures in which DHL, PostNL, DPD and other carriers work side by side. Based on destination, weight, desired delivery time or cost, the system automatically selects the optimal carrier. If a carrier has an outage or capacity problems, the fallback logic switches to an alternative, with no manual intervention.
Optimise your shipping process
Tell us about your shipping volumes, destinations and current system landscape. We'll analyse which DHL APIs are most valuable for your situation and give you a clear picture of the possibilities, in a no-obligation half-hour conversation.