negocio · 4 min read
Mandatory B2B e-invoicing in Spain: what it requires and when
Royal Decree 238/2026 requires structured e-invoicing between Spanish firms from October 2027 or 2028, by turnover. What it demands and how it differs from Verifactu.
Business-to-business e-invoicing in Spain has moved from an announcement to a firm timetable. Royal Decree 238/2026 and the implementing order, Orden HAC/1028/2026, set the calendar for the B2B obligation under Law 18/2022 on business creation and growth (“Crea y Crece”). At Evicron, an AI and custom software studio based in Barcelona, we build invoicing systems that comply with this obligation — and with Verifactu — into the software we develop for clients. This guide covers what the rule actually requires, who it hits first, and why it is a different obligation from Verifactu, with which it is often confused.
What Royal Decree 238/2026 actually requires
The regulation develops the obligation to issue, send and receive structured electronic invoices — not a PDF emailed to a client — whenever the recipient is another business or professional with a registered office, permanent establishment or residence in Spain. Simplified invoices (receipts) are generally excluded, except for the “qualified simplified invoices” under article 7.2 of the invoicing regulation.
Orden HAC/1028/2026, in force since 6 October 2026, sets out the technical details: it regulates the public e-invoicing solution that the Spanish tax agency (AEAT) will run, built on the European semantic model EN 16931 and UBL syntax, as confirmed by the legal analysis from finreg360.
Timeline: who it affects and from when
The deadline depends on the previous year’s turnover, not a company’s formal size category:
- Turnover above €8 million: mandatory from 6 October 2027. The requirements for operators of private exchange platforms also take effect from that same date.
- Everyone else — smaller companies, freelancers and professionals: mandatory from 6 October 2028.
For the twelve months after October 2027, businesses in the first group must still attach a human-readable PDF to their invoices, unless the recipient agrees to receive only the structured electronic version.
What changes in practice for your business
Beyond the date, the content of the obligation is concrete:
- Structured format, not a PDF by email: the invoice must be a file a system can read and process automatically, not a document meant to be read by eye.
- Two routes, not mutually exclusive: use AEAT’s public solution, a private e-invoicing platform, or both. If you use a private platform, you still have to send a copy of each invoice to the public solution, which also acts as a repository.
- Status reporting: the recipient must report acceptance or rejection of the invoice, and the date of full payment, within four calendar days (excluding weekends and public holidays).
- Accepted formats on private platforms: Facturae, UBL, CII or EDIFACT, as summarised by B2Brouter in its overview of the regulation.
If your company works with larger clients, bear in mind some of them may start requiring structured invoices as early as 2027 — before your own turnover legally obliges you — simply because they need to comply earlier themselves.
How it differs from Verifactu
These are two separate obligations that run in parallel, and it is worth not conflating them when planning a project:
| B2B e-invoicing (RD 238/2026) | Verifactu (RD 1007/2023) | |
|---|---|---|
| What it governs | How invoices are exchanged between businesses | How software records each invoice internally |
| Requires | Structured format, acceptance/rejection, payment date | Integrity, traceability and, under VERI*FACTU, real-time reporting to the AEAT |
| Deadline for large companies | 6 October 2027 | 1 January 2027 |
| Deadline for everyone else | 6 October 2028 | 1 July 2027 |
We cover the full Verifactu timeline, its technical requirements, and the delay Spain’s tax authority has announced but not yet turned into law, in our guide on when Verifactu is actually mandatory. A single invoicing system can cover both obligations at once, but it needs to be designed for both, not just one.
Why it doesn’t pay to wait until the deadline
Two years may sound like plenty of time for smaller businesses, but adapting an operating company’s invoicing means cleaning up customer and supplier data, deciding whether to use the public solution, a private platform, or both, and checking that the integration with your ERP, CRM or payment gateway keeps working without breaking everything else. If Verifactu is also on your horizon, it makes sense to solve both obligations in the same project rather than as two separate ones.
At Custom software we review, in a free initial consultation, whether your current invoicing setup already meets these requirements or needs an integration or custom build, and we close a fixed quote before starting. Get in touch and we’ll look at your case together.