Invoice numbering in Spain

Rules on series, sequential numbering and format under RD 1619/2012.

Invoice numbering in Spain is not something you can organise as you please. The Invoicing Regulation (RD 1619/2012) sets clear rules on how invoices must be numbered, when you need to use separate series and what sequential numbering means. With the introduction of Verifactu, these rules become even more important, because the Tax Agency will be able to automatically detect any irregularity in the sequence.

The fundamental rule — sequential numbering

Article 6.1.a of RD 1619/2012 establishes that numbering within each series must be sequential. This means that invoices must follow a sequential order with no gaps — 1, 2, 3, 4 — without numbers being deleted or inserted after the fact.

The format, however, is free. The law does not impose a specific number of digits or a particular prefix. You can number as 001, as 2025/001, as A-001 or however you prefer, as long as the sequential order is clear. Facturas simplificadas follow exactly the same rules within their own series.

A point that causes much confusion is whether numbering must be reset every 1 January. The answer is that it is not mandatory — the law only requires sequential order within each series. Resetting each year is a very widespread convention, but not a legal obligation.

When separate series are mandatory

Although series are optional in most cases, there are three situations in which the law requires using a specific series separate from ordinary invoices.

The first and best known is for facturas rectificativas. Article 6.1.a establishes that they must always be issued in their own series. An ordinary invoice and a factura rectificativa cannot share the same series prefix — they must be different series.

The second is when the invoice is issued by the recipient on behalf of the supplier (known as invoicing by the recipient). And the third is invoices for intra-Community supplies subject to special taxes. In both cases, the reason is the same — the Tax Agency needs to be able to distinguish these documents from the ordinary invoicing flow.

Optional series

In addition to the mandatory series, you can create additional series when justified. Article 6.1.a of RD 1619/2012 expressly allows this when the issuer has multiple establishments, when they carry out operations of different natures, or when they issue different types of invoices.

In practice, the most common uses are: one series per establishment (one for each office or premises), one series per type of operation (services, products, training), or a series that includes the fiscal year in its format (2025-001, 2025-002). Any of these options is valid as long as each series maintains its own sequential numbering.

Impact of Verifactu on numbering

With the entry into force of Verifactu, numbering takes on an importance that was previously more theoretical than practical. Every invoicing record that the software sends to the AEAT includes the invoice series and number as identifying data. But more importantly, records are chained together using cryptographic hashes — the digital fingerprint of each new record includes the previous one.

This means that any gap, alteration or deletion in the invoice sequence will be automatically detectable by the Tax Agency, without the need for an on-site inspection. If previously a gap in the numbering could go unnoticed for years, with Verifactu the anomaly is recorded the moment it occurs.

It is not mandatory, but it is the most common practice. What the law requires is that numbering be sequential within each series. If you decide to reset each year, you simply maintain sequential order within that year. If you prefer continuous numbering that does not reset, that is also valid.

Technically the law does not say "gaps are prohibited", but by requiring sequential numbering, any gap could be interpreted as evidence of deleted invoices. If there is a legitimate gap (for example, a system error), it is advisable to be able to justify it with documentation.

Yes, as long as each series maintains its own independent sequential numbering. It is common to have series by establishment, type of operation or fiscal year. The important thing is that within each series there are no gaps.

Yes, always. Article 6.1.a of RD 1619/2012 expressly establishes that facturas rectificativas must be issued in separate, dedicated series distinct from ordinary invoices.

CokuApp: automatic invoice numbering

CokuApp manages your invoice numbering automatically, with configurable series and guaranteed sequential numbering.

  • Configurable series — Create as many series as you need
  • Guaranteed sequential numbering — No gaps or duplicates
  • Independent series for rectifying invoices — Created automatically
  • Verifactu compliant — Every record includes the series and number

Get started today

Sign up in 2 minutes. Try the demo first.