← All standards
Open specificationStablePublished November 2026Changelog

The Ledger Entry Build Standard

Every supplier bill, receipt, credit note and sales invoice that lands in the inbox goes into your accounts as a draft: the right supplier, coded the way you already code it, every figure as printed and the PDF attached. Anything it cannot place waits for you with the reason. You approve the drafts. Works with Xero or MYOB.

Used by

  • Data Entry Clerk
  • Accounts Officer
  • Accounts Clerk
  • Accounts Payable Officer
  • Accounts & Administration Officer
  • Bookkeeper
  • 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: download it for Claude, then upload it in Claude. 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 data entry an accounts clerk does all week: getting supplier bills, receipts, credit notes and sales invoices out of the inbox and into Xero or MYOB. Each one goes in as a draft, on the right supplier, coded the way you already code it, with the PDF attached.

The core rule

Everything goes in as a draft. You approve drafts in your accounts the way you approve one keyed by hand. Anything it cannot place waits on a short list for you with the reason.

What it does not do

It never approves, pays or sends anything, never creates a supplier, never changes a printed figure, and never guesses an account or a missing date. Checking a bill against its order is the Invoice Check standard's job.

The hard part

Knowing when not to key a document. The same bill arrives twice, the supplier is not certain, the totals do not add up, or you code that supplier a different way each time.

Forty bills a week come in by email, a dozen receipts come in as photos, and the odd invoice arrives on paper. Someone opens each one, finds the supplier in Xero, types in the number, the date and every line, picks an account, checks the GST and drags the PDF across. It takes most of a day, and the ad for an accounts clerk to do it is already written.

One document, from the inbox to the books

  1. A supplier bill, credit note, receipt or sales invoice arrives by email, upload or scan.
  2. It is matched to one contact in your accounts by ABN, or by the address it came from when that address is already on one contact. Never by name, and no contact is created.
  3. Its lines are coded from your coding rule for that contact, or from the contact's last three posted documents when they agree.
  4. The lines and GST must add up to the printed total, and the GST must match your accounts' own rate, to the cent.
  5. Is everything clear, and is it not already in your accounts? If not, it is held for you with the reason.
  6. If so, it is written once as a draft with the document attached.
  7. Has a named person approved the draft? If yes, it is in the books.
  8. If no, it stays a draft for a person. The build never approves, pays or sends anything.
The filled diamond is the approval, and it is yours. Before it, each document is either written once as a draft with the PDF attached, or held for you with the reason. Nothing is approved, paid or sent by the build.

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

1. We are about to hire someone to key bills into Xero

Most of a data entry or accounts officer’s week is the same few steps on every document. Find the supplier. Type the number, the date and the lines. Pick the account. Check the GST. Attach the PDF. Most of those steps follow a rule you could write down, and the rest need a person who knows the business.

This standard writes the rules down. The documents that follow them go in as drafts, and the ones that do not wait for a person with the reason. You approve the drafts, the same as you would if a clerk had keyed them.

Out of scope. Checking a bill against its purchase order or contract is the Invoice Check standard. Checking approved bills against each other before the pay run is Duplicate Bill Hold. Bank lines nobody can code are Uncoded Query, and filing job paperwork to the job is Document Filing. Invoices raised from a finished job are Invoice Out; this standard keys a sales invoice only when it arrives as a document. Approving, paying and adding new suppliers stay with your team.

It keys each bill, receipt and invoice into your accounts as a draft. It reads your suppliers, chart of accounts, tax rates and past bills, and saves each draft through your accounts’ own sign-in. You approve each draft, and anything it cannot place comes to you with the reason.

Facts that can change, and when we checked them

Checked as at 30 November 2026

Xero. A bill, credit note or sales invoice can be created as a draft, which stays out of the books until someone approves it, and a file can be attached to it.

MYOB Business. Check how your file holds a document nobody has approved before you build. Where it has no draft state, the draft waits in the build’s own list for a person to release, the way the Ledger Write Preview standard sets out.

The AI Pathway connector. preview_draft works a bill or sales invoice out from your own tax rates and chart and says whether the printed totals agree to the cent. list_bills shows the bills already waiting. Both read Xero today and write nothing.

These change. Check what your accounts software and the connection return 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. Six reasons a document waits for you

They are tested in this order, and the first one that applies is the reason you see. A document that passes all six goes in as a draft.

Held asWhenFor example
Could not read itThe date, number, lines, GST or total is missing, or there is nothing to match a supplier by.A fuel receipt photographed with the date torn off.
Supplier not in your accountsNo contact has the ABN on the document, or, with no ABN, the address it came from. A name alone never matches.A new scaffolder; a bill sent from an invoicing service's address.
Already in your accountsThe same file was keyed before, or the same supplier and invoice number is already there, however it was typed.T-0561 arrives; someone keyed T-561 by hand last week.
Totals do not add upThe lines plus GST are not the printed total, to the cent.$500.00 plus $50.00 GST, printed as $560.00.
No coding to followNo coding rule for the supplier, and its last three bills did not all go to the same account and tax code.The office supplier's last bills went to stationery twice and general expenses once.
GST does not matchThe GST printed differs from your accounts' rate on the coded lines by more than a cent a line.$90.00 GST printed on $1,000.00 of decking.

Each one is something a clerk would have had to ask about anyway, and each comes to you with what to do next.

3. Coded the way you already code it

The account and tax code come from one of two places. First, a coding rule you keep: this supplier always goes to this account with this tax code. Second, with no rule, the supplier’s last three bills in your accounts, but only when all three went to the same account and tax code.

If neither gives an answer, the document waits for you. Picking an account because it sounds right is how a year’s fuel ends up in general expenses. When you code one by hand, add a rule and the next one goes straight in.

The GST is worked out from your accounts’ own rate for that tax code, line by line, and compared with the GST printed on the document. Every other figure is copied exactly as printed. If the supplier’s maths is wrong, you see both figures and ask them for a corrected invoice.

4. The document and the draft, in the shape your developer needs

One result per document, written once. Money is whole cents and tax rates are basis points. The build fills everything except the approval.

For your developer. Show the fields for your developer
document                          # from the intake, read off the file
  - doc_id, file_name, sha256       # sha256 is the key
  - kind                            # supplier_bill | supplier_credit |
                                    #   receipt | sales_invoice
  - source, sender?                 # email | upload | scan
  - read                            # null where it could not be read
      contact_name?, abn?
      number?, date?, due_date?
      lines[]?: description, amount # before GST, as printed
      gst?, total?                  # as printed

contact                           # read from the ledger
  - contact_id, name, abn?, emails[]

coding_rule                       # a person keeps these
  - contact_id, account_code, tax_code

settings
  - history_count                   # 3 unless changed
  - owner                           # who works the exceptions

draft                             # written by the build, once
  - key                             # the document's sha256
  - type                            # bill | credit_note | invoice
  - contact_id, number, date, due_date?
  - lines[]: description, amount,
      account_code, tax_code,
      tax                           # from the ledger's own rate
  - total                           # as printed
  - status                          # always draft
  - attachment                      # the source file, once

exception                         # one per document held
  - doc_id, reason                  # unreadable | unknown_contact |
                                    #   already_in_ledger |
                                    #   totals_do_not_add | no_coding |
                                    #   gst_mismatch
  - detail, owner
  - missing[]?                      # unreadable
  - existing_ledger_id?             # already_in_ledger

result                            # one per document
  - doc_id, status                  # drafted | held
  - ledger_id? | exception_id?

There is no field for a contact the build created, no status other than draft on a write, and no tolerance on the total. Totals that add up are equal to the cent.

5. The checks, in order

Each check has to pass before the next one runs. Nothing goes into your accounts until the document has been read, matched to a supplier, looked for in your accounts, added up and coded. A bill keyed wrong is harder to find later than one held for a minute now.

  1. Every document that arrives ends as a draft or a hold, once. Every bill, credit note, receipt and sales invoice that arrives, by email, upload or scan, gets exactly one result: written into your accounts as a draft, or held for a person with the reason. Nothing is skipped because it was hard to read, and nothing is handled twice because the check ran again.
  2. The supplier or customer is matched by ABN, never by name, and never created. A document is matched to the one contact in your accounts with the same ABN. With no ABN on the document, it is matched to the one contact that already holds the email address it came from. A name alone never matches, because two businesses can share one. No match, or more than one, and the document is held as an unknown contact. The build never creates a contact.
  3. Every figure goes in exactly as printed, and totals that do not add up are held. Each line amount, the GST and the total on the draft are the ones on the document, to the cent. When the lines and the GST do not add up to the total printed, the document is held with both figures. The build never adjusts a line, rounds a total or splits a difference to make it fit.
  4. Each line is coded from your own rules or the contact's history, never guessed. The account and tax code come from the coding rule you keep for that contact. With no rule, they come from the contact's last three posted documents, only when all three used the same account and tax code. With no rule and no history that agrees, the document is held for a person to code. The build never picks an account because it sounds right.
  5. GST is worked out from your accounts' own tax rate and must match the document. The tax on each line is worked out from the rate your accounts hold for the line's tax code. When the GST printed on the document differs from that by more than a cent a line, the document is held with both figures. The build never copies the printed GST over a rate your accounts disagree with.
  6. A document missing a date, number, line or total is held, never filled in. A document that is missing its date, its number, its lines, its GST or its total, or shows nothing to match a contact by, is held with the fields that are missing. The build never puts in today's date, a made-up number or a total worked out from part of the page.
  7. Everything goes in as a draft for a person to approve. Every document is written as a draft. The build never approves, posts, pays or sends anything, and never sends a sales invoice to a customer. A person approves each draft in your accounts, the same way they approve one keyed by hand.
  8. The document it came from is attached to every draft. The PDF, photo or scan each draft was keyed from is attached to it in your accounts, once. Whoever approves the draft, and your accountant later, can open the original without hunting through the inbox.
  9. A document is keyed once, however many times it arrives. Before writing, the build reads your accounts for the document's key (its file's fingerprint) and for the same contact and number. A forwarded copy, a second scan of the same paper or a bill someone already keyed by hand is held as already in your accounts, linked to the record it matches. When a write comes back without an answer, the build reads your accounts for the key before it tries again.
  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, drop in a set of real-looking documents: clean bills for contacts with a coding rule or history, one with no matching contact, one whose totals do not add up, one with the wrong GST, one with its date missing, one already keyed by hand, and a forwarded copy. Run the entry twice. Every clean document is a draft with its source attached, coded and figured exactly as the standard says; every other one is held with its reason; and nothing is approved, created or keyed twice.

6. One Tuesday’s inbox

A made-up example, using the practice data that comes with this standard. Thirteen documents are waiting. Six go straight in as drafts: the skip bin bill coded to general expenses by your rule, the electrician’s bill and credit note coded to cost of goods from his last three bills, a diesel receipt coded to motor vehicle, a paint bill matched by the address it came from, and a $2,750.00 sales invoice for a body corporate job written up on paper.

Seven wait for the bookkeeper. A scaffolder who is not in Xero. A bill printed with the paint supplier’s name but sent from an invoicing service’s address, so it is not matched on the name. An electrician’s bill whose lines and GST come to $550.00 under a printed $560.00. The office supplier’s toner, because its last bills went to two different accounts. A timber bill with $90.00 GST on $1,000.00. A receipt with no date. And timber invoice T-0561, which someone keyed by hand last week as T-561.

The electrician’s first draft times out but lands. It checks Xero for that file first, finds the draft already there, and does not key it again. On Wednesday the skip bin bill is forwarded a second time and the diesel receipt is scanned from paper. Both are held as already in your accounts, and the one new paint bill goes in.

7. What stays with a person

  • Approving each draft in your accounts, by name.
  • Every document held, with its reason: add the supplier, code it, or ask for a corrected invoice.
  • Adding a new supplier or customer, and a coding rule for a supplier with no history to follow.
  • Deleting a copy that is already in your accounts.

8. Run it your way

The same checks and the same pass test on each. Whichever you pick, two rules hold. Everything goes in as a draft, and a document that breaks a rule waits for a person.

  • Google Workspace. A sheet with tabs for the documents, your coding rules and the exceptions, filled from a Drive folder the inbox saves into. See building on Google Workspace.
  • Microsoft 365. A SharePoint library the accounts mailbox saves into, lists for the log, the exceptions and your coding rules, and one flow that keys each document through your accounts’ own connector. The Bills Into the Books build plan lays out the lists and the flow.
  • Your own Grok Bot or Claude. Connected to your accounts through AI Pathway, drop a bill into the chat. It finds the supplier, checks the figures against your tax rates with preview_draft, and tells you what it would key and why, or why it would hold it.
  • 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.

Already paying for an app that reads receipts and bills? Hold it to the checklist below. Reading the bill is the easy half. This standard covers what happens next: which supplier, which account, and what waits for you.

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

Everything runs on practice data first: the documents with their fields already read, the contacts, the coding rules and history, the drafts, the exceptions, and a save that times out but lands. In production the drafts are written through your accounts' own sign-in, and AI Pathway's preview_draft checks the figures against your own tax rates before they are.

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

the live steps                       # your accounts' own sign-in
  read contacts, chart, tax rates,
    posted history, documents in it
  create a draft bill, credit note or
    invoice; attach the file

on the AI Pathway connector          # write nothing; Xero today
  preview_draft                      # lines and tax from your rates,
                                     #   printed totals agree or not
  list_bills                         # the bills already waiting

ports the stub exposes
  readSettings, readIntake, readContacts,
  readChart, readCodingRules, readHistory,
  readLedgerDocs, writeDraft, attachSource,
  raiseException, recordResult

no port exists for
  creating a contact, approving, posting,
  paying or sending

Anyone selling data entry should be able to answer one question: show me last week's held documents, each with its reason, and every draft with the file it came from.

The pass test. In a test file of your own accounting software, not a sample. Drop in clean bills for suppliers with a coding rule or agreeing history, and one document for each reason to hold: a supplier not in your accounts, totals that do not add up, the wrong GST, no date, a bill already keyed by hand, and a forwarded copy. Run it twice. Every clean document is one draft with its file attached, coded and figured exactly as this standard says. Every other document is held with its reason. Your accounts’ own history shows nothing approved, no new contact and nothing keyed twice. Practice data cannot pass this, because there the documents arrive already read and the ledger only exists 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 document that arrives ends as a draft or a hold, once. Every bill, credit note, receipt and sales invoice that arrives, by email, upload or scan, gets exactly one result: written into your accounts as a draft, or held for a person with the reason. Nothing is skipped because it was hard to read, and nothing is handled twice because the check ran again.
  • 2. The supplier or customer is matched by ABN, never by name, and never created. A document is matched to the one contact in your accounts with the same ABN. With no ABN on the document, it is matched to the one contact that already holds the email address it came from. A name alone never matches, because two businesses can share one. No match, or more than one, and the document is held as an unknown contact. The build never creates a contact.
  • 3. Every figure goes in exactly as printed, and totals that do not add up are held. Each line amount, the GST and the total on the draft are the ones on the document, to the cent. When the lines and the GST do not add up to the total printed, the document is held with both figures. The build never adjusts a line, rounds a total or splits a difference to make it fit.
  • 4. Each line is coded from your own rules or the contact's history, never guessed. The account and tax code come from the coding rule you keep for that contact. With no rule, they come from the contact's last three posted documents, only when all three used the same account and tax code. With no rule and no history that agrees, the document is held for a person to code. The build never picks an account because it sounds right.
  • 5. GST is worked out from your accounts' own tax rate and must match the document. The tax on each line is worked out from the rate your accounts hold for the line's tax code. When the GST printed on the document differs from that by more than a cent a line, the document is held with both figures. The build never copies the printed GST over a rate your accounts disagree with.
  • 6. A document missing a date, number, line or total is held, never filled in. A document that is missing its date, its number, its lines, its GST or its total, or shows nothing to match a contact by, is held with the fields that are missing. The build never puts in today's date, a made-up number or a total worked out from part of the page.
  • 7. Everything goes in as a draft for a person to approve. Every document is written as a draft. The build never approves, posts, pays or sends anything, and never sends a sales invoice to a customer. A person approves each draft in your accounts, the same way they approve one keyed by hand.
  • 8. The document it came from is attached to every draft. The PDF, photo or scan each draft was keyed from is attached to it in your accounts, once. Whoever approves the draft, and your accountant later, can open the original without hunting through the inbox.
  • 9. A document is keyed once, however many times it arrives. Before writing, the build reads your accounts for the document's key (its file's fingerprint) and for the same contact and number. A forwarded copy, a second scan of the same paper or a bill someone already keyed by hand is held as already in your accounts, linked to the record it matches. When a write comes back without an answer, the build reads your accounts for the key before it tries again.
  • 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, drop in a set of real-looking documents: clean bills for contacts with a coding rule or history, one with no matching contact, one whose totals do not add up, one with the wrong GST, one with its date missing, one already keyed by hand, and a forwarded copy. Run the entry twice. Every clean document is a draft with its source attached, coded and figured exactly as the standard says; every other one is held with its reason; and nothing is approved, created or keyed twice.
  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 ledger-entry-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.