Last reviewed: June 1, 2026
Spain is preparing to mandate B2B e‑invoicing for domestic transactions under a phased rollout that begins in late 2026 and extends through 2028. Rooted in Article 12 of Ley 18/2022, the Ley de Creación y Crecimiento de Empresas (Crea y Crece), the mandate replaces PDF and paper invoicing between businesses with structured, machine‑readable electronic invoicing in Spain. For SaaS platforms, online marketplaces and tech startups operating in or selling into the Spanish market, the change carries immediate implications across product architecture, customer contracts, tax reporting and vendor relationships.
This guide breaks down the legal framework, technical e-invoicing requirements Spain imposes, contractual adjustments every platform must make, and the step‑by‑step project plan that product, finance and legal teams should be executing right now.
Quick answer: Yes, once the implementing regulations take effect, a structured electronic invoice will be required for all domestic B2B transactions between entities established in Spain. PDF invoices sent by email will no longer satisfy the legal obligation.
The legislative foundation is Article 12 of Ley 18/2022, published in the Boletín Oficial del Estado (BOE) on September 29, 2022. That article empowers the government to require all entrepreneurs and professionals to issue, transmit and receive structured electronic invoices in their commercial relationships with other businesses. The obligation extends to the entire lifecycle: generation, transmission, receipt and storage.
Implementing the mandate requires a Royal Decree, the detailed technical regulation, which was approved in draft form by the Council of Ministers in March 2026 and submitted for public consultation. Once the final text is published in the BOE, the clock starts on the compliance deadlines for each tranche of affected businesses. Meanwhile, Spain’s mandate aligns with the broader EU initiative known as VAT in the Digital Age (VIDA), which the European Commission has been developing to harmonise e‑invoicing and real‑time reporting across member states.
The practical shift is fundamental. Where businesses previously had discretion over invoice format, often exchanging PDFs via email, the new regime demands structured data files (primarily Facturae XML) transmitted through authorised channels. This is not simply a format upgrade; it changes the data model, the transmission architecture and the legal obligations attached to every invoice your platform generates or facilitates.
Quick answer: Mandatory e-invoicing Spain follows a phased rollout. Large enterprises (annual turnover above €8 million) face the earliest deadline, with smaller businesses given additional time. Final dates depend on the publication of the implementing order in the BOE.
The draft Royal Decree establishes a two‑phase approach pegged to annual turnover. The table below summarises the expected timeline, drawing on the draft text and widely reported vendor analyses. Because the final implementing order had not been published in the BOE as of this article’s review date, all dates should be treated as indicative and monitored for updates.
| Date | Action | Who Is Affected |
|---|---|---|
| September 29, 2022 | Ley 18/2022 (Crea y Crece) published in BOE, Article 12 establishes the legal mandate for B2B electronic invoicing | All entrepreneurs and professionals (obligation pending implementing regulation) |
| March 2026 | Council of Ministers approves draft Royal Decree; public consultation period begins | Government and all regulated parties (review and comment stage) |
| Late 2026 – early 2027 (expected) | Final implementing order published in BOE; Phase 1 compliance period begins | Large enterprises with annual turnover exceeding €8 million |
| Approximately one year after Phase 1 (vendor‑reported: October 2027 – October 2028) | Phase 2 compliance deadline | All remaining businesses and professionals engaged in domestic B2B transactions |
Industry observers expect the final BOE publication to arrive in the second half of 2026, triggering the Phase 1 countdown. SaaS platforms and marketplaces with Spanish operations or Spanish‑resident customers should treat the Phase 1 window as their hard deadline, regardless of their own turnover, because their enterprise clients will require compliant invoicing infrastructure from day one. Waiting for Phase 2 deadlines is a strategic risk if your largest customers are Phase 1 entities.
The Crea y Crece mandate applies to domestic B2B transactions, that is, transactions between entrepreneurs or professionals who are both established in Spain. Cross‑border transactions (where one party is established outside Spain) are not currently in scope of the national mandate, though they may be drawn into EU‑wide requirements once the VIDA framework is finalised and transposed.
For SaaS platforms serving international customer bases, this distinction is critical. If your platform generates invoices for a Spanish seller to a Spanish buyer, that invoice falls within the mandate. If either party is established abroad, the national obligation does not apply, though the platform may still need to support e‑invoicing for those parties under the laws of their home jurisdiction.
The draft Royal Decree uses an annual turnover threshold of €8 million to determine phasing. Businesses above this threshold must comply in Phase 1; those below it receive an additional compliance window (Phase 2). The draft does not create a blanket exemption for small businesses, all entrepreneurs and professionals conducting domestic B2B sales will eventually be required to issue structured electronic invoices.
A simple decision framework for platform operators:
The technical layer of B2B e‑invoicing Spain is where product teams, CTOs and engineering leads will spend most of their implementation effort. Understanding the required format, the transmission architecture and the available integration patterns is essential for building a compliant, and commercially practical, solution.
Quick answer: Facturae is the Spanish government’s structured XML format for electronic invoices. It is already mandatory for B2G (business‑to‑government) invoicing via the FACe portal and is the baseline format for the new B2B mandate.
The Facturae specification, maintained by the Spanish government and published via the official Facturae portal, defines mandatory fields including seller and buyer tax identification (NIF/CIF), invoice number, line items with tax breakdowns, total amounts and currency. Invoices must be digitally signed using an advanced or qualified electronic signature to ensure integrity and authenticity. Version 3.2.2 of the Facturae schema is the current standard, though platforms should monitor for updates tied to the implementing regulation.
Spain’s B2B e‑invoicing architecture follows a five‑corner model, in contrast to the simpler three‑corner (direct exchange) or four‑corner (network) approaches used in some other jurisdictions. The five actors are:
For SaaS platforms and marketplaces, the key question is which corner(s) your product occupies and what obligations attach to each. If your platform issues invoices on behalf of sellers (common in marketplace models), you are effectively the issuer’s service provider and potentially the issuer of record, which carries direct liability for format compliance and data accuracy.
Three primary integration patterns are available. The right choice depends on your platform’s scale, engineering capacity and appetite for ongoing maintenance of compliance logic.
| Integration Option | Pros | Cons |
|---|---|---|
| Direct native Facturae generation (in‑house) | Full control over data model; no vendor dependency; potentially lower long‑term cost at scale | High initial development cost; requires dedicated team to track schema updates and regulatory changes |
| Aggregator / middleware (third‑party vendor) | Faster time to compliance; vendor maintains format updates; sandbox environments available for testing | Recurring vendor fees; dependency on third‑party uptime and update cadence |
| Hybrid, platform stores JSON, transforms to Facturae on issuance via API | Balances internal data control with outsourced format compliance; easier product rollout | Mapping complexity between internal schema and Facturae; testing overhead for edge cases |
Regardless of integration approach, every platform must implement robust handling for:
Quick answer: SaaS providers and marketplaces must update customer agreements, marketplace terms of service and data processing agreements to reflect new invoicing obligations, allocate liability for non‑compliant invoices, and address GDPR considerations arising from structured invoice data.
If your SaaS product generates invoices for customers, whether as a billing platform, ERP, accounting tool or checkout system, your customer contract must now address who bears responsibility for format compliance, data accuracy and timely submission to the clearance node. The following clause structures are recommended as starting points (and should be adapted with jurisdiction‑specific legal advice):
Sample clause, invoice issuance and format:
“The Platform shall generate all B2B invoices for Customer’s domestic Spanish transactions in Facturae XML format (version 3.2.2 or as subsequently required by law), digitally signed in accordance with the eIDAS Regulation, and shall submit each invoice to the designated clearance node within the timeframe required by applicable Spanish law. Customer shall provide accurate and complete data necessary for invoice generation, including valid NIF/CIF and transaction details.”
Sample clause, data submission and remediation:
“In the event that a submitted invoice is rejected by the clearance node, the Platform shall notify Customer within [24/48] hours and use commercially reasonable efforts to remediate the error and resubmit. Where rejection results from inaccurate data provided by Customer, Customer shall be responsible for supplying corrected data within [timeframe] and shall indemnify the Platform for any penalties arising from the delay.”
Marketplace operators face a more complex challenge. Depending on the commercial model, whether the marketplace issues invoices on behalf of sellers, or sellers issue their own invoices through the platform, liability for compliance sits in different places. The implementing regulation is expected to hold the invoice issuer primarily responsible, but marketplace operators who facilitate issuance carry significant exposure.
Sample clause, allocation of liability between marketplace and sellers:
“Seller acknowledges that all invoices issued through the Marketplace for domestic Spanish B2B transactions must comply with the format, signature and submission requirements of Ley 18/2022 and its implementing regulations. Seller shall ensure the accuracy and completeness of all invoice data provided to the Marketplace. Seller shall indemnify the Marketplace against any fines, penalties or claims arising from Seller’s failure to provide compliant data. The Marketplace reserves the right to withhold settlement payments where Seller’s invoices are rejected by the clearance node until compliant resubmission is confirmed.”
Marketplace operators should also update their data processing agreements (DPAs) to cover the personal data elements present in structured invoices, names, NIF numbers, addresses, and conduct a Data Protection Impact Assessment (DPIA) where invoice data flows involve new processing activities or cross‑border transfers.
Compliance with B2B e‑invoicing Spain demands coordinated action across product, finance and legal functions. The checklist below assigns ownership and suggested timeframes based on a Phase 1 deadline in late 2026.
| Risk | Likelihood | Mitigation |
|---|---|---|
| Invoice format rejected by clearance node (wrong schema version, missing fields, invalid signature) | High | Implement automated validation suite against Facturae schema; use aggregator with sandbox; build retry and alerting workflows |
| Liability exposure for non‑compliant seller invoices on marketplace | Medium | Update T&Cs with seller indemnities; require seller data certification; reserve settlement holdback rights |
| Data protection breach from structured invoice data containing PII | Medium | Update DPAs; conduct DPIA; limit PII in invoice payload to legally required fields; encrypt storage |
| Regulatory timeline accelerates or final rules deviate from draft | Medium | Assign dedicated regulatory monitoring role; subscribe to BOE alerts; build modular integration that can adapt to spec changes |
| Customer churn or friction from invoicing workflow changes | Low–Medium | Early customer communication; phased rollout with pilot group; self‑service documentation and support resources |
For board‑level reporting and investor due diligence, the following one‑page action summary captures the critical milestones:
Spain’s mandatory B2B e‑invoicing regime represents one of the most significant compliance shifts for technology businesses operating in the Spanish market in recent years. The convergence of legal obligation, technical specification and contractual risk means that SaaS platforms, marketplaces and tech startups cannot afford to treat this as a back‑office tax project. Product, legal and finance teams must work in parallel, now, to ensure that invoicing infrastructure, customer contracts and operational processes are ready well before the Phase 1 deadline. For businesses seeking specialist guidance on B2B e‑invoicing Spain compliance, contract drafting and technical integration strategy, the Global Law Experts lawyer directory connects you with experienced practitioners in Spanish technology law.
This article was produced by Global Law Experts. For specialist advice on this topic, contact Jesus Osuna at Addwill, a member of the Global Law Experts network.
posted 12 minutes ago
posted 13 minutes ago
posted 36 minutes ago
posted 37 minutes ago
posted 1 hour ago
posted 1 hour ago
posted 1 hour ago
posted 2 hours ago
posted 2 hours ago
posted 2 hours ago
posted 2 hours ago
posted 3 hours ago
No results available
Find the right Legal Expert for your business
Sign up for the latest legal briefings and news within Global Law Experts’ community, as well as a whole host of features, editorial and conference updates direct to your email inbox.
Naturally you can unsubscribe at any time.
Global Law Experts is dedicated to providing exceptional legal services to clients around the world. With a vast network of highly skilled and experienced lawyers, we are committed to delivering innovative and tailored solutions to meet the diverse needs of our clients in various jurisdictions.
Global Law Experts is dedicated to providing exceptional legal services to clients around the world. With a vast network of highly skilled and experienced lawyers, we are committed to delivering innovative and tailored solutions to meet the diverse needs of our clients in various jurisdictions.
Send welcome message