Skip to content
+34 917 334 200

Call us on

Spain

+34 917 334 200 Or see our offices and local numbers

See all the ways to contact us →

Regulations

Mandatory e-invoicing in Spain: a guide to Royal Decree 238/2026 approved by the Government

Royal Decree 238/2026 implements the new system of mandatory e-invoicing between businesses and professionals in Spain.

Published on · 9 min read · Aqua eSolutions

Sharein

Paper invoice turning into data fields with a validation tickE-invoicing
Sections · 10

E-invoicing has become a regulatory obligation with a direct impact on the financial operations of businesses and professionals in Spain. The turning point came when the Council of Ministers approved the implementing regulations for B2B e-invoicing on 24 March 2026, followed by their formal approval as Royal Decree 238/2026 (opens in a new tab)⁠ on 25 March 2026 and their publication in the Official State Gazette (BOE) on 31 March 2026.

It is worth clarifying that the regulation does not mean all SMEs and self-employed workers must start issuing e-invoices immediately. Its effective application depends on a future ministerial order from the Ministry of Finance that will develop the public e-invoicing solution. The adaptation periods will start to run from that order:

  • 12 months for companies with annual turnover above €8 million
  • 24 months for all other companies and self-employed workers.

This new obligation is not just about swapping a PDF for another format. It requires reviewing processes, data, ERP integration (opens in a new tab)⁠, interoperability, payment traceability and a genuine ability to comply. For mid-sized companies and growing organisations, the challenge will not be issuing an e-invoice. It will be doing it well, at scale and without adding complexity to the business.

What exactly is Royal Decree 238/2026 on mandatory e-invoicing?

Royal Decree 238/2026 implements the Spanish system of mandatory e-invoicing between businesses and professionals and amends the Invoicing Regulation approved by Royal Decree 1619/2012. Its aim is to define the technical and functional framework of the system: e-invoice requirements, interoperability between private platforms, the operation of the public solution managed by the Spanish Tax Agency (AEAT) and the exchange of information on invoice statuses.

Law 18/2022 on the creation and growth of companies, known as the Ley Crea y Crece (opens in a new tab)⁠, introduced the obligation for businesses and professionals to issue, send and receive e-invoices in their B2B relationships, as well as to share information on their status. It also established the requirement for interconnection and interoperability between technology solutions.

Timeline for mandatory e-invoicing

The royal decree enters into force 20 days after its publication, but the obligation will not be enforceable in practice until the ministerial order (opens in a new tab)⁠ setting out the technical aspects of the public solution is issued. This delays the actual obligation, but does not reduce the urgency of preparing as soon as possible.

In B2B environments, regulatory changes that affect the financial core also affect sales, purchasing, treasury, accounting, customer service, IT and financial management. Waiting until the last minute usually means higher costs, more rush and poorer technology decisions. Mandatory e-invoicing will not only penalise those who fail to comply. It will also penalise those who arrive late and without an architecture.

Who does mandatory e-invoicing affect?

The new obligation applies to transactions between businesses and professionals when the recipient has the seat of its economic activity, a permanent establishment or, failing that, its domicile or habitual residence in Spain, provided that the transaction is deemed to take place within that territory. In other words, this concerns B2B invoicing, not a general obligation for every commercial transaction.

As a general rule, transactions documented with simplified invoices are excluded, as are relationships with end consumers. This means the regulation does not automatically turn every invoice issued by any business into an e-invoice. Its real focus is structured, interoperable and traceable invoicing between businesses and professionals.

What really changes in practice?

This is the fundamental difference: the new regulation does not accept simply emailing a PDF as a sufficient solution. The Spanish mandatory e-invoicing system is based on structured, machine-readable formats, on exchange mechanisms between platforms and on the ability to report the invoice status, including its acceptance and the actual payment date. The aim is to make the entire cycle traceable and to tackle late payment in commercial transactions.

The planned model combines private platforms with a public e-invoicing solution developed by the Spanish Tax Agency (AEAT). In addition, when private platforms are used, the royal decree requires invoices issued through them to carry an advanced electronic signature, applied directly by the issuer or through an authorised delegated signature. This requirement raises the level of security and, at the same time, turns the choice of software into an enterprise architecture decision rather than a mere administrative purchase.

During the first year in which the obligation applies to each group of obligated parties, the e-invoice must also be accompanied by a PDF copy when the recipient is not yet obliged or has not expressly accepted the original format.

Mandatory e-invoicing and VERI*FACTU are not the same thing

One of the most common mistakes is confusing B2B e-invoicing with Verifactu. They are not the same obligation, nor do they stem from the same regulatory framework. B2B e-invoicing derives from the Ley Crea y Crece and Royal Decree 238/2026, whereas Verifactu stems from the Ley Antifraude (opens in a new tab)⁠ and Royal Decree 1007/2023, which focuses on the requirements for invoicing software systems and on the integrity, retention, accessibility, legibility, traceability and immutability of records.

From a business perspective, this distinction is key. A company may need to adapt its software to the Verifactu requirements while also preparing its architecture for mandatory B2B e-invoicing. Treating both obligations as if they were one can lead to incomplete investments, avoidable redesigns and poorly framed technology decisions.

Why the new e-invoicing mandate matters

Reducing e-invoicing to a compliance obligation would be a mistake. The Ley Crea y Crece explicitly links it to the digitalisation of business relationships, the reduction of transaction costs and the fight against late payment. In other words, it is not just a change of document, but a key element of economic efficiency and commercial transparency.

Furthermore, this new Spanish regulation fits into a broader European trend. The European Commission maintains that the move to e-invoicing and digital reporting could help reduce VAT fraud by up to EUR 11,000 million a year and cut administrative and compliance costs by more than EUR 4,100 million a year over ten years. The VAT in the Digital Age (ViDA) agenda consolidates this direction: less paper, more structured data, more traceability and greater capacity for supervision and automation.

Deloitte and PwC highlight the same underlying shift: e-invoicing and digital reporting should no longer be seen as a replacement for paper, but as a transformation of the tax compliance model and of how a company's finances operate. At the same time, Forrester finds that accounts payable and receivable automation is evolving in 2026, driven by regulation, ERP modernisation and increasingly advanced automation capabilities.

The real challenge is not legal.
It is operational

The relevant question for a mid-sized or large company is not whether it will be able to issue an e-invoice. It is whether it can do so without breaking processes, without duplicating tasks and without creating more exceptions than efficiency.

The real value does not come solely from complying with the regulation, but from using it to organise and modernise the financial cycle. The organisations that make the most of this change will be those that start working now on five very specific fronts:

Data quality

Without consistent data on customers, suppliers, taxes, due dates and statuses, automation does not scale.

Integration with ERP and financial systems

Digital continuity is essential. A solution disconnected from accounting, treasury or purchasing erodes value almost from day one.

Real interoperability

The new framework requires invoices and statuses to be exchanged without relying on closed circuits or providers that block future development.

Governance and traceability

The new architecture requires greater visibility of the invoicing cycle, which is key for auditing, collections control and compliance.

Internal adoption

A solution that is technically valid but awkward to operate ends up generating resistance, rework and exceptions.

Roadmap for the rollout of e-invoicing

Start by monitoring the current B2B invoicing process from end to end: issuing, validation, sending, posting, tracking, archiving and collection. Next, it is advisable to assess whether the current software (ERP, vertical solution, invoicing platform or custom developments) is genuinely ready for structured formats, invoice statuses, signatures, interoperability and integration with the public solution once it goes live.

The next step is about architecture. The decision is not only which solution to buy, but how to fit it in with the ERP, the CRM, purchasing, treasury and the company's financial control model. This is where many implementations fail: they meet the documentary obligation, but not operational continuity.

It is also advisable to review master data, business rules and exception scenarios before automating. At the same time, the organisation should steer clear of closed or short-lived solutions. The regulation requires interoperability. The technology strategy must be aligned with that logic.

The importance of business software in complying with the regulation

Companies should not look only for compliance, but for continuity, control, visibility and the capacity to grow. They should not look solely for “e-invoicing software”. They should look for platforms and partners capable of solving a broader equation: regulatory compliance + ERP integration + financial automation + traceability + scalability + a reasonable implementation.

Gartner already expects investment in AI and embedded finance tools to keep growing strongly, driven by the need to automate, shorten cycles and control costs. McKinsey, for its part, highlights tangible gains in productivity and better use of data in finance functions that are already deploying advanced automation. In this context, mandatory e-invoicing is not an isolated trend: it is one more element in the structural transformation of the finance function.

Conclusion

The approval of Royal Decree 238/2026 changes the rules of the game for e-invoicing in Spain. Not because it will force all SMEs and self-employed workers to start issuing invoices in a new format tomorrow, but because it definitively sets the regulatory, technical and operational direction for the years ahead.

Companies that see this regulation only as a compliance burden will arrive at the last minute and react late. Those that see it as an opportunity to organise processes, strengthen integration with their ERP, improve payment traceability and simplify operations will be better positioned to compete.

Application

Aqua eSolutions: your partner for complying with the new obligations

In business technology, compliance is necessary, but the real value lies in complying with architecture, with vision and with a genuine ability to scale.

For companies that need to manage the new regulations in their operations, Aqua eSolutions offers a wide range of modern, comprehensive and proven solutions. If you are not yet familiar with them, now is the time to explore their benefits.

Request a demonstrationE-invoicing in Aqua bPI

A specialist will contact you to prepare your personalised demo

See how to improve your processes with enterprise software and AI

Tell us what you need to improve and we will show you Aqua eSolutions solutions applied to the processes that really matter to your company.

  • Focused on your priorities
  • No commitment
  • With experience in your sector

We will use your data to handle your request, as explained in the Privacy policy (opens in a new tab).

Basic data protection information
Controller
Aqua eSolutions
Purpose
To manage your demo request and, only if you authorise it, send you information about solutions and news.
Legal basis
Your request and, for communications, your consent.
Rights
Access, rectification, erasure and the others explained in the Privacy policy (opens in a new tab).