/// GUIDES

What Is an Invoice Number?

What is an invoice number? The unique ID on every invoice. See 5 formats with examples, where to find it, US rules, and how to fix skips and duplicates.

Founder, ASHDOCS
Published:
Last updated:
Stack of colorful ring binders holding filed invoices on an office desk
Photo: Jakub Zerdzicki / Pexels

An invoice number is the unique ID you give each invoice so you, your customer and your accountant can find that exact bill later. Many businesses use a short sequential code such as INV-2026-0042. In the US no law dictates the format, but the IRS expects records you can trace, and a number that never repeats is the simplest way to get there.

Key takeaways

  • An invoice number identifies one invoice and is never reused, even if the invoice is voided.
  • A prefix, the year and a padded counter (INV-2026-0042) is a widely used format because it sorts cleanly and stays unique.
  • The US has no general rule on invoice numbering (federal-agency invoices are the exception). The EU and UK do: VAT invoices need a sequential number.
  • Fix a mistake on a sent invoice by voiding it (if unpaid, US) or issuing a credit note, then a new number. Never edit the old one. UK and EU VAT invoices need a correcting document that refers to the original.
  • Automations that compute "last number + 1" can hand out the same number twice. Letting one system assign every number, instead of a lookup in the sheet, prevents it.

What is an invoice number (invoice no.)?

An invoice number is a unique identifier printed on an invoice, usually near the top right under a label like "Invoice #" or "Invoice No." It ties the bill to your records, your customer's payment and any later correspondence. No two invoices from the same business should share one.

"Invoice no." is the short form of invoice number. You'll also see "invoice ID" in software and "document number" on some ERP-generated bills. They all mean the same field. (New to invoices in general? Start with what an invoice is.)

What is the purpose of an invoice number?

An invoice number lets you, your customer and your accountant point to one exact bill, so payments get matched, disputes get settled and nothing is paid twice.

What does an invoice number look like?

An invoice number is usually a short code of letters, numbers and hyphens, such as 1001, INV-0042 or INV-2026-0042. Most have up to three parts: a prefix naming the document, an optional year and a zero-padded counter. No US rule fixes the invoice number format, so pick one of these five and stick with it:

FormatExampleGood forWatch out for
Plain sequential1042, 1043, 1044Freelancers with one income streamReveals how many invoices you've sent if you start at 1
Prefix + counterINV-0042Most small businessesPad with zeros so 0042 sorts before 0100
Year + counterINV-2026-0042Anyone filing taxes by yearDecide up front whether the counter restarts each January
Client code + counterACME-007Agencies with a few large clientsYou run one counter per client, so keep a log
Job code + counterJ118-03Contractors billing in stagesThe job code must be unique too

A few practical rules make any format work:

  1. Keep it short. Aim for 15 characters or fewer. In SAP, the supplier's invoice number goes into a 16-character reference field by default (SAP Community), so anything longer can get cut off.
  2. Use letters, numbers and hyphens only. Slashes and spaces break some file names and bank memo fields.
  3. Pad the counter. INV-0009 and INV-0010 sort in order; INV-9 and INV-10 don't.
  4. Use a separate series per document type. Quotes get QUO-, credit notes get CN-, so a quote never takes an invoice number.
Diagram breaking the invoice number INV-2026-0042 into prefix, year and sequence, with five example formats
An invoice number has up to three parts: a prefix that says what the document is, an optional year, and a counter that only ever goes up.

Need an invoice with a proper number right now? Make one in the free invoice generator. No sign-up, no watermark, PDF download.

Make one in the free invoice generator

Is an invoice number required in the US?

No US federal law requires a specific invoice number format for ordinary business sales, or even a sequential one. The IRS cares that your income and expenses are backed by records you can produce, and it lists invoices among those supporting documents (IRS Publication 583). It doesn't prescribe how you number them.

Three things still push you toward unique numbers:

If you sell into Europe, the rule is stricter. The EU VAT Directive requires a sequential number that uniquely identifies each VAT invoice (Directive 2006/112/EC, Article 226). In the UK, every invoice needs a unique identification number (GOV.UK), and a VAT invoice needs a sequential number based on one or more series (HMRC VAT Notice 700/21, section 4.1).

How do you create an invoice number?

Pick a format once, choose a starting number, then let one counter go up by one for every invoice you issue. Keep that counter in one place, assign the number only when the invoice is issued, and never reuse a number, even after a void. Here's how to number invoices in five decisions:

  1. Choose your format from the table above. INV-0042 suits most small businesses; add the year (INV-2026-0042) if you want each tax year's invoices grouped together.
  2. Pick a starting number. It doesn't have to be 1. Starting at 1001 or 0100 is common and perfectly fine.
  3. Decide on yearly resets. If you include the year, you can restart the counter each January (INV-2027-0001) or let it run on. Either works if you stay consistent.
  4. Keep one source of truth. One spreadsheet column, one invoicing app or one API, not three places that each "know" the last number.
  5. Assign the number when you issue the invoice, not when you draft it. Drafts get deleted; issued numbers shouldn't disappear.

For a one-off invoice, the free invoice generator suggests a number you can keep or change. To stop tracking numbers altogether, the ASHDOCS Invoice API assigns each one from a prefix and counter you set once.

Where is the invoice number on an invoice or receipt?

On most invoices the number sits in the top-right block, next to the issue date and due date. On receipts it's usually near the top under the store details, or at the bottom near the barcode. Look for these labels:

A receipt may show a receipt number or transaction ID instead of an invoice number. If you need the original invoice number for a refund or an expense claim, it's often in the confirmation email rather than on the receipt itself.

Labeled sample US invoice with callout 2 marking invoice number NW-2026-0107 in the top-right corner beside the issue and due dates
The invoice number (2) usually sits with the dates and payment terms, top right. Browse all 16 designs in the invoice design gallery.

Invoice number vs PO number vs receipt number

A PO number comes from the buyer before work starts, an invoice number comes from the seller at billing, and a receipt number confirms payment afterward. All three can share a page, and a fourth field, the reference or memo, often repeats the invoice number:

NumberWho creates itWhenWhat it identifies
Purchase order (PO) numberThe buyerBefore the work, when they approve the purchaseThe buyer's internal approval
Invoice numberThe sellerWhen the seller billsThis specific request for payment
Receipt numberThe sellerAfter paymentProof that this payment was received
Reference or memoEither sideAny timeWhatever both sides agree on, often the invoice number again

So a PO number on an invoice is the buyer's number, copied onto your invoice so their accounts-payable team can match it to an approved order. If a customer gives you a PO number, put it on the invoice. Without it, the buyer's AP team may send the invoice back instead of paying it.

What if you skip or duplicate an invoice number?

A skipped number is easy: write down why it was skipped (draft deleted, invoice voided) and move on. A duplicate needs fixing, and how depends on whether the invoice has been paid. Either way, never reuse an old number and never edit an invoice you've already sent.

Skipped a number. In the US this isn't a legal problem. Keep a note or a voided placeholder so an accountant reviewing the series sees the reason. Don't go back and reuse the gap.

Sent two invoices with the same number, neither paid yet. Void the second one, issue it again under the next free number, and tell the customer which number to pay.

Duplicate and one is already paid. Leave the paid one alone. Void the unpaid duplicate and reissue it under the next free number, then tell the customer which number to pay. If your books have already recorded the duplicate as income, issue a credit note against it instead of voiding it.

Wrong amount on a sent invoice. Don't edit and resend under the same number. If it's unpaid, void it and issue a corrected invoice under the next number. If it's paid or already recorded in your books, issue a credit note for the original and a new invoice. Your customer's records and yours stay in step, and nobody pays twice. If you charge VAT in the UK or EU, don't just void a VAT invoice you've already issued: correct it with a credit note or another document that refers to the original invoice (in the EU, VAT Directive Article 219; in the UK, follow HMRC's VAT guidance on credit notes).

The How to Create an Invoice guide walks through the other fields every invoice needs, plus how to number them.

How do you keep numbers unique when automation creates invoices?

Keep the counter in one place and let that one place hand out every number. The usual no-code trick, a step that looks up the highest invoice number in the sheet and adds one, breaks as soon as two rows are processed at the same time, because both runs read the same "last number" before either writes back.

Anyone who has watched two Zap runs start in the same second knows how this ends: two invoices called INV-0042, and one confused client.

Where duplicates come from in no-code setups:

What works instead:

  1. Let the invoicing system assign the number, not the spreadsheet. The spreadsheet sends the line items; the system returns the number, and you write it back to the row.
  2. Send an idempotency key with each request, such as an order or job ID column that never changes. If the same request arrives twice, the second one returns the first invoice instead of creating a new one.
  3. Trigger on "new row" or a status column, not on any update.

The ASHDOCS Invoice API works this way: you set a prefix, padding and optional yearly restart once, and each issued invoice gets the next number from a single gapless counter. Drafts don't get a number until they're issued, and quotes and credit notes run on their own series. Requests accept an Idempotency-Key header. Send a value that's unique to that invoice as the key (an order ID column, or the Airtable record ID; a Google Sheets row number can shift when rows are deleted), and a retried Zap won't create a second invoice.

Ways to connect it:

Generating invoices from a spreadsheet or a Zap? Get a free test key and issue one test invoice to see the numbering in action. Test keys never use credits.

Get a free test key

Frequently asked questions

What is an invoice number? An invoice number is a unique code on each invoice that identifies it for both the seller and the buyer. It's used to match payments, find records and avoid paying or billing twice. Common formats are sequential numbers like 1001 or prefixed codes like INV-2026-0042.

What does "invoice no." mean? "Invoice no." is the abbreviation of invoice number. It's the same field, sometimes also labeled Invoice #, Inv. No. or Invoice ID.

Can I start my invoice numbers at any number? Yes. Nothing in US law requires starting at 1. Many businesses start at 1001 or 0100 so the series looks established. Once you start, count up by one and don't reuse numbers.

What is a PO number on an invoice? A PO (purchase order) number is created by the buyer when they approve a purchase. You copy it onto your invoice so the buyer's accounts-payable team can match your bill to the approved order. It's separate from your own invoice number.

Where do I find the invoice number on a receipt? Check near the top under the business details, or near the bottom by the barcode. Receipts often show a receipt number or transaction ID instead; the original invoice number is usually in the order confirmation email.

Do invoice numbers have to be sequential in the US? No federal US law requires sequential numbering for ordinary sales, but each number should be unique and traceable for your records. Invoices to federal agencies must carry an invoice number or another identifying number the contract specifies. EU and UK VAT invoices need a sequential number.

Invoice numbers in short

An invoice number is a unique, never-reused code on every invoice. Fix mistakes by voiding or crediting the old invoice and issuing a new number, and if a spreadsheet or Zap creates your invoices, let one system hand out the numbers so two runs can't grab the same one.

Want numbers assigned for you? The Invoice API hands them out from one gapless counter.

Make your next invoice with the free invoice generator. No sign-up, no watermark.

free invoice generator