How We Cut Invoice Processing Time by 90% for a Logistics Firm
A mid-size logistics company was spending 14 hours a week on manual invoice reconciliation. We built an automated pipeline that brought it under 90 minutes.
This is a case study of a project we completed for a mid-size logistics company managing freight across 12 states. Names are anonymised at the client’s request.
The Problem
The client’s finance team was manually reconciling courier invoices against their warehouse management system (WMS) every week. The process:
- Download invoice files from 6 courier portals (CSV, XLSX, PDF)
- Normalize formats manually in Excel
- Cross-reference against WMS shipment records
- Flag discrepancies
- Email the operations team with exceptions
- Wait for responses, resolve disputes, re-run
Total time: 14 hours per week across two finance team members. Accuracy: approximately 94% — meaning roughly 6% of invoice lines had undetected errors.
The 6% compounded. Disputed invoices averaged 23 days to resolve. The finance team estimated ₹4–6 lakh in overcharges per year that went unchallenged simply because the reconciliation backlog was too deep.
What We Built
A three-layer automated pipeline:
Layer 1: Ingestion
We built courier-specific parsers for each of the 6 portals. Each parser handles that courier’s specific format — column positions, date formats, rate structures, and the edge cases that only appear in production data.
Invoices are ingested daily via scheduled fetch (APIs where available, SFTP/email where not). Parsed data lands in a normalised schema regardless of source.
Layer 2: Reconciliation Engine
The reconciliation engine matches each invoice line to a WMS shipment record using a multi-step matching algorithm:
- Exact match on AWB number (fastest path, ~78% of lines)
- Fuzzy match on shipment date + origin + destination + weight for lines without clean AWB references
- Exception queue for lines that can’t be matched automatically
Matched lines are verified against contracted rates. Discrepancies above a configurable threshold (default: ₹50 or 2%) are flagged.
Layer 3: Exception Dashboard + Notifications
Flagged exceptions surface in a dashboard accessible to the finance team. Each exception shows:
- Invoice line vs. WMS record side-by-side
- Discrepancy amount and type (overcharge, duplicate, missing shipment)
- Suggested action (dispute, approve, escalate)
The team reviews exceptions, not the full invoice. A Slack notification fires each morning with the exception count and total amount at risk.
Results
After 8 weeks in production:
| Metric | Before | After |
|---|---|---|
| Weekly reconciliation time | 14 hrs | 85 mins |
| Exception detection rate | ~94% | 99.3% |
| Average dispute resolution time | 23 days | 11 days |
| Estimated annual recovery | ₹4–6L | ₹9–11L |
The improvement in recovery wasn’t just from better detection — faster resolution meant more disputes were actioned before the courier’s dispute window closed.
What Made It Work
Courier-specific parsers, not a generic importer. A generic parser fails on edge cases. We wrote and tested a parser per courier, handling the quirks in each one’s export format.
Configurable matching thresholds. The finance team can adjust what counts as a discrepancy worth flagging. Too sensitive and the exception queue floods; too loose and errors slip through. Getting this calibration right took three weeks of production data.
Exception-first design. We didn’t try to give the team a full view of every matched invoice line. They don’t need it. They need to know what’s wrong. Everything else should be invisible.
Human in the loop for disputes. The system flags and suggests. A human approves disputes before they’re raised with the courier. This was the client’s requirement and it’s the right call — automated dispute filing without human review would create relationship problems with couriers.
Timeline and Cost
The project ran for 11 weeks, two engineers. The client’s break-even point (build cost vs. time savings + recovered overcharges) was approximately 4.5 months from go-live.
They’ve since extended the system to handle 3 additional couriers added after the initial build. The architecture was designed for this — adding a new courier requires a new parser (typically 2–3 days of work) and no changes to the reconciliation engine or dashboard.