Invoice Numbering Best Practices: Sequential, Gap-Free and Easy to Audit
Why invoice numbers should be sequential and gap-free, which format to choose, how yearly resets work, and what to do when an issued invoice must be withdrawn.
PDF invoices and estimates for Shopify: seven designed themes, gap-free numbering, automatic emails and customer downloads. Free for 50 documents a month.
An invoice number looks like a small detail until an auditor, a tax office or a customer's accounts team asks about a missing one. Good invoice numbering is simple: every invoice gets a unique number, the numbers follow each other without gaps, and anyone can tell from the number which series and year it belongs to. Getting it right takes a few decisions, made once, at the start.
Why Invoice Numbers Must Be Sequential
It is often the law. The EU VAT Directive requires "a sequential number, based on one or more series, which uniquely identifies the invoice". India's GST rules ask for a consecutive serial number, unique for the financial year. Many other countries have similar rules.
It proves completeness. An unbroken sequence shows that no sale was left out of the books. A gap needs an explanation.
It is how customers refer to you. Accounts payable teams file and pay by invoice number. A number that is unique and easy to read gets you paid faster.
Choosing an Invoice Number Format
INVPrefix: The Series
-
2026Year, or Financial Year
-
00042Sequence, Zero-Padded
A prefix, a period and a padded counter: readable, sortable and unique.
Common formats, from simplest to most structured:
Format
Example
Good for
Counter only
00042
Very small stores; hard to tell apart from other numbers.
Prefix + counter
INV-00042
Most stores that never reset the counter.
Prefix + year + counter
INV-2026-00042
A yearly reset, so numbers stay short.
Financial year
INV/2026-27/0042
Countries whose tax year starts in April or July.
Order number
INV-1042
Matching invoice and order at a glance.
Basing the invoice number on the Shopify order number is tempting, because the two then match. The catch is that order numbers count orders, not invoices: cancelled, test and never-invoiced orders leave holes in your invoice series, and where the law asks for a gap-free invoice sequence that can be a problem. A separate counter avoids it.
Separate Series for Separate Documents
Give estimates and quotes their own series, for example EST-2026-00014. A quote that is never accepted then never leaves a hole in your invoice numbers. The same applies to credit notes if you issue them.
Resetting the Counter
Many businesses restart numbering every year, with the year in the number so INV-2026-00001 and INV-2027-00001 never collide. If your tax year does not start in January, reset on your financial year instead, and print it: 2026-27. Monthly resets are possible but make numbers harder to read; use them only if your accountant asks.
Moving From Another System
Switching invoicing tools mid-year? Continue the sequence rather than restarting it: set the next number to one above the last invoice you issued in the old system. That keeps the series unbroken across the switch.
When an Invoice Has to Be Withdrawn
Never delete an issued invoice or reuse its number. If an invoice was wrong or the sale fell through, void it: the number is marked void and stays in the sequence as a documented gap, and the order gets a fresh number when it is reissued. That is exactly what an auditor wants to see.
Build the pattern from tokens and see the next number before it is issued. Click or tap the image to see it full size.
Quick Checklist
One series per document type, with a clear prefix.
A counter that never skips or repeats, padded so numbers sort.
The year or financial year in the number if you reset.