Resources - Blog
Spain’s B2B e-invoicing mandate: What IT and EDI teams need to know before July 2027
By Ioana Ploesteanu
March 31, 2026
Read time:3 MINUTES
The Royal Decree under the Crea y Crece Law was officially adopted on March 24, 2026. Here is a technical breakdown of what is changing, what formats are required, and how Babelway can connect your systems to Spain’s new e-invoicing infrastructure.
Spain’s B2B e-invoicing mandate has cleared its final legal hurdle. On March 24, 2026, Spain’s Council of Ministers formally adopted the Royal Decree under the Ley Crea y Crece (Law 18/2022), establishing mandatory electronic invoicing for all B2B transactions between businesses and self-employed professionals.
For IT Managers and EDI specialists, this is a system integration project with a firm deadline. Large companies must be technically ready by July 1, 2027. Here is what you need to understand.
You can try out Babelway for free for 30 days, before deciding if this is the tool for you.
What the Royal Decree means technically for the e-Invoicing mandate in Spain
Under the Crea y Crece Law, Spain is requiring businesses to issue, transmit, and store invoices in structured electronic formats, specifically FacturaE, UBL, or CII. PDF invoices will no longer be legally valid for B2B transactions once the mandate takes effect.
The compliance timeline is phased:
- Large companies (turnover above €8 million): Mandatory from July 1, 2027 -> 12 months after the Royal Decree adoption.
- SMEs and all other taxpayers: Mandatory from mid-2028 -> 24 months after adoption.
One important technical note on the transition period: during the first 12 months after the Royal Decree enters into force, companies required to issue electronic invoices must accompany them with a PDF copy to ensure readability for counterparties for whom the obligation has not yet come into effect, unless the recipient voluntarily agrees to receive invoices in their original structured format.
Beyond invoice issuance, there is also a status reporting requirement your e-Invoicing systems must handle. Recipients will be required to report the status of each invoice, including acceptance, rejection, or full or partial payment, to the Spanish Tax Agency (AEAT) within 4 calendar days of the transaction.
Two parallel obligations: Crea y Crece and VeriFactu
Spain’s e-invoicing landscape has two distinct technical tracks running simultaneously, and it is critical not to conflate them.
Spain has introduced two parallel obligations:
- VeriFactu (Royal Decree 1007/2023), which sets requirements for certified invoicing software that guarantees the integrity and immutability of invoice records.
- The Crea y Crece B2B e-invoicing mandate, which governs the structured electronic exchange of invoices between businesses.
VeriFactu is about your invoicing software’s internal architecture, which implies immutability, traceability, and tamper-proofing of records. Updated deadlines under Royal Decree-Law 15/2025 set January 1, 2027 for Corporate Income Tax taxpayers and July 1, 2027 for business owners and professionals under IRPF.
If your organization already reports through Spain’s SII (Suministro Inmediato de Información) system, you are excluded from VeriFactu obligations, but you are still in scope for the Crea y Crece B2B mandate.
Accepted formats and platform architecture for the B2B e-Invoicing mandate in Spain
Spain has opted for a decentralised Continuous Transaction Control (CTC) model. The accepted e-invoice formats are UBL, Facturae, CII, and EDIFACT. The infrastructure combines a public electronic invoicing solution, operated by AEAT as an invoice repository, with approved private e-invoice exchange platforms.
Copies sent to the public platform must be in UBL format specifically. Your system architecture will need to support format mapping to UBL as a baseline, alongside whichever format your trading partners require for direct exchange.
This decentralised model means you have a choice: connect to the AEAT public platform, route through a certified private platform, or support both. That decision needs to be built into your integration design early.
Scope: Who needs to be technically ready?
The mandate applies only to B2B local transactions. Non-resident companies are only subject to e-invoicing obligations if their local B2B transactions are carried out through a permanent establishment in Spain.
There are also regional exceptions to factor into your compliance mapping: the mandate covers all Autonomous Communities including Ceuta, Melilla, and the Canary Islands, but excludes the Basque Country and Navarre, which operate TicketBA (their own systems) and specific regional regulations.
What your integration checklist should include
Here is a practical technical checklist for IT and EDI teams preparing for Spain’s mandate:
1. Format mapping
Confirm your ERP or middleware can generate invoices in UBL, Facturae, CII, or EDIFACT. Map your internal invoice data model to the EN 16931 semantic data model that underpins Spain’s requirements.
2. Platform connectivity
Decide whether you will connect to the AEAT public platform, a certified private platform, or both. Define your API or protocol connectivity (REST, SFTP, AS2, etc.) for each path.
3. VeriFactu software certification
Verify with your invoicing software vendor that their system will be VeriFactu-compliant by January 1, 2027 (for corporate entities). Request their declaration of responsibility confirming certification.
4. Invoice status workflows
Build the outbound and inbound status reporting flows. Your AP system must be able to send and receive invoice status codes (accepted, rejected, paid) and report them to AEAT within four calendar days.
5. PDF fallback during transition
During the first 12 months of the mandate, your system needs to generate a compliant PDF alongside the structured invoice file for counterparties not yet under the obligation.
6. Regional routing logic
If your trading partners include entities in the Basque Country or Navarre, you will need separate routing logic for TicketBAI compliance rather than the national Crea y Crece system.
7. Multi-country coordination
How Babelway handles Spain’s technical complexity
Spain’s combination of multiple accepted formats, dual-track obligations, a decentralised CTC model, and regional exceptions makes it one of the more technically layered mandates in Europe. Babelway is built precisely for this kind of integration challenge.
Format transformation at scale
Babelway’s format transformation engine supports UBL, EDIFACT, XML, Facturae, CII, and flat files natively. Whether your ERP outputs IDocs, X12, or a proprietary XML, Babelway maps and transforms it into a compliant Spanish e-invoice format without requiring custom development on your end.
Protocol flexibility
Babelway connects across AS2, SFTP, FTP, REST API, HTTP, email, and more — giving you the flexibility to integrate with the AEAT public platform or any certified private operator using whichever protocol they require.
One integration layer, many countries
If your organization already processes EDI flows for France, Belgium, or Poland through Babelway, adding Spain is an extension of your existing setup, not a new project. Babelway’s multi-country architecture means you manage all your e-invoicing integrations from a single platform, reducing complexity and maintenance overhead for your team.
Built for EDI teams
Babelway is a self-service integration platform designed for IT and EDI specialists who want control over their integration logic without dependency on vendor support for every change. You can build, test, monitor, and modify your Spain e-invoicing flows directly, with full visibility into message transformation and delivery status.
Spain is ready. Is your integration stack?
The Royal Decree adopted on March 24, 2026 sets a firm technical deadline: large companies must have their systems live by July 1, 2027. That is roughly 15 months, a realistic but not comfortable window when ERP configuration, format mapping, platform onboarding, and end-to-end testing are all in scope.
The companies that will meet this deadline comfortably are those that start the integration work now, not in Q1 2027.
Babelway is ready to help you connect. As a flexible EDI and e-invoicing integration platform supporting all Spain-compliant formats and protocols, Babelway takes the technical complexity of Spain’s mandate off your plate — and connects it seamlessly to whatever else you are already running.
Book a demo or start your 30-day trial to see how Babelway handles Spain’s e-invoicing integration requirements.
Related Blog articles
- www.tradeshift.com/resources/compliance/spain-b2b-e-invoicing-mandate-2027/
- www.babelway.com/resources/blog/belgium-e-invoicing-2026-smbs-peppol-babelway/
- www.babelway.com/resources/guides-ebooks/peppol-guide/
- www.babelway.com/resources/case-studies/yonderland-frees-employees-for-strategic-work-with-b2b-integration-platform/