How to Detect Duplicate Invoices and Invoice Fraud
Catch duplicate invoice numbers, fabricated GSTINs, and near-duplicate files across a batch of documents — the four fraud signals that matter and how to check them.
How to Detect Duplicate Invoices and Invoice Fraud in Your Documents
Duplicate billing is one of the most common — and most boring to catch manually — ways money quietly leaks out of a business. A vendor resubmits the same invoice with a slightly different number. A fabricated GSTIN slips through because nobody checks the math behind the check digit. Two "different" invoices turn out to be the same PDF re-saved with a new filename. None of this requires a sophisticated scam; it just requires nobody having time to cross-check every document by hand, which is exactly the position most small finance teams and CA firms are in during a busy filing month.
The four fraud signals that actually matter
Not every fraud-detection claim is equally useful. The ones worth checking, in order of how often they actually catch something real:
1. Duplicate invoice numbers across documents. The single most common pattern — the same invoice number appearing in two different files, sometimes months apart, sometimes from the same vendor "reissuing" an invoice that was already paid.
2. GSTIN check-digit failures. Every valid GSTIN encodes a mathematical check digit — the 15th character is derivable from the first 14 using a defined algorithm. A GSTIN that fails this check isn't just a typo; it's either a data-entry error that needs fixing or, less innocently, a fabricated number that was never registered at all. This is checkable with pure math, no external lookup required.
3. Duplicate or near-duplicate files. The same document (or a lightly edited copy — a changed date, a changed amount) submitted more than once. This catches accidental resubmission as often as it catches anything deliberate.
4. Amount anomalies. Unusually large amounts, or suspiciously round numbers repeating across otherwise-unrelated invoices — weaker signals on their own, but useful supporting context alongside the first three.
What this doesn't replace
Worth being direct about the limits: none of the checks above verify that a vendor's GSTIN is actively registered on the GST portal (that requires a live lookup, not just check-digit math), confirm e-invoice/IRN authenticity, or perform a full three-way match against your purchase order and goods-receipt records. Automated screening catches the patterns that are mechanically detectable across a batch of documents — it's a first pass that flags what deserves a closer look, not a replacement for verifying vendor registration or doing PO matching where that level of certainty matters.
Manual detection vs. automated screening
Doing this by hand means opening every invoice, cross-referencing invoice numbers in a spreadsheet, manually running the GSTIN check-digit formula (or trusting that it was entered correctly), and eyeballing files for duplicates — realistic for a handful of invoices, not realistic for a batch of fifty from twelve different vendors.
AllPDFMagic's fraud detection workflow runs all four checks above across a batch of documents in one pass: upload 2 or more invoices/documents and get back a risk score per document, a list of specific flagged patterns (which invoice numbers repeat, which GSTINs fail the check digit, which files are near-duplicates), and an explicit list of what wasn't checked — no vague "risk detected" without specifics.
What you get back
| Field | What it tells you |
|---|---|
| Overall risk score (0–1) | Aggregate signal across all documents in the batch |
| Fraud alerts | Specific flagged patterns with the affected filename |
| Duplicate invoice numbers | Which number, and which files it appears in |
| GSTIN checksum failures | Which GSTIN, in which file, failed the check digit |
| Checks not performed | What this screening doesn't cover (portal registration, IRN, PO matching) |
This is also available as a Reconcile Documents / Detect Document Fraud action in the n8n community node and the Zapier integration, so it can run automatically on a schedule against a folder of incoming vendor invoices rather than requiring a manual upload each time.
Who actually needs this
Fraud/duplicate screening is most useful for CA firms and finance teams handling invoices from many vendors at volume — the pattern-matching value scales with the number of documents being cross-referenced. For a handful of invoices a month from vendors you already know well, the manual checks above are enough. It requires a Developer plan or above ($29/month, ₹2,499/month), since each screening call processes multiple documents rather than one.
FAQs
Will this catch every kind of invoice fraud? No, and treating it that way would be a mistake. It catches the patterns that are mechanically detectable across a document batch — duplicate numbers, checksum failures, duplicate files, amount anomalies. A determined, sophisticated fraud that varies every field would need additional verification (vendor callback, portal registration check) that this doesn't replace.
How is a GSTIN check-digit failure different from just a typo? Mechanically, the tool can't tell the difference — both produce the same failed check. That's exactly why it's flagged rather than silently corrected: a typo needs fixing before filing, and a fabricated number needs the invoice questioned. Either way, it's worth a human looking at it.
Do I need 2 documents minimum, or can I screen one invoice at a time? Fraud/duplicate detection needs at least 2 documents, since duplicate-number and duplicate-file checks are inherently cross-document comparisons. A single invoice can still be checked for a valid GSTIN format via the free Validate GSTIN tool.
Can this run automatically instead of me uploading files each time? Yes — via the n8n or Zapier integration, point it at a folder or inbox that receives vendor invoices and it runs the same screening on a schedule or trigger.
Frequently Asked Questions
No. It catches patterns that are mechanically detectable across a document batch — duplicate numbers, checksum failures, duplicate files, amount anomalies. A sophisticated fraud that varies every field would need additional verification this doesn't replace.
Mechanically, the tool can't tell the difference — both produce the same failed check. That's why it's flagged rather than silently corrected: either way, it's worth a human looking at it.
Fraud/duplicate detection needs at least 2 documents, since duplicate-number and duplicate-file checks are inherently cross-document comparisons. A single invoice can still be checked for a valid GSTIN format with the free Validate GSTIN tool.
Yes — via the n8n or Zapier integration, point it at a folder or inbox that receives vendor invoices and it runs the same screening on a schedule or trigger.