E-invoicing in Spain

Spain has established a legal framework for mandatory B2B e-invoicing to take effect in 2026. Implementation will occur in phases: first for companies with more than 8 million euros in revenue, followed by all other businesses and professionals.

e-invoicing-spain-Dec-04-2024-11-56-04-8580-AM

Mandatory E-Invoicing in Spain: What Businesses Need to Know

Spain has been working on mandatory electronic invoicing between businesses for several years. The foundation for this was laid in 2022 with the Ley Crea y Crece. In March 2026, Real Decreto 238/2026 established the regulatory framework for the new B2B e-invoicing system.

The Spanish approach goes beyond simply replacing a PDF with a structured file. Businesses must be able to send and receive e-invoices electronically; different invoicing platforms must be able to communicate with one another; and the status and final payment of invoices will also become part of the digital information flow.

The actual requirement will be phased in. Businesses and professionals with an annual turnover exceeding 8 million euros will be subject to the new system twelve months after the entry into force of the final required ministerial regulation. For all other businesses, a 24-month transition period applies.

At this time, that ministerial regulation has not yet been officially published. As a result, while the technical principles have largely been established, the definitive effective dates cannot yet be specified as calendar dates.

What changes will the Spanish requirement bring?

The requirement applies to business transactions between businesses and professionals subject to the Spanish regulations. If the customer has its business, a relevant permanent establishment, or its place of residence or business in Spain, the invoice must be issued and received electronically in the relevant cases.

A standard PDF sent via email does not qualify as the structured electronic invoice on which the new system is based. The invoice must consist of structured data that can be processed directly by financial software.

The Spanish model does not mandate a single commercial platform. Businesses may use private e-invoicing platforms, a public solution provided by the Spanish tax authority (AEAT), or a combination of both. The various platforms must be interoperable with one another.

What does Spain consider an e-invoice?

An e-invoice must be created as a structured electronic message. Spanish regulations align with the European semantic model EN 16931, ensuring that invoice data can be interpreted and processed in a standardized manner.

Royal Decree 238/2026 lists four permitted syntaxes:

  • UBL
  • CII
  • EDIFACT
  • Facturae

Peppol BIS can also be used within the system, as it is based on UBL and complies with EN 16931.

The various formats do not mean that every company has to support all of them on its own. Private e-invoicing platforms must be able to convert messages between the supported formats and ensure that invoices can be exchanged between different platforms.

How are Spanish e-invoices exchanged?

Spain has opted for a model in which private platforms and a public e-invoicing solution coexist. A company can use the public solution directly or connect through a private service provider.

When the sender and recipient use different private platforms, those platforms must be able to communicate with one another. A platform may not automatically refuse a request for interconnection from another platform. This should create a network in which businesses do not have to establish a separate technical connection for every trading partner.

If a business uses a private platform to send an invoice, it must simultaneously submit a true and accurate electronic copy in UBL format to the public solution. The public infrastructure thus plays a central role as a repository for electronic invoices.

If no specific agreement has been made regarding the platform on which a company wishes to receive invoices, the public solution serves as the default receiving channel.

The AEAT’s Public E-Invoicing Solution

The Spanish tax authority, Agencia Estatal de Administración Tributaria (AEAT), develops and manages a public solution for electronic invoicing. This service is intended to offer businesses an alternative to commercial e-invoicing platforms and, at the same time, plays a central role in the overall Spanish system.

Those who invoice directly through the public solution use UBL as the syntax. The system not only supports the sending and receiving of invoices but also serves as a central repository for invoices exchanged via private platforms.

The public solution must be operational at least two months before the first group of businesses is actually subject to the requirement.

The status and payment of an invoice are also handled digitally

A notable feature of the Spanish model is that it is not only the invoice itself that is exchanged digitally; information regarding the invoice’s status must also be provided electronically.

Among other things, the recipient must inform the sender of the commercial acceptance or rejection of an invoice, as well as of full payment and the actual payment date. In principle, this information must be provided within four days of the relevant event, excluding Saturdays, Sundays, and national holidays.

In addition, supplementary statuses may be exchanged, such as partial acceptance, partial payment, or transfer of the invoice to a third party.

The public solution also receives information regarding rejection and full payment. This provides insight not only into the invoice exchange itself but also into the invoice’s subsequent processing. A key objective of Spanish legislation is to reduce and better monitor late payments between businesses.

Facturae, FACe, and Invoicing the Government

Electronic invoicing is not new in Spain. Suppliers to Spanish government organizations have been subject to mandatory e-invoicing since 2015. Among other formats, the structured Facturae format is used for this purpose.

FACe is the central access point for electronic invoices to the Spanish central government and is also used by various other public organizations. Through FACe, suppliers can submit invoices and track their processing status.

Facturae remains relevant within the new B2B system as well: it is one of the permitted invoice syntaxes. However, the new B2B infrastructure is broader than the existing B2G model and supports multiple formats as well as both public and private exchange platforms.

E-invoicing and VERI*FACTU are not the same

In addition to the new B2B e-invoicing rules, Spain also has VERI*FACTU and regulations for electronic invoicing systems. These terms are often used interchangeably, but they serve different purposes.

The B2B e-invoicing requirement specifies how a business invoice is created, exchanged, and tracked electronically between the supplier and the customer. The VERI*FACTU regulations set requirements for the software used to create invoices and for the integrity and traceability of invoice records.

In addition, Spain already has the Suministro Inmediato de Información (SII) system, through which certain businesses electronically transmit data from their VAT records to the tax authorities. E-invoicing, VERI*FACTU, and SII are thus different components of the ongoing digitization of Spain’s invoicing and VAT infrastructure.

What does ViDA have to do with Spain?

Spain’s domestic B2B e-invoicing requirement is a national initiative. Spain is therefore not waiting for the European Digital Reporting Requirements—set forth in “VAT in the Digital Age” (ViDA)—which will apply to relevant cross-border B2B transactions within the European Union starting July 1, 2030.

However, the Spanish architecture clearly aligns with the broader European development. Structured invoice data, EN 16931, and interoperability play a key role in the new system. UBL will also occupy a central position within Spain’s public infrastructure.

Starting in 2030, the European ViDA regime for e-invoicing and digital VAT reporting will be added for relevant cross-border transactions. As a result, international organizations will have to comply with both the national Spanish regulations and the harmonized European framework for cross-border transactions.

The Spanish Roadmap for E-Invoicing

The key milestones are:

  • January 15, 2015: Electronic invoicing becomes mandatory for many Spanish government organizations. Facturae and FACe play a central role in this.
  • September 28, 2022: The Ley Crea y Crece establishes the legal basis for mandatory electronic invoicing between businesses and professionals.
  • March 25, 2026: Real Decreto 238/2026 establishes the regulatory framework for the Spanish B2B e-invoicing system.
  • 12 months after the final ministerial regulation: The requirement will apply to businesses and professionals with a turnover exceeding 8 million euros in the preceding calendar year.
  • 24 months after the final ministerial regulation: The requirement will be extended to all other businesses and professionals.
  • July 1, 2030: ViDA introduces European e-invoicing and digital reporting for relevant cross-border B2B transactions.

What does this mean for organizations?

For organizations with a Spanish entity, e-invoicing will involve more than just the ability to generate or receive an XML file. The financial system must be able to process various structured formats, route invoices through the appropriate infrastructure, and provide feedback on receipt, acceptance, and payment.

This requires consideration of the integration between ERP or invoicing systems, private e-invoicing platforms, and the public Spanish infrastructure. Format conversion, validation, and the processing of invoice statuses also become part of the process.

Spain thus clearly illustrates how different national e-invoicing models can be within Europe. Belgium primarily uses Peppol, Germany largely leaves the exchange open, France works with accredited platforms, and Spain combines interoperable private platforms with a central public solution. For international organizations, this requires an e-invoicing infrastructure capable of supporting various national models.

Your Finance in flow

Office of the CFO solutions that bring E-transactions, Purchase to Pay, Order to Cash, and Financial Planning & Analysis into flow.