English English

E-Invoicing in Spain

Country Situation

General Description

In Spain, B2G e-invoicing has been mandatory for suppliers to public administrations since January 2015, under Law 25/2013. Invoices must be issued in the structured Facturae XML format (version 3.2 or higher) with a digital signature, ensuring compliance with EN 16931 standards. Each invoice must also include a DIR3 code, which identifies the relevant administrative body.

There is a central platform that covers almost all potential customers. That being said, some additional platforms exist, particularly in the basque country, which are not connected to FACE. These are expected to remain in place during the implementation of B2B e-invoicing.ae XML format (version 3.2 or higher) with a digital signature, ensuring compliance with EN 16931 standards. Each invoice must include a DIR3 code.

There is a main Central Platform that covers almost all the potential customers, but there are some other platforms, specially in the basque country that are not covered by FACE. It is expected to be kept during the B2B implementation.

FAQs

Is e-invoicing mandatory in Spain?
Yes. E-invoicing is mandatory for all suppliers issuing invoices to the public sector in Spain since January 2015, as per Law 25/2013. All public administrations are required to accept electronic invoices. B2B e-invoicing however is currently not mandatory but expected in 2026/2027.
What format is used for Spanish e-invoicing?
The official format is facturae, an XML-based structured format developed by the Spanish government. Facturae 3.2.2 is the current version.
Which are the platforms to be connected?
The primary platform is FACe (Punto General de Entrada de Facturas Electronicas), managed by the Ministry of Finance. For central and most of the regional/local administrations, other platforms are used, like Osiriz, Osakidetza and others.
How can I identify the customers inside the invoices?
Customers (public administrations) are identified in facturae invoices using their DIR3 codes, which consist of three fields:
- Accounting office (Oficina Contable),
- Management body (Órgano Gestor),
- Processing unit (Unidad Tramitadora).

These codes are provided by the contracting public entity and must be included in the invoice’s XML structure to ensure correct routing and processing.
Do I need to digitally sign my e-invoice in Spain?
Yes. B2G e-invoices in Spain must include an advanced electronic signature based on a qualified certificate, per Royal Decree 1619/2012 and eIDAS regulations. This ensures authenticity and integrity. Suppliers need a digital certificate (e.g., from FNMT or other trusted providers) to sign facturae XML invoices before submission to FACe or regional platforms.
Can I track the status of my e-invoice via the FACe platform?
Yes. You can track the status of your invoice through the FACe platform via the invoice reference and a tracking code. Statuses include received, validated, rejected, paid, etc.
What are the archiving requirements for B2G e-invoices?
Suppliers must electronically archive B2G e-invoices for at least six years.
Can foreign suppliers submit electronic invoices to Spanish public entities?
Yes. As long as they comply with the Spanish facturae format, use an accepted electronic certificate and transmit it through the FACe platform or an integrated provider.

Country Specs

Mandate StatusMandatory
Model TypeCentralised exchange
Government EntityFACE
FormatsFacturae
Infrastructure / PlatformFACE, among others
E-signature RequiredYes, qualified electronic signature
Key DeadlinesNo upcoming deadlines
AR MandatoryYes
AP MandatoryYes
Peppol AvailableNo
Domestic TransactionsYes
Cross-border TransactionsNo
Archiving Period6 Years
Archiving AbroadYes

Country Situation

General Description

The mandatory B2B electronic invoicing system in Spain represents a structural transformation of commercial documentation, driven primarily by the "Ley Crea y Crece" (Law 18/2022) and technically regulated by Real Decreto 238/2026. The mandate applies to all entrepreneurs and professionals operating within the national territory and aims to reduce commercial late payments (morosidad), foster business digitalization, and improve tax transparency. To achieve this, the Spanish model utilizes a hybrid architecture where businesses can choose to exchange invoices through accredited private platforms, utilize the free state-managed Public Electronic Invoicing Solution (SPFE), or use a combination of both.

Under this new system, electronic invoices must be issued as structured data messages complying with the European EN 16931 semantic standard, using syntaxes such as UBL, Facturae, EDIFACT, or CII. A core requirement is that if businesses exchange invoices via private platforms, the issuer's software must simultaneously transmit a "faithful copy" (copia fiel) in UBL syntax to the SPFE to maintain a centralized state repository. Furthermore, the system mandates dynamic reporting of invoice statuses to actively monitor and combat late payments; the recipient of the invoice must formally communicate the commercial acceptance or rejection, as well as the exact date of full effective payment, within a strict four-day window.

The implementation timeline for this mandate is tiered based on a company's annual turnover, with the official countdown triggered by the entry into force of the final Ministerial Order on 1 October 2026. Large enterprises with an annual turnover exceeding 8 million euros belong to the first phase and must be fully compliant within 12 months, by 1 October 2027. Small and medium-sized enterprises (SMEs) professionals with a turnover of 8 million euros or less fall into the second phase, giving them 24 months to adopt core e-invoicing by 1 October 2028, and an extended 36-month period (until 1 October 2029) for self-employed professionals, and to implement mandatory invoice status reporting.

FAQs

What is the Spanish B2B e-invoicing mandate and what is its main goal?
The mandate requires all entrepreneurs and professionals operating in Spain to issue, transmit, and receive structured electronic invoices for their business-to-business (B2B) transactions. Driven by the "Ley Crea y Crece" (Law 18/2022), its main goals are to combat commercial late payments (morosidad), foster business digitalization, and enhance tax transparency.
Who is obligated to comply with the e-invoicing mandate, and are there territorial exceptions?
The mandate applies to all entrepreneurs and professionals whose transactions are with other entrepreneurs or professionals that have their economic activity headquarters, a permanent establishment, or their habitual residence in Spain. There are no complete territorial exemptions; it applies nationwide, including in regions like the Basque Country (Euskadi) and Navarre, though these regions are integrating their own existing local fiscal systems (like TicketBAI) with the national mandate.
What technical formats are permitted for these electronic invoices?
Electronic invoices must be structured data messages compliant with the European EN 16931 semantic standard. The specifically permitted syntaxes are UBL, Facturae, EDIFACT, and CII. In the context of private exchange platforms, the Peppol BIS format is also considered valid as long as it utilizes the UBL syntax.
What is the Public Electronic Invoicing Solution (SPFE)?
The SPFE is a free public infrastructure developed and managed by the Spanish tax authority (AEAT). It serves as an alternative invoicing platform, primarily providing simple access for SMEs and professionals, while also acting as the universal and mandatory state repository for all electronic invoices exchanged in the country.
What is a "copia fiel" (faithful copy) and when is it required?
If a business chooses to issue its invoices through a private exchange platform instead of using the public solution, its software is legally obligated to simultaneously transmit a "faithful copy" of the invoice in UBL syntax to the SPFE. This copy must contain all the information from the original invoice that has semantic correspondence with the public solution's syntax.
Are electronic signatures mandatory for these B2B invoices?
Yes, all electronic invoices issued through private exchange platforms must be signed with an advanced electronic signature. This guarantees the authenticity of the origin and the integrity of the content. The signature can be applied directly by the issuer or through an authorized delegated signature.
Can I send embedded attachments, like PDFs or contracts, within the electronic invoice?
No, the technical regulations strictly prohibit embedded or integrated attachments within the electronic invoices or "faithful copies" sent to the SPFE. The only exception is the electronic signature file itself. To reference external documents, you must use specific UBL fields (like AdditionalDocumentReference) to provide text descriptions or external URLs. You can only share actual physical attachments through your own private exchange platforms.

Are there any penalties for non-compliance with this e-invoicing model?
Yes, the "Ley Crea y Crece" establishes administrative fines of up to 10,000 EUR for companies that fail to offer or accept electronic invoices when legally required. Furthermore, failing to comply with the legal payment terms (which the new system monitors) can result in a business being barred from accessing public subsidies (such as "Kit Digital" grants) and vetoed from participating in public procurement processes.

Country Specs

Mandate StatusAnnounced
Model TypeDecentralised CTC and exchange (DCTCE), Centralised exchange
Government EntityAEAT
FormatsUBL 2.1, CII (Cross Industry Invoice), Facturae
Infrastructure / PlatformSPFE
E-signature Required
Key Deadlines1 October 2026: The final Ministerial Order enters into force, triggering the countdown for all B2B e-invoicing compliance phases

1 October 2027: Large enterprises with an annual turnover over 8 million euros must issue and receive structured electronic invoices

1 October 2028: Small and medium-sized enterprises must issue and receive structured electronic invoices

1 October 2029: Small and medium-sized enterprises and self-employed professionals must begin the mandatory reporting of invoice statuses, including payments; and self-employed professionals must issue and receive structured electronic invoices
AR MandatoryYes
AP MandatoryYes
Peppol AvailableNo
Domestic TransactionsYes
Cross-border TransactionsNo
Archiving Period6 Years
Archiving AbroadYes

Contact an expert

Feeling lost or need more info about this e-invoicing mandate? ecosio can help!

Our team of e-invoicing experts is ready to guide you through everything needed to stay compliant—not just with this mandate, but with all current and upcoming e-invoicing requirements worldwide.
Send us your questions. We’ll provide clear, actionable answers!

Resources related to e-invoicing

E-invoicing newsletter

Stay ON TOP OF E-INVOICING
Sign up to our e-invoicing newsletter to ensure you don’t miss key e-invoicing updates.

The Benefits of e-invoicing

Find out more about why a growing number of businesses are turning to automation and what the benefits of e-invoicing are

Buy vs Build E-invoicing

Compare in-house vs outsourced e-invoicing. Discover the pros and cons of each approach to ensure you choose the right e-invoicing solution.

Simplifying E-invoicing Compliance Without Slowing Down Your Business

Simplify e-invoicing compliance with scalable strategies that cut risk, reduce manual work, and ensure audit-ready invoicing at scale

E-invoicing in Europe Overview

Discover key insights into Europe’s evolving e-invoicing landscape. Learn about country-specific mandates, timelines, and how to stay compliant across borders

ViDA Webinar

Discover how ViDA’s latest changes will impact you in our expert-led webinar. Gain insights, stay compliant, and prepare your business for success!

Dernière ligne droite avant la facturation électronique en France

Tout pour finaliser votre préparation avant le go-live :

FAQ : les réponses aux questions clés

Checklist : les actions prioritaires

Guide pays : calendrier et obligations

Livre blanc : bien choisir votre solution

Replay : les conseils de nos experts