E-invoicing in Spain: Complete Guide
Spain approves a new Royal Decree reactivating mandatory B2B e-invoicing, aligning with EU ViDA and boosting digitalisation, payment efficiency, and SME cash flow.

E-invoicing Mandate in Spain
Spain's mandatory B2B e-invoicing framework is now fully in motion. With Royal Decree 238/2026 published in March, the draft Ministerial Order governing the Public E-Invoicing Solution (SPFE) opened to public consultation in April, we can have a clearer picture of what is coming — and when. This article brings together all the key rules, timelines, and technical details from official sources.
The obligation applies to all businesses and professionals (empresarios y profesionales) subject to Spanish invoicing regulations under Royal Decree 1619/2012, for transactions where the recipient is a business established in Spain, and where the supply is directed to that establishment.
This covers domestic B2B transactions between Spanish-established entities. B2C transactions and simplified invoices remain outside the mandate. The position of non-established businesses with a Spanish VAT registration has not been definitively clarified in the published texts, and businesses in this situation should monitor further guidance.
Exclusions include transactions that may use simplified invoices (as per Article 4 of RD 238/2026), sectors specifically excluded by the Second Additional Provision, and certain particularities under the seventh paragraph of the twenty-first Additional Provision of Law 56/2007.
Implementation Timeline
The go-live dates are triggered by the entry into force of the Ministerial Order. Based on the draft Order presented at the 19 May 2026 seminar, that date is expected to be 1 October 2026. The resulting schedule is as follows:
- Mandatory e-invoicing (issue & receive): Annual turnover > €8 million - 1 October 2027
- Mandatory e-invoicing (issue & receive): Annual turnover ≤ €8 million - 1 October 2028
- Payment status reporting: Large businesses (turnover > €8M) - 1 October 2027
- Payment status reporting: SMEs — legal entities (turnover ≤ €8M) - 1 October 2028
- Payment status reporting: SMEs — sole traders & entities under income attribution regime - 1 October 2029
- Private platform obligations All private platforms - 1 October 2027 (12 months after Order)
During the first 12 months of mandatory compliance, large businesses will be required to accompany each e-invoice with a PDF document to ensure human readability for recipients not yet on the system.
Important caveat: The Order has not yet been formally published in the BOE. Dates should be monitored as the Order progresses through the legislative process.
The Spanish E-Invoicing System: Architecture
Spain's system combines two complementary channels through which businesses can issue and receive e-invoices:
- Private platforms (Plataformas privadas de intercambio): Businesses may use interoperable private invoicing platforms. These are not required to use the SPFE directly to issue invoices, but they must simultaneously send a faithful electronic copy (copia fiel) of each invoice in UBL syntax to the SPFE at the moment of issuance. Private platforms are configured as routing hubs for invoice traffic, and they are required to recover electronically exchanged invoices from the SPFE automatically and make them immediately available to their clients.
- Public E-Invoicing Solution (Solución Pública de Facturación Electrónica — SPFE): The SPFE is a free solution managed by the AEAT, available to all businesses and professionals. It serves two functions simultaneously: it is the default tool for businesses that do not use a private platform, and it is the universal repository for faithful copies of all e-invoices issued through private platforms. Its key features are:
- Invoice issuance via a web form (individual, per invoice) or via web services for automated integration.
- Interconnection with private platforms via web services.
- Receipt of faithful copies from private platforms.
- Management of payment status communications.
- Access, consultation, and retrieval of invoices and their statuses.
The SPFE must be available to businesses at least two months before its first effective application date.
Technical Format Requirements
The Spanish e-invoicing system adopts UBL (Universal Business Language) as the reference syntax, chosen because it complies with the European standard EN16931 and is the most widely used of the two syntaxes permitted under EU Directive 2014/55/UE on e-invoicing in public procurement. Both invoice issuance via the SPFE and interconnection through private platforms must follow the EN16931 semantic data model under UBL syntax.
E-invoices are subject to dual technical validation:
- Syntax validation via an XSD validator (XML Schema Definition) checking UBL structure.
- Semantic validation via a Schematron model based on the EN16931 standard (2026 version), published in public repositories on GitHub.
Each invoice must include a unique code (as required by Article 7.5 of RD 238/2026), generated by concatenating the issuer's NIF (tax identification number), the invoice number and series, and the issue date. This ensures full traceability and prevents duplication.
Invoices may be sent with an electronic signature via interconnection, but cannot incorporate embedded or integrated files of any kind.
Payment Status Reporting: A Key Additional Obligation
One of the most distinctive features of the Spanish system — beyond e-invoice exchange — is the mandatory reporting of invoice status throughout its lifecycle. This goes further than simple invoice exchange and is designed to monitor payment terms and combat late payment in the private sector.
Recipients (buyers) must report to the SPFE:
- Mandatory: rejection of the invoice (if applicable — if not reported, the invoice is presumed accepted); date of full effective payment; payment due date.
- Optional: date of receipt of goods, date of service performance, date of receipt of the invoice.
-
Issuers (suppliers) may report to the SPFE:
- Effective collection (cobro efectivo) of the invoice.
- Non-payment (impago).
- Discrepancies with dates reported by the recipient.
Communications are made either via a web form (identifying the invoice by its unique code) or via web services, and each admitted communication receives an acknowledgement of receipt with a Secure Verification Code (CSV).
Access and Authentication
Access to the SPFE for submission requires authentication via electronic certificate. Where access is via the web form, the Cl@ve system may also be used where applicable.
Businesses may access the SPFE directly or through an authorised representative or social collaborator (colaborador social). However, when using the web form, representation must be evidenced through a power of attorney (apoderamiento) registered in the AEAT's representation registry. The same requirement applies for consultation and retrieval of invoices.
Current e-invoicing rules in Spain
Up until now, e-invoicing in Spain was mandatory only in the transactions made with the administration (B2G), since 2015. Also, e-invoicing on B2B transactions was voluntary, i.e., in case the supplier and the customer recipient agree on using electronic invoices.
How can Marosa help you?
VATify incorporates an e-invoicing module allowing you to issue and receive invoices in all Europe using a single standard file. Marosa is authorized to issue e-invoices in all countries where it is mandatory on B2B transactions.
Contact our team to see a demo of how VATify can be your single platform for all European e-invoicing and VAT reporting obligations.
Are you up to date with the latest EU VAT news? Subscribe to our VAT newsletter and do not miss a thing!
We will call you back
Give us your contact details and our team will contact you to organize a demo and evaluate how you can integrate your system with our tool.