It is tempting to put the WooCommerce order number on the invoice and call it done. In many countries that is not a valid invoice number, and it can cause you real problems at tax time. Here is why, and how proper sequential numbering works.
Why the order number isn’t an invoice number
Tax authorities in the EU, the UK, much of Latin America and elsewhere require invoice numbers to be unique and sequential — often gap-free within a series. WooCommerce order numbers fail this on two counts: orders that are cancelled or fail payment leave gaps, and order numbers aren’t guaranteed to march in a clean sequence (plugins, drafts and subscriptions can perturb them). An auditor seeing missing numbers in your invoice series asks where the missing invoices went.
How compliant numbering works
- A dedicated counter. The invoice series has its own counter, independent of order IDs, incrementing only when an invoice is actually issued.
- Assigned once, stored forever. The number is written to the order the first time the invoice is generated, so a reprint or resend never changes it. This is the single most important rule — a number that shifts on reprint is worse than useless.
- A prefix and reset policy. Many businesses use a prefix and reset the sequence yearly (e.g.
2026-0001). Pick a scheme and keep it consistent.
Setting it up in WooCommerce
A good invoice plugin gives you a starting number, an optional prefix, and stores the assigned number on the order. You should be able to reprint an old invoice years later and get the exact same number. If a plugin regenerates the number each time it renders the PDF, treat that as a compliance bug, not a feature.
Rules vary by country — confirm yours with an accountant. But sequential, stable, gap-managed numbering is the safe default almost everywhere, and it should be built in, not an afterthought.
An invoice plugin that gets the details right
Invoices, Packing Slips & Delivery Notes for WooCommerce puts your tax breakdown, tax ID and totals on a clean PDF, assigns stable sequential invoice numbers stored on the order, renders every language, and attaches to your order emails automatically. Free, with bulk printing and custom templates in Pro.
Related reading: showing VAT/GST/sales tax on invoices and why invoices don’t render Arabic / RTL text.