Electronic invoice in Spain
A practical guide to Spain’s B2G and upcoming B2B e-invoicing requirements, including timelines, formats, AEAT reporting, platform compliance and implementation.
Spain runs a two-speed system. B2G e-invoicing has been mandatory since 15 January 2015, built on the national Facturae format and public entry points, principally FACe. The domestic B2B mandate is legally settled — Law 18/2022 Crea y Crece and Royal Decree 238/2026 of 25 March, published on 31 March 2026 — but it is not yet running.
The reason is a single missing document. The mandate only starts counting once a ministerial order with the technical specifications enters into force, and as of today that order is still a draft. This page therefore separates what is legally fixed from what is still a projection — a distinction that matters more in Spain than in almost any other country.
Two obligations are already live, two are pending, and one depends on a document that has not been published yet.
Suppliers in the categories listed in Law 25/2013 must invoice public bodies electronically through a general entry point. Individual authorities may exempt invoices below €5,000.
The general B2B mandate is written into law, with the technical detail deferred to secondary legislation. Late payment control is one of the stated objectives alongside tax compliance.
The regulation settles the architecture, the admitted formats, the status reporting duties and the requirements for exchange platforms. It entered into force twenty days later, but its practical application is deferred.
A draft went to public consultation in April 2026 and closed on 8 May. It proposes entry into force on 1 October 2026, which would start the clock. Until the final text appears in the BOE, that date is a proposal and nothing more.
The mandate applies twelve months after the order enters into force. On the draft's own date that would be October 2027.
Twenty-four months after entry into force — October 2028 on the same assumption. The AEAT must make its public solution available at least two months before the first mandatory date.
EU-wide reporting for intra-Community B2B transactions begins. National CTC systems must be aligned with ViDA by 1 January 2035.
Beware of dates presented as settled. October 2027 and October 2028 circulate widely, but both rest on a draft provision that can still change. The only formulation that is legally safe today is “twelve or twenty-four months after the final ministerial order enters into force”.
Spain was among the first EU countries to make public-sector e-invoicing compulsory, and that system has been running unchanged in its essentials for over a decade.
The federal general entry point for electronic invoices. Autonomous communities and municipalities may run their own entry points or connect to FACe; a public directory lists them all.
The national XML format, normally carrying a XAdES electronic signature. The current published version is 3.2.2; FACe accepts 3.2, 3.2.1 and 3.2.2.
Acceptance by FACe confirms technical and administrative receipt. It does not mean the supply has been accepted as contractually conforming, and it does not automatically approve payment — a distinction worth keeping in mind when a public customer's payment is delayed.
The B2B obligation applies when four conditions hold at the same time. Missing any one of them takes the transaction outside the mandate.
A Spanish VAT number on your customer's side is not by itself enough to bring a transaction into scope. The test is whether the supplier is required to issue the invoice under Spanish rules and whether the transaction is attributable to the customer's Spanish establishment.
Most ordinary simplified invoices — facturas simplificadas, the Spanish equivalent of a till receipt — are excluded. The exception is the qualified simplified invoice that carries the extended set of recipient data.
Spain has chosen neither classic clearance nor a pure Peppol four-corner network. Businesses may use the AEAT public solution, one or more compliant private platforms, or a combination of both. What makes the model distinctive is what happens alongside the exchange.
Supplier → supplier's platform → customer's platform → customer
and, at the same time, the supplier's platform sends an exact copy of the invoice in UBL to the AEAT public solution.
That extra branch is what makes the model functionally close to a five-corner reporting model, even though Spanish law never uses the term. The difference from Italian- or Polish-style clearance is real and important:
The most accurate description is a hybrid decentralised CTC model with a central government repository and no prior clearance. Where a business uses the public solution directly, the model becomes more centralised: the AEAT then acts as transmission point, recipient and repository at once.
Where a recipient has not published a private platform address, the AEAT public solution becomes the default delivery point. Until direct connections are fully established, the public system can also act as a bridge between platforms.
The new system is built on the EN 16931 semantic model, but Spain admits an unusually broad set of syntaxes — including one that is not XML at all.
A private platform must be able to process and convert every admitted syntax, not just its own preferred one. A provider that handles UBL well but cannot read Facturae or EDIFACT will not meet the Spanish requirements — which is precisely why format conversion sits at the centre of any Spain project.
Invoices exchanged through private platforms must support the required authenticity and integrity mechanisms, including advanced electronic signatures or seals under national rules and eIDAS. The public solution will rely on its own authentication and NIF verification.
A PDF is not a substitute for the structured invoice in B2G, and will not be one in B2B once the mandate applies. There is one transitional carve-out: during the first twelve months of their obligation, large companies must accompany the structured invoice with a readable PDF copy unless the recipient has expressly agreed in advance to receive only the structured file. That copy is a courtesy, it is not sent to the AEAT, and it does not replace anything.
Spain now has three distinct reporting regimes with different legal purposes. Confusing them is the most common source of misunderstanding, so it is worth being precise about what each one does.
Delivers the legal invoice to the customer and a faithful copy to the AEAT at the moment of issue.
Feeds VAT ledger records to the AEAT. It never delivers the legal invoice to the buyer.
Governs how your invoicing software behaves: immutable records, chained hashes, event logs, QR codes.
The recipient does not merely receive the invoice — it must report back on it, and those statuses reach the AEAT regardless of which channel was used for the exchange:
This is where the Crea y Crece objective becomes visible: the payment data feeds the monitoring of payment terms between businesses, not only VAT control.
Suministro Inmediato de Información applies to large companies, VAT groups and members of the monthly refund register, with a general four-day transmission deadline. SII and the B2B mandate will coexist — neither replaces the other, though the legislation anticipates coordination to avoid unnecessary duplication.
The invoicing software rules under Royal Decree 1007/2023 follow their own calendar, deferred by Royal Decree-Law 15/2025:
In VERI*FACTU mode the billing records are transmitted to the AEAT automatically as they are created. In the alternative non-VERI*FACTU mode the software must generate and securely retain immutable records, but need not send each one at the moment of creation. Either way, this is a requirement about software, not a substitute for the B2B e-invoice.
A frequent question from foreign businesses: is Peppol certification enough to operate in Spain? It is not. Peppol certification covers transport and format; participation in the Spanish mandatory system requires a provider to meet the national requirements for a plataforma privada de intercambio de facturas electrónicas as well.
The published requirements do not oblige a provider to be a Spanish legal entity, to have Spanish owners, to maintain an office or staff in Spain, or to appoint a Spanish fiscal representative merely to offer a platform. An EU provider can in principle serve Spanish customers, provided it meets the substantive requirements and completes the national onboarding.
The right term is national compliance and technical onboarding into the AEAT B2B system — not a licence comparable to the Slovak digitálny poštár, and not a Spanish Peppol accreditation. The detailed identification, authentication and representation procedures are precisely what the pending ministerial order has to define, which is why no provider can honestly claim today to have completed a fully specified Spanish onboarding.
Peppol is not the mandatory national channel in Spain. It may be used by a private platform as a transport network and format, but Spanish law does not require domestic invoices to travel over Peppol. There is also no separate Spanish Peppol Authority in the published OpenPeppol list, which means Peppol operators in Spain work under general OpenPeppol rules rather than a Spain-specific requirement set.
For Spanish tax identifiers, Peppol uses EAS 9920, scheme name ES:VAT, with the AEAT as issuing agency, built on the Spanish NIF. This applies when Peppol transport is used; the national system will operate its own directory and endpoint mechanism.
Spain has no single retention figure, which trips up more companies than it should. Three different periods can apply to the same invoice, and the longest one governs.
The copy held by the AEAT is not your archive. Spain's public solution stores what it receives for the authority's own purposes; the obligation to retain a complete, readable and verifiable set of invoices stays with the business, whether it keeps them in-house or with a provider.
Royal Decree 238/2026 does not introduce a dedicated penalty table for B2B e-invoicing. The general invoicing provisions of the Spanish General Tax Law apply instead, which means the amounts are proportional to the transactions concerned rather than fixed per infringement.
Percentage-based penalties behave very differently from the flat fines used in Belgium or Slovakia. A systematic failure — say, an ERP that never sends the copy to the AEAT — is measured against turnover, so the exposure grows with the business rather than with the number of incidents.
Spain asks more of a service provider than most markets: several formats, two transport protocols, signatures, status handling and a parallel copy to the tax authority. As a certified Peppol Access Point we cover the European side of that today and are preparing for the Spanish national onboarding once the ministerial order defines it:
Spain's B2B mandate is decided in substance and open in timing. Royal Decree 238/2026 has settled the architecture: a hybrid decentralised model in which invoices travel between private platforms or through the AEAT public solution, while a faithful UBL copy reaches the tax authority at the moment of issue. There is no prior clearance, but there is full visibility.
What remains open is the ministerial order that starts the twelve- and twenty-four-month clocks and defines how platforms actually connect. Until it appears in the BOE, every calendar date in circulation is a projection — including the widely quoted October 2027 and October 2028.
The practical advice is not to wait for the order before preparing. Structured invoice data, clean master data, a Spanish NIF handled correctly and an ERP that can emit EN 16931 are all needed whichever date arrives — and a business already exchanging over Peppol has done a substantial part of the work.