Skip to content
Abinash Satapathy

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

  1. 01Public Delivery as a Service API with versioned documentation, so integration became a self serve task
  2. 02Demand forecasting per zone and time window to plan courier capacity ahead of the day rather than during it
  3. 03Operational dashboards that showed the planners the same numbers the models used
0336699132JanMarMayJulSepNovObserved demandPlanned capacityMonthIndex, deliveries per day
Delivery demand against planned capacity. Before the forecast, capacity was set each morning from yesterday. After it, capacity moves ahead of demand, which is the difference between an idle fleet and a late one. Figures are directional.

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.


Other case studies