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.)
Why do invoice numbers matter?
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.
- Matches payments to bills. When a customer pays $1,897.43 and writes "NW-2026-0107" in the memo, you know which invoice to mark paid.
- Settles disputes. "Which invoice?" stops being a question, especially when the number is in the email subject line (how to send an invoice).
- Keeps your books traceable. The IRS asks businesses to keep supporting documents for income, and invoices are on its list (IRS Publication 583). A clean numbered series makes those records easy to follow.
- Helps your customer's accounts-payable team. AP teams use the invoice number to match your bill and to spot a duplicate before paying it 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:
| Format | Example | Good for | Watch out for |
|---|---|---|---|
| Plain sequential | 1042, 1043, 1044 | Freelancers with one income stream | Reveals how many invoices you've sent if you start at 1 |
| Prefix + counter | INV-0042 | Most small businesses | Pad with zeros so 0042 sorts before 0100 |
| Year + counter | INV-2026-0042 | Anyone filing taxes by year | Decide up front whether the counter restarts each January |
| Client code + counter | ACME-007 | Agencies with a few large clients | You run one counter per client, so keep a log |
| Job code + counter | J118-03 | Contractors billing in stages | The job code must be unique too |
A few practical rules make any format work:
- 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.
- Use letters, numbers and hyphens only. Slashes and spaces break some file names and bank memo fields.
- Pad the counter. INV-0009 and INV-0010 sort in order; INV-9 and INV-10 don't.
- Use a separate series per document type. Quotes get QUO-, credit notes get CN-, so a quote never takes an invoice number.
Need an invoice with a proper number right now? Make one in the free invoice generator. No sign-up, no watermark, PDF download.
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:
- Record keeping. The IRS generally wants records kept for three years after you file, and longer in some cases, such as six years if you left out income that is more than 25% of the gross income shown on your return (IRS: How long should I keep records?). Numbered invoices make those records quick to find.
- Your customers' rules. Larger buyers often reject invoices without a number or PO reference.
- Federal contracts. Invoices to US federal agencies are the exception: a "proper invoice" under the Prompt Payment rules must include the vendor's invoice number (or another identifying number agreed in the contract), the contract number and other fields (5 CFR 1315.9).
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).
Australia sits in between. The Australian Government's business.gov.au lists what a tax invoice must include: the words "tax invoice", your business name and ABN, the issue date, a description of what you sold with quantity and price, and the GST payable, plus the buyer's identity or ABN for sales over $1,000. On the invoice number, it only says it's "a good idea" to give each invoice a unique one, so there it's recommended rather than legally required (business.gov.au: Invoicing, checked 22 October 2026).
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:
- 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.
- Pick a starting number. It doesn't have to be 1. Starting at 1001 or 0100 is common and perfectly fine.
- 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.
- Keep one source of truth. One spreadsheet column, one invoicing app or one API, not three places that each "know" the last number.
- 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:
- Invoice #, Invoice No., Inv. No.
- Invoice ID or Document No. (common on software and ERP bills)
- Bill No. (utilities and some service providers)
- Order # (online stores, where the order number often doubles as the reference)
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.
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:
| Number | Who creates it | When | What it identifies |
|---|---|---|---|
| Purchase order (PO) number | The buyer | Before the work, when they approve the purchase | The buyer's internal approval |
| Invoice number | The seller | When the seller bills | This specific request for payment |
| Receipt number | The seller | After payment | Proof that this payment was received |
| Reference or memo | Either side | Any time | Whatever 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.
Invoice number vs invoice ID vs bill number vs PO number
They're often the same field under different labels, but not always. The invoice number is the one printed on the invoice; an invoice ID can be a separate internal key in software; a bill number is the label some suppliers use, or the buyer's own entry for your invoice; a PO number always comes from the buyer.
| Term | Who sets it | Where you see it | Same as the invoice number? |
|---|---|---|---|
| Invoice number | The seller | Printed on the invoice, usually top right | It is the invoice number |
| Invoice ID | The seller's software | Software screens, exports and API responses | Often, but some systems keep a separate internal ID next to the printed number |
| Bill number | The seller, or the buyer's accounting system | Utility and service bills; the buyer's payables records | Usually the seller's number under another label, but a buyer's system may add its own |
| PO number | The buyer | On the purchase order, then copied onto your invoice | No, it's the buyer's approval number |
An example of the invoice ID difference: in the ASHDOCS Invoice API, every invoice has an internal id such as inv_5b4384cd4b224b129b0c from the moment it's created as a draft, while its printed number, such as INV-0004, is only assigned when it's issued. When you talk to a customer, use the printed number.
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:
- Parallel runs. When several rows arrive together, Zapier starts a separate Zap run for each one, and Make runs webhook-triggered scenarios in parallel unless "Process data in order" is switched on in the scenario settings. Each run computes "last + 1" independently.
- Retries. A step times out, the platform retries, and the invoice gets created twice.
- Edits that re-trigger. "New or updated row" triggers fire again when someone fixes a typo.
What works instead:
- 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.
- 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.
- 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:
- Zapier: Webhooks by Zapier, a premium app that needs a paid plan, sends rows from Google Sheets (Zapier setup guide). The ASHDOCS Zapier app is also public in Zapier's app directory, where it's labeled beta, and has a Create Invoice action.
- n8n: the ASHDOCS community node on self-hosted n8n (n8n-nodes-ashdocs on npm), or the HTTP Request node on n8n Cloud until the node is verified (n8n setup).
- Make: the HTTP module.
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.
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.
What is the best invoice number format? For most small businesses, a prefix, the year and a zero-padded counter, such as INV-2026-0042, works best. It sorts in order, groups invoices by tax year and stays unique. Whatever you pick, keep it short, use only letters, numbers and hyphens, and don't change it without a reason.
Can two invoices have the same invoice number? No. Each invoice from the same business should have its own number, and you shouldn't reuse one even after a void. If you've sent two with the same number by mistake, void or credit the unpaid one and reissue it under the next free number, then tell the customer which number to pay.
Is an invoice number the same as an invoice ID? Usually, yes: "invoice ID" is often just another label for the invoice number. Some software, though, keeps a separate internal ID for each invoice next to the printed number. If you see both, the printed invoice number is the one to quote to your customer.
Can I change my invoice numbering mid-year? Yes, as long as the new series doesn't repeat any number you've already used. Start the new format from a fresh point, such as INV-2026-0500 or a new prefix, and keep a note of when and why you switched so your accountant can follow the series. For UK VAT, HMRC allows numbers based on one or more series, as long as each number is unique.
Are invoice numbers legally required? Not in the US for ordinary business sales: no federal law requires a specific invoice number format, or even a sequential one, though invoices to federal agencies must carry one. The EU and UK require a sequential number on VAT invoices, and the UK asks for a unique number on every invoice. In Australia, business.gov.au calls a unique invoice number "a good idea" rather than a requirement.
Who provides the invoice number? The seller. You create the invoice number when you bill, from your own counter or invoicing software. The buyer provides the PO number, which you copy onto the invoice next to yours.
How many digits should an invoice number have? There's no rule. A counter padded to four digits (0001 to 9999) is plenty for most small businesses, and you can pad to five or six if you expect more. Keep the whole number to about 15 characters so it isn't cut off in your customer's accounting system.
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.