runbookify
← All plans
Order Management & Fulfillment / Order Exceptions, Holds & Fraud

Duplicate Order Detector: Stop Entering and Shipping the Same Order Twice

Scan your order feed for likely duplicates — same customer, PO, and lines inside a time window — and get a reviewer's decision before anything is merged or cancelled, so the same order stops getting keyed twice and double-shipped.

BeginnerAn afternoonBuilds onNext.jsSupabaseResend
What you'll build

A web tool where you import your order feed, AI fuzzy-matches likely duplicate orders (same customer + PO + line hash within a window), a reviewer decides which ones to merge or cancel, and the tool records the action with a full audit trail — so the same order never ships twice.

Gated download

Enter your email — the plan downloads instantly and a copy lands in your inbox.

By submitting your email you'll also receive the weekly runbookify newsletter. You can unsubscribe at any time.

Before you start

  • A Supabase account (free)
  • A Vercel account (free)
  • A Resend account (free)
  • An order feed or order export CSV
  • Claude Code or any AI coding agent

The problem this kills

The same order gets entered twice all the time. A customer emails a PO, then calls to "make sure you got it," and a CSR keys it again. An EDI feed hiccups and re-sends. A rep copies last week's order to save time and forgets to change the PO. Now there are two orders for the same goods, and unless somebody catches it, you pick, pack, and ship both — then eat the return freight, the restock, and the awkward phone call.

Catching duplicates today means somebody eyeballing the order list and hoping they remember that this customer already ordered this. It doesn't scale, it misses the near-matches (slightly different PO formatting, an extra line, a typo in the customer name), and nobody owns it. You don't need a developer to fix this — you need a tool that flags the suspects and lets a human make the call.

What you'll build

A simple internal web tool. You import your order feed (or a CSV export of recent orders). The tool builds a dedupe key for every order — customer + PO + a hash of the line items — and then fuzzy-matches across a time window you set, so it catches near-duplicates, not just exact copies: a PO that's the same except for spacing or a leading zero, the same lines a day apart, the same customer under two slightly different names. It groups the suspects into duplicate clusters and shows a reviewer a clean queue: here are two orders that look like the same order, here's why we think so, here's the side-by-side. The reviewer decides — keep both, cancel the duplicate, or merge — and only then does the tool act and log it. Nothing is cancelled or merged automatically.

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 — what your order feed looks like, exactly what your order/PO/customer/line columns are named, how POs and SKUs are formatted, what counts as "the same order" in your shop, how wide the time window should be, your typical and peak order volumes, and the messy edge cases (standing orders, blanket POs, legitimate re-orders) — and then it tailors the dedupe key, the fuzzy-match 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 dedupe-and-cluster logic, the fuzzy-match tuning, the reviewer decision queue, the merge/cancel action with its approval gate, and the alert email — each step with a ready-to-copy prompt. There's also a fallback so you can build the whole thing today even with no API to your order system.

The governance it includes (this is the point)

This tool touches live orders, so it ships with the controls a fulfillment team needs: login so only your team can use it, row-level security so you only ever see your own organization's orders, a complete audit trail of who flagged, reviewed, and merged or cancelled which orders and when, a hard human-approval gate so no order is ever merged or cancelled until a reviewer signs off, and duplicate guards on the import itself so re-running the same feed can't create phantom clusters or process the same decision twice.

Who it's for

Order-entry teams, customer service reps, and fulfillment leads who keep finding the same order in the system twice — usually after it's already shipped. If you can describe what makes two orders "the same" in your business, 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 duplicate cluster light up the same afternoon.

Gated download

Enter your email — the plan downloads instantly and a copy lands in your inbox.

By submitting your email you'll also receive the weekly runbookify newsletter. You can unsubscribe at any time.