Skip to content
The AR AgentThe accounts receivable agent
Log in

Invoice number: what it is and how to format it

By The AR Agent team · · 6 min read

An invoice number is a unique reference you give each invoice you send, so that you and your customer can identify it. No two invoices from the same business should share a number, and most businesses issue them in sequence: 1001, 1002, 1003.

It is also the main thing a customer's accounts payable team uses to match your invoice to their records and to tell you what a payment was for. A missing or muddled invoice number is a common reason a payment arrives late or lands on the wrong invoice.

What is an invoice number?

An invoice number is the reference that identifies one invoice in your records. Your accounting software usually assigns it when you create the invoice.

It does three jobs:

  • It identifies the invoice. "Invoice 1047" means one document, for one amount, to one customer.
  • It links everything that follows. Payments, credit memos, reminders and disputes all refer back to it.
  • It keeps your records in order. A clean sequence shows every invoice you issued, with nothing missing.

The IRS lists invoices among the supporting documents for a business's gross receipts. An orderly set of invoices, each with its own number, is much easier to produce and explain if you are ever asked.

Why should invoice numbers be unique and sequential?

Unique, because two invoices with the same number cannot be told apart. The customer may pay one and assume the second is a duplicate. Your software may apply a payment to the wrong one.

Sequential, because a sequence makes gaps visible. If invoices run 1045, 1046, 1048, you know to ask what happened to 1047. That helps you catch invoices that were never sent and spot errors early.

Sequential does not have to mean one single counter forever. Some businesses restart each year with a year prefix, or run separate series for different divisions. What matters is that each series is consistent and no number repeats.

What format should an invoice number use?

Format Example Good for
Plain sequence 1047 Most small businesses
Prefix and sequence INV-1047 Telling invoices apart from quotes or credit memos
Year and sequence 2026-0047 Restarting the count each year
Customer code and sequence RDG-0012 Businesses with a few large accounts

A few practical points:

  • Keep it short. Customers type it into payment references, and long strings get mistyped.
  • Use a different prefix for other documents. For example, CM-0012 for a credit memo and DM-0003 for a debit memo, so no one confuses them with invoices.
  • Let the software do it. QuickBooks, Xero and most invoicing tools number invoices automatically. Set the starting number and format once.

What is the difference between an invoice number, a PO number and a reference number?

Invoice number PO number Customer or reference number
Who creates it You, the seller The customer Either side
What it identifies Your invoice The customer's purchase order The customer's account, or a job
Required on the invoice Always When the customer uses POs When agreed

The purchase order (PO) number comes from the customer's own system. It is their approval to buy. Many AP teams will not pay an invoice that does not quote a valid PO, because they match the invoice to the PO and to proof of delivery before releasing payment. If a customer gives you a PO number, put it on the invoice in its own labeled field.

A customer or account number identifies the customer in your system. A job or project reference identifies the work. Both are useful, but neither replaces the invoice number.

What should you do about gaps or duplicate invoice numbers?

A gap usually means an invoice was created and then deleted, or a number was skipped by mistake. Do not renumber later invoices to close it. Instead:

  1. Check whether the missing invoice was ever sent.
  2. If it was created in error, void it rather than delete it, if your software allows. A voided invoice keeps its number and shows why it was cancelled.
  3. Write a short note in your records explaining the gap.

A duplicate is more urgent, because a customer may already hold two invoices with one number. Fix it like this:

  1. Keep the original number on whichever invoice went out first.
  2. Void the second one and reissue it under a new number.
  3. Tell the customer which number replaces which, in writing.
Subject: Invoice [Old number] reissued as [New number]

Hi [Customer name],

Invoice [Old number] dated [Date] was issued twice by mistake. The second copy, for [Amount], has been reissued as invoice [New number]. Please use [New number] for that payment. Invoice [Old number] for [Original amount] is unchanged.

Thanks,
[Your name]

Never change the amount on an invoice the customer already has and keep the same number. Use a credit memo or debit memo instead, so the change is visible.

Why does the invoice number matter for getting paid?

Because it is how the customer's AP team finds your invoice. When they approve a payment, they record it against your invoice number. When they pay, they usually send remittance advice that lists which invoice numbers the payment covers.

If the number is missing, wrong or duplicated, three things tend to happen:

  • The invoice is not matched to a PO, so it sits in an approval queue.
  • A payment arrives without a clear reference, so you cannot tell which invoice it pays.
  • A partial payment is applied to the wrong invoice, and your aging report shows something overdue that is not.

Quote the invoice number in every follow-up: the subject line of a reminder, every line of a statement of account, and any credit memo. Our payment reminder email templates all start with it for this reason.

Frequently asked questions

Can I choose my own invoice number format?

Yes. Use whatever suits your business, as long as each number is unique and you apply the format consistently. Most accounting software lets you set a prefix and a starting number.

Can two customers have the same invoice number?

Not if you run one sequence for all customers, which is the simplest approach. If you use customer codes, such as ABC-0001 and XYZ-0001, the full number is still unique because the prefix differs. The problem is two invoices with exactly the same reference.

What if the customer pays without quoting the invoice number?

Match the payment by amount and date where it is obvious. If it is not, ask the customer which invoices the payment covers before applying it. Guessing can leave one invoice showing overdue while another is overpaid.

Should I restart invoice numbers every year?

You can, as long as you add the year so numbers do not repeat: 2026-0001 is different from 2027-0001. Restarting without a year prefix creates duplicates across years, which causes the problems above.

How The AR Agent handles this

The AR Agent follows up overdue invoices by email using the invoices already in QuickBooks or Xero, so every message quotes the invoice number, amount and due date exactly as they appear there. It reads what customers write back. If a reply says the invoice is on hold for a missing PO number, or that it went to the wrong contact, it identifies that blocker instead of sending another reminder. When a reply needs judgement, it asks your team. Every email, promise and blocker is kept against the customer and the invoice, so the history of each invoice number is in one place.

Talk to us: our AI agent chases your invoices until you are paid.

Sources

Let us chase your overdue invoices

Connect QuickBooks or Xero and your finance inbox. We’ll help you set it up. No card or contract.

Accounting software

No card required.