A delivery API that retailers could integrate in a day
Retailers wanted same day delivery but every integration was a bespoke project. The fix was a documented public API plus routing and demand models behind it.
- Role
- Data Scientist and IT Specialist, Peddler
- Period
- 2022 to 2024
- Sector
- Logistics
- Stack
- Python, FastAPI, PostgreSQL, scikit-learn, Docker
Days
Integration time
From weeks of bespoke work
Next day
Planning horizon
From same morning
Public API
Surface
Versioned and documented
The situation
Delivery capacity was planned by hand each morning. Demand was known only after it arrived, so couriers were either idle or overwhelmed, and every new retailer meant another custom integration.
The approach
- 01Public Delivery as a Service API with versioned documentation, so integration became a self serve task
- 02Demand forecasting per zone and time window to plan courier capacity ahead of the day rather than during it
- 03Operational dashboards that showed the planners the same numbers the models used
The result
- Retailer integration went from a bespoke project to reading a docs site
- Capacity planned against a forecast instead of yesterday and a guess
- One shared operational picture for planners, couriers and engineering
Public documentation for the API is at shipping-api-docs.pdlr.nl.