Duplicate Freight Invoice Detector: Stop Paying the Same Shipment Twice
Scan your freight invoice register before payment, flag likely duplicates by carrier, PRO number, amount, and date, and let AP approve a hold or release on each one — so the same shipment never gets paid twice.
A web tool where you import your freight invoice register, AI flags likely duplicate invoices using tunable rules (carrier + PRO + amount, with a date window), AP reviews each suspected pair and approves a hold or a release, and the tool exports a cleared register ready for payment.
Before you start
- A Supabase account (free)
- A Vercel account (free)
- A Resend account (free)
- A freight invoice register CSV
- Claude Code or any AI coding agent
The problem this kills
Carriers re-bill. A lot. The same shipment shows up as a second invoice under a slightly different invoice number, an EDI re-send creates a near-identical copy, a supplemental or corrected bill looks just like the original, and somewhere in a register of thousands of lines, AP pays both. Freight overpayment from duplicate billing is one of the quietest, most common leaks in logistics spend — and it's almost impossible to catch by eyeballing a spreadsheet.
The usual "control" is hoping someone notices. They don't, because the duplicate rarely arrives the same day, the amount might be off by a rounding cent, and the PRO (the carrier's shipment tracking number) is buried three columns over. By the time the audit finds it months later, you're chasing a credit instead of preventing a payment. You don't need to live with that, and you don't need to be a developer to fix it.
What you'll build
A simple internal web tool. You import your freight invoice register (a CSV — the same export you already pull for payment). The tool normalizes the messy fields, then scans for likely duplicates using rules you can tune: an exact match on carrier + PRO + amount, plus fuzzier catches like the same carrier and PRO within a few days, or the same amount and date for one carrier. It understands that a supplemental or partial bill isn't always a duplicate, so it scores confidence instead of guessing. It shows AP a clean queue of suspected duplicate pairs. AP opens each pair, sees both invoices side by side, and clicks Hold (don't pay — likely a dupe) or Release (it's legitimate, pay it). Only the released invoices flow into a cleared register you export back for payment.
What's inside the Implementation Plan
The downloadable plan is a step-by-step file you paste into an AI coding agent. It opens by interviewing you about your business — which TMS or accounting system your register exports from, exactly what your columns are named, how your carriers number their PROs and invoices, your typical and peak invoice volumes, how you currently tell a supplemental bill from a duplicate, and your messy edge cases — and then it tailors the data model, the matching rules, and every later step to your answers. This is not a generic template; the agent reflects a short spec back to you and waits for your thumbs-up before it builds anything. From there it walks the agent through the import, the duplicate-detection logic with tunable rules, the AP review-and-approve queue with hold-or-release, and the cleared-register export — each step with a ready-to-copy prompt. There's also a fallback so you can build and run the whole thing today even with no API to your TMS.
The governance it includes (this is the point)
This sits right in front of money going out the door, so it ships with the controls a finance team needs: login so only your team can use it, row-level security so you only ever see your own organization's invoices, a complete audit trail of who reviewed and held or released which invoices and when, a hard human-approval gate so nothing is marked pay-ready until AP signs off on each suspected duplicate, and duplicate guards keyed on carrier + PRO + amount so the same invoice can't be imported or cleared twice. The AI flags and ranks; a person decides.
Who it's for
AP clerks, freight-audit analysts, and logistics controllers who pay carrier invoices and suspect (or know) that duplicates slip through. If you can describe how you tell a real second bill from an accidental re-bill, you can build this.
You've got this — start with the plan, paste the first prompt, answer the interview, and you'll see your first batch of suspected duplicates flagged the same afternoon.