← All standards
Open specificationStablePublished November 2026Changelog

The Duplicate Bill Hold Build Standard

Before each pay run, every bill you are about to pay is checked against the bills already in your accounts. The same bill twice, or a supplier whose bank account just changed, waits for you with both bills side by side. You release it or void it. No purchase order needed. Works with Xero, MYOB or QuickBooks.

Used by

  • Bookkeeper
  • Accounts Payable Officer
  • Office Manager
  • Business Owner

10 min read · Published by AI Pathway

Where this sits: Stage 5 of 6: Close the books. See it on the map

Using Claude? This standard installs as a skill. Guides for ServiceM8, Xero and Simpro.

How to get this live in your business

Build it for meNot sure where to start or how to do it? Contact us and we'll help scope it and build it.
Build it yourself

DIY. The objects, the checks in order, and the pass test.

What this is

An open build standard for the check before each pay run. Every supplier bill that is approved and waiting to be paid is compared with the bills already in your accounts, waiting or paid, and anything that looks like the same bill twice, or a payment going to a new bank account, is held for you.

The core rule

It holds the bill and shows you both bills side by side. You release it or void it. Nothing in your accounts changes because the check ran.

What it does not do

It never pays, approves, voids or edits a bill, and never changes bank details. It needs no purchase order. Checking a bill against its order is the Invoice Check standard's job.

The hard part

Catching the same bill when it comes back with the number typed differently, a new number or on a second supplier record, and catching a changed bank account before the money goes, without holding every weekly bill that happens to repeat.

The skip bin company emails its invoice on the 2nd and you pay it on the 12th. On the 18th the same invoice turns up again in the accounts inbox, number typed a little differently, and someone enters it. It is approved with the rest on Thursday. Nobody notices until the accountant asks about the skip bin account in July, and by then the supplier has to be talked into a refund.

One pay run, from the bills waiting to be paid to the release

  1. On pay run day, every supplier bill that is approved and waiting to be paid at the cutoff is checked. Drafts and bills still awaiting approval are left out.
  2. Each bill is compared with the other bills waiting to be paid and the bills paid in the lookback window: the same supplier and invoice number, the same supplier and total within the window, and the same invoice number and total on a second supplier record.
  3. The supplier's bank account is compared with the account it was last paid to and with every other supplier's account.
  4. A bill that could not be compared in full, because a read came back cut short, is reported not checked, never clear.
  5. Does it look paid twice, or like a new bank account? If no, it is clear for the pay run.
  6. If yes, it is held, with both bills side by side and the rule that fired.
  7. Has a named person released it? If yes, it is paid in the normal pay run.
  8. If no, a person voids it or it waits for them. The check never pays, voids or edits a bill.
The filled diamond is the release. Before it, the check only reads your accounts and holds what looks wrong. A held bill is paid only after a named person releases it, and a bill the check could not compare in full is never called clear.

Take the spec to Claude, ChatGPT or Copilot. The sentence to paste is one click away.

1. We paid the same supplier bill twice and only found out at year end

It happens the same few ways in every business. A supplier sends a reminder and it is entered as a new bill. Two people enter the same invoice. A supplier ends up on two records in your accounts. Or the invoice is real, but the bank details on file were changed after an email that looked like it came from the supplier. Each one looks like an ordinary bill on pay run day.

This standard is one check, run before each pay run. It looks at every supplier bill that is approved and waiting to be paid at the cutoff, compares it with the other bills waiting and the bills paid in the last few months, and holds anything that matches one of five rules. You see both bills and decide.

Out of scope. Whether a bill is right against its purchase order, contract or agreed rates is the Invoice Check standard, and a business can run both. A bill can match its order to the cent and still be the second copy of one you already paid. Paying the bills, approving them and fixing a supplier record stay with your team.

It holds any bill that looks paid twice, or about to be paid to a new account, before the pay run. It reads the bills and supplier records in your accounts through their own sign-in, or through the AI Pathway connector you already signed in to, and changes nothing. You release or void each held bill, and anything it could not check comes to you marked not checked.

Facts that can change, and when we checked them

Checked as at 28 November 2026

The AI Pathway connector. Two read-only tools cover the bills. list_bills returns the bills awaiting payment and list_paid_bills the bills paid in full since a day you choose, up to 120 days back, each with the supplier’s id, their invoice number, the dates and the total. list_paid_bills reads Xero today. On MYOB or QuickBooks the paid bills are read through the accounts’ own sign-in.

Bank details. Neither tool reads the bank details on a supplier record yet, so rule 5 runs on your own data until it does: your build’s own connection to your accounts, or a supplier list you export.

These change. Check what the connection returns before you build, and run the pass test on your own file.

Check these against the primary instrument before you rely on them, and store the date you checked beside the value rather than hard-coding it. This standard tells you the shape and where to look. It is not legal advice and it does not tell you that anything complies.

2. The five ways the same bill gets paid twice

Each bill waiting to be paid is compared with every other bill waiting and every bill paid in the lookback window. Drafts and bills still awaiting approval are left out of both. A supplier is the record in your accounts, matched by its id, never by the name typed on it.

Held whenHow it is comparedWhat it catches
Same supplier, same invoice numberMatched by the supplier's id in your accounts, never by name. Numbers compared with case, spaces, punctuation and leading zeros taken out.INV-0042 paid on the 12th; inv 42 waiting today.
Same supplier, same total, within the windowIssue dates 30 days apart or less (a setting), and the numbers differ or one is missing.Two $1,980.00 bills a week apart, one with no number.
Same invoice and total, two supplier recordsThe same cleaned-up number and the same total on a different supplier record.SI-7781 paid to one record; SI 7781 waiting on another for the same business.
Bank account changed since the last paymentThe account on the supplier record now is not the one the supplier was last paid to.Last month's payment went to one account; this bill would go to another.
Bank account belongs to another supplierThe account on this supplier's record is on another supplier's record too.A new steel supplier with the same account as your paint supplier.

A weekly cleaner or a monthly lease will trip the second rule now and then. You release it once, and it stays released until the amount, the invoice number or the bank details change.

3. The bill and the hold, in the shape your developer needs

One result per bill in scope per run, and one hold per pair of bills under each rule. Money is whole cents. The build fills everything except the decision.

For your developer. Show the fields for your developer
bill                              # read from the ledger
  - bill_id                         # the ledger's own id
  - supplier_id, supplier_name      # the ledger's contact id
  - invoice_number?                 # as entered; may be missing
  - date, total
  - status                          # draft | awaiting_approval |
                                    #   awaiting_payment | paid | voided
  - entered_at
  - paid_date?, paid_to_account?    # paid bills only

supplier                          # read from the ledger
  - supplier_id, name
  - bank_account?                   # BSB and account, as held now

settings                          # a person keeps these
  - pay_run_day, cutoff
  - window_days                     # 30 unless changed
  - lookback_days
  - owner                           # who works the holds

hold                              # written by the build
  - hold_id, hold_key               # rule | bill ids sorted | other supplier
  - rule                            # same_invoice_number |
                                    #   same_amount_in_window |
                                    #   supplier_entered_twice |
                                    #   bank_changed | bank_shared
  - bills[]                         # both, side by side: supplier,
                                    #   invoice_number, date, total, status,
                                    #   paid_date, bank_account
  - other_supplier?                 # bank_shared: name and account
  - fingerprint                     # totals, numbers, accounts when raised
  - owner, raised_at

decision                          # a person, never the build
  - hold_id, action                 # release | void
  - by, at

result                            # one per bill in scope, per run
  - run_id, bill_id
  - status                          # clear | held | not_checked
  - hold_ids[], reason?

There is no status the build can set on a decision, and no field for a tolerance on the total. Matching totals are equal to the cent.

4. The checks, in order

Each check has to pass before the next one runs. The list of bills to check is fixed before any comparing starts, every rule runs on every bill, and no bill is called clear until your accounts have been read in full and a person has released every hold on it. A bill paid twice is harder to get back than one held for a day.

  1. Every approved bill waiting to be paid is checked before the pay run. Each run covers every supplier bill that is approved and awaiting payment at the pay run cutoff. Each one ends the run clear, held or not checked, with nothing skipped. Drafts and bills still awaiting approval are left out. The cutoff and the pay run day are settings the business keeps, and a bill entered after the cutoff waits for the next run.
  2. The same supplier and the same invoice number is held, however it was typed. A bill is held when another bill from the same supplier, matched by the supplier's id in your accounts and never by name, carries the same invoice number. Numbers are compared after case, spaces, punctuation and leading zeros are taken out, so INV-0042 and inv 42 are the same number.
  3. The same supplier and the same total within a few weeks is held, even with different invoice numbers. A bill is held when another bill from the same supplier has the same total and an issue date within the window (a setting, 30 days unless the business changes it), and the invoice numbers differ or one is missing. A supplier who sends a second copy with a new number is caught this way.
  4. The same invoice number and total on two supplier records is held. A bill is held when a bill on a different supplier record carries the same invoice number, after the same clean-up, and the same total. That is one supplier entered twice in your accounts, and the second record is how the bill gets paid twice.
  5. A bill whose bank details changed or belong to another supplier is held. A bill is held when its supplier's bank account is different from the account that supplier was last paid to, or matches the account on another supplier's record. The person who checks it never uses a phone number or email address from the bill or from the email that came with it. They ring the supplier on a number already on file from before the change.
  6. Each hold shows both bills side by side and the rule that fired. Every hold names the rule that fired and shows both bills: supplier, invoice number, date, total, status and paid date, and the bank account each was or would be paid to. A bank detail hold that matches another supplier shows that supplier and its account. The person deciding never has to go looking for the other bill.
  7. A person releases or voids each hold, and the bot never touches a bill. A held bill stays held until a person releases it or voids it. The bot never pays, approves, voids or edits a bill and never changes bank details. A release is logged with the person's name and the time, and only then does the bill count as clear for the pay run.
  8. A bill that could not be compared in full is reported not checked, never clear. When your accounts cannot be read in full (the paid bills come back cut short, or the supplier bank details cannot be read), each bill it could not compare is reported as not checked, with what was missing. A run that read only part of your accounts never says a bill is clear.
  9. The same pair is raised once, and a released pair stays released unless something changes. A pair of bills is raised once under each rule, however many times the check runs. Once a person releases it, it stays released, unless the amount, the invoice number or the bank details on either bill change. Then it is raised again as new.
  10. It keeps working if the person who built it leaves. Someone other than the person who built it can explain what it does, and it runs on an account the business owns.
  11. The pass test passes. In a test file of your own accounting software, enter a set of bills with one known duplicate for each rule and a clean set of near misses. Run the check. Every seeded duplicate is held with both bills and the rule that fired, the clean set has no holds, and the ledger's own history shows nothing was written.

5. One Thursday’s pay run

A made-up example, using the practice data that comes with this standard. Eleven bills are approved and waiting at the cutoff. The skip bin bill numbered inv 42 is held, because INV-0042 for the same $420.00 was paid on the 12th. Two $1,980.00 bills from the electrician a week apart, one with no number, are held together. So is this week’s $450.00 cleaning bill, because last week’s was the same amount.

Invoice SI-7781 for $3,302.50 was paid to Bayside Plumbing Supplies last week, and SI 7781 for the same amount is waiting on a second record called Bayside Plumbing, so it is held. The timber supplier’s bill is held because its bank account is not the one it was paid to last month. A new supplier, Brisbane Steel Co, is held because its account is the same as Northside Paint’s.

Four bills come through clear. The gas supplier sent two bills at different totals, the office supplier’s $1,980.00 bill is a different supplier from the electrician, and the rent bill is 31 days after last month’s, outside the window. The bookkeeper voids the second skip bin bill and releases the cleaner. When the cleaner reissues that bill under a new number, it comes back once for a second look.

6. A supplier’s bank details changed by email and we paid a scammer

The email looks like it comes from a supplier you deal with every month. It says they have changed banks and attaches a letterhead. Someone updates the supplier record, and the next payment goes to the scammer. The bill itself is real, so a duplicate check on its own would never see it.

So the check compares each supplier’s bank account with the account that supplier was last paid to, and with every other supplier’s account. A change, or a shared account, holds the bill. The hold shows both accounts.

The rule for the person who checks it. Never ring or email the supplier using details from the bill or the email that came with it. Ring them on a number you already had on file before the change, and ask them to read out the new account. Release the bill only after that call.

7. What stays with a person

  • Releasing or voiding each held bill, by name. The release is kept with your name and the time.
  • Ringing the supplier on a number already on file before releasing a bank detail hold.
  • Every bill marked not checked, before it goes in the pay run.
  • Merging a supplier entered twice, and fixing the bank details on a supplier record.

8. Run it your way

The same checks and the same pass test on each. Whichever you pick, two rules hold. Nothing in your accounts is changed by the check, and a bill is clear only when everything could be read.

  • Google Workspace. A sheet with tabs for the bills waiting, the bills paid, the supplier accounts and the holds, filled from exports of your accounts before each pay run. It never connects to your accounts. See building on Google Workspace.
  • Microsoft 365. SharePoint lists for the holds and the run log, and one flow that reads your accounts through their own connector before each pay run and posts the holds to Teams. The Pay Each Bill Once build plan lays out the lists and the flow.
  • Your own Grok Bot or Claude. Connected to your accounts through AI Pathway, it reads the bills waiting and the bills paid, and lists every hold with both bills in the chat before you approve the pay run. It cannot pay, void or edit anything.
  • Your own code. Hand this page to a coding agent. It gets the checks as data, practice data to build against, and a test runner that tells it when the build is right. See running a standard anywhere.

9. What to Test on Practice Data, and What Not to Build Yourself

Everything runs on practice data first: the bills, the supplier records, the holds, a person's release and a read that comes back cut short. In production the bills come from list_bills and list_paid_bills on the AI Pathway connector, both read only. Bank details come from your own connection to your accounts until the connector reads them.

For your developer. Show the setup for your developer
provider:
  stub:       local.mock_bill_ledger
  production: office_voice.list_paid_bills# AI Pathway MCP tool; no insert to buy
  default:    stub                       # no live mapping in the conformance kit yet

the live step                        # AI Pathway connector, read only
  list_bills                         # bills awaiting payment
  list_paid_bills                    # bills paid since a day,
                                     #   up to 120 days back
    out: supplier id, invoice number,
         dates, total, truncated flag

the bank detail read                 # your own data, for now
  supplier records with bank details,
  through your accounts' own sign-in
  or a supplier list you export

ports the stub exposes
  readSettings, readBills, readPaidBills,
  readSuppliers, readHolds, raiseHold,
  recordResult, writeBill (never called)

no port exists for
  releasing or voiding a hold, paying,
  approving, or changing bank details

Anyone selling a bill check should be able to answer one question: show me last Thursday's held bills, both bills side by side, and who released each one.

The pass test. In a test file of your own accounting software, not a sample. Enter one duplicate for each rule: the same number typed two ways, the same total a week apart with a new number, the same invoice on a second supplier record, a supplier whose bank account changed since its last payment, and a new supplier with another’s account. Add a clean set of near misses. Run the check. Every seeded duplicate is held once with both bills and its rule, the clean set has no holds, and your accounts’ own history shows nothing was changed. Run it again and nothing new is raised. Practice data cannot pass this, because there the bills only exist in the test’s memory.

10. A checklist to hold any build or supplier to

Hold a DIY build or a vendor to this. If a box is empty, it is not in production.

  • 1. Every approved bill waiting to be paid is checked before the pay run. Each run covers every supplier bill that is approved and awaiting payment at the pay run cutoff. Each one ends the run clear, held or not checked, with nothing skipped. Drafts and bills still awaiting approval are left out. The cutoff and the pay run day are settings the business keeps, and a bill entered after the cutoff waits for the next run.
  • 2. The same supplier and the same invoice number is held, however it was typed. A bill is held when another bill from the same supplier, matched by the supplier's id in your accounts and never by name, carries the same invoice number. Numbers are compared after case, spaces, punctuation and leading zeros are taken out, so INV-0042 and inv 42 are the same number.
  • 3. The same supplier and the same total within a few weeks is held, even with different invoice numbers. A bill is held when another bill from the same supplier has the same total and an issue date within the window (a setting, 30 days unless the business changes it), and the invoice numbers differ or one is missing. A supplier who sends a second copy with a new number is caught this way.
  • 4. The same invoice number and total on two supplier records is held. A bill is held when a bill on a different supplier record carries the same invoice number, after the same clean-up, and the same total. That is one supplier entered twice in your accounts, and the second record is how the bill gets paid twice.
  • 5. A bill whose bank details changed or belong to another supplier is held. A bill is held when its supplier's bank account is different from the account that supplier was last paid to, or matches the account on another supplier's record. The person who checks it never uses a phone number or email address from the bill or from the email that came with it. They ring the supplier on a number already on file from before the change.
  • 6. Each hold shows both bills side by side and the rule that fired. Every hold names the rule that fired and shows both bills: supplier, invoice number, date, total, status and paid date, and the bank account each was or would be paid to. A bank detail hold that matches another supplier shows that supplier and its account. The person deciding never has to go looking for the other bill.
  • 7. A person releases or voids each hold, and the bot never touches a bill. A held bill stays held until a person releases it or voids it. The bot never pays, approves, voids or edits a bill and never changes bank details. A release is logged with the person's name and the time, and only then does the bill count as clear for the pay run.
  • 8. A bill that could not be compared in full is reported not checked, never clear. When your accounts cannot be read in full (the paid bills come back cut short, or the supplier bank details cannot be read), each bill it could not compare is reported as not checked, with what was missing. A run that read only part of your accounts never says a bill is clear.
  • 9. The same pair is raised once, and a released pair stays released unless something changes. A pair of bills is raised once under each rule, however many times the check runs. Once a person releases it, it stays released, unless the amount, the invoice number or the bank details on either bill change. Then it is raised again as new.
  • 10. It keeps working if the person who built it leaves. Someone other than the person who built it can explain what it does, and it runs on an account the business owns.
  • 11. The pass test passes. In a test file of your own accounting software, enter a set of bills with one known duplicate for each rule and a clean set of near misses. Run the check. Every seeded duplicate is held with both bills and the rule that fired, the clean set has no holds, and the ledger's own history shows nothing was written.
  1. 1

    Hold the build to the checklist

    The checks in this standard are what a working build looks like. Implement it yourself, hand it to a developer, or hand the page to an AI with the button below.

  2. 2

    Do not hand-roll

    There is no product for this step. Highest option: none. Checklist plus a build.

  3. 3

    If you are stuck

    Exceptions, three systems, a team that will not maintain a Zap, or an owner who wants it done. We implement when it has to survive the business.

Related reading

Want the whole thing by email?

This paper, plus the rest of the library. One click to stop them.

Run these checks yourself

Every check on this page is published as structured data. This prints them with what to inject, what to assert, and which ones can be proved on your own machine rather than against the live thing.

npx @aipathway/conformance show duplicate-bill-hold-build-standard

Free and open source, CC BY 4.0. The checks are fetched from this page rather than bundled, so a correction here reaches you without a release, and you cannot end up conformant against a stale copy. The raw JSON is there if you would rather wire it into your own harness, and the package shows how to drive your build through the ports.

Built it, and one check failed?

Tell us which one. You have already read the standard and tried it, so the answer is a fixed price to finish that step, not a call to work out what you need.