Tax and invoicingNewsSpain
Spain B2B e-invoicing mandate 2026: Compliance Guide
Also in: Español

The regulatory landscape for Spanish businesses has changed following the publication of Ministerial Order HAC/1028/2026 in the Official State Gazette on 5 October 2026. This order establishes the technical specifications for the Public E-Invoicing Solution (SPFE), officially triggering the countdown for the mandatory Spain B2B e-invoicing mandate 2026. Businesses must now prepare for a phased transition that will eventually require all B2B transactions to be processed through structured electronic formats to combat commercial delinquency and improve tax oversight.
What are the key deadlines for the Spain B2B e-invoicing mandate 2026?
Compliance is not immediate for all; instead, the Spanish government has established a phased rollout based on company size and legal structure. The transition period began on 6 October 2026 when the Order officially entered into force.

The following table outlines the mandatory requirements and their respective deadlines:
| Requirement | Target Group | Deadline |
|---|---|---|
| Issue, receive, and transmit e-invoices | Large enterprises (turnover > €8M) | 6 October 2027 |
| Transmit payment statuses | Large enterprises (turnover > €8M) | 6 October 2027 |
| Issue, receive, and transmit e-invoices | SMEs and freelancers (turnover ≤ €8M) | 6 October 2028 |
| Transmit payment statuses | SMEs (legal entities / personas jurídicas) | 6 October 2028 |
| Transmit payment statuses | Sole traders (personas físicas) & pass-through entities | 6 October 2029 |
The annual turnover threshold of €8,000,000 is calculated based on the prior calendar year according to Article 121 of the VAT Law. To ensure a smooth transition, the AEAT is required to have the SPFE fully operational by 6 August 2027, at least two months before the first phase begins.
What are the technical e-invoicing requirements in Spain?
To comply with the mandate, businesses cannot simply send PDF files via email. The new regulations require structured electronic data that follows specific European and national standards.

According to the technical documentation issued by the AEAT on 13 October 2026, all B2B e-invoices must adhere to the EN 16931 semantic model using UBL (Universal Business Language) syntax. Key technical constraints include:
- Unique Identifiers: Every invoice must generate a unique code by concatenating the Issuer NIF, the series, the invoice number, and the issuance date.
- No Embedded Files: Invoices submitted to the SPFE cannot contain embedded attachments, except for electronic signatures on interconnected invoices.
- Dual Reporting: If a company uses a private e-invoicing platform, they must simultaneously submit a marked electronic copia fiel (faithful copy) in UBL format to the AEAT's public platform.
- Outage Protocols: If a technical outage lasts longer than 24 hours, obligors must transmit the delayed invoices or statuses within 4 business days after the resolution.
How to prepare your business for compliance?
Transitioning to the Spain B2B e-invoicing mandate 2026 requires a shift from manual processes to automated data management. Experts suggest a structured implementation methodology to avoid errors during the AEAT's real-time automated validations.

First, companies should conduct a flow inventory to audit all current sales and purchase operations. This must be followed by data mapping, where invoice line details and payment status data points are linked to existing ERP sources.
Integration can be achieved through three main routes: 1. Native ERP Add-ons: Using built-in modules like SAP Document and Reporting Compliance. 2. External Middleware: Using connectors to extract ERP data and convert it into valid UBL XML. 3. Direct APIs: Using web services or REST APIs, which may be suitable for lower volumes.
As traditional OCR scanning of email PDFs becomes obsolete, procurement and finance departments must redesign processes to ingest XML data natively and reconcile purchase orders automatically.
What are the legal implications of the new mandate?
The mandate stems from the Ley Crea y Crece (Law 18/2022), which aims to prevent large firms from abusing payment terms. By requiring the transmission of payment statuses (such as full payment, rejection, or due dates), the government gains reliable data on effective payment timelines.
Regarding enforcement, the AEAT's web services perform real-time automated validations. If an invoice is submitted with errors, it will be rejected, requiring immediate correction and resubmission. While the provided legal texts do not specify exact monetary fine amounts, they do establish that full historical audit trails for all transactions remain permanently recorded in the SPFE.
It is also important to note the presumption of acceptance: if a recipient does not explicitly register a rejection or request a corrective invoice (factura rectificativa), the invoice is legally presumed to have been accepted.
This article is general information, not legal advice; for your own situation, check with the competent authority or a qualified adviser.
FAQ: Spain B2B e-invoicing mandate 2026
When do SMEs and freelancers need to start issuing e-invoices? SMEs, freelancers, and self-employed professionals with an annual turnover of €8 million or less must comply with the obligation to issue, transmit, and receive structured B2B e-invoices by 6 October 2028.
What is the difference between VERI*FACTU and B2B e-invoicing? VERI*FACTU focuses on controlling software integrity and billing records for tax prevention, whereas B2B e-invoicing governs the commercial delivery, acceptance, and payment tracking of contracts between businesses.
Are there any exemptions for transactions with companies outside of Spain? The mandate applies to B2B transactions where the recipient has their economic headquarters, permanent establishment, or tax residence in Spain. Transactions with non-resident entities without a permanent establishment in Spain fall outside this local mandatory scope.
How can companies integrate their internal systems with the AEAT? Companies can use native ERP integrations, external middleware/connectors to generate UBL XML, or direct API/web services. Those using private platforms must ensure they also send a copia fiel to the public SPFE.


