Technical aspects of the Public Electronic Invoicing Solution (SPFE) in Spain

Updated on: Jul 6th, 2026

|

12 min read

social iconssocial iconssocial iconssocial icons

The SPFE in Spain's e-invoicing system is the free public platform the AEAT will run for mandatory B2B invoicing. It stores faithful copies, connects trading parties, and tracks payment status. This guide breaks down how it works, the format it uses, and where it sits next to FACe and Verifactu.

Key takeaways

  • The SPFE is the AEAT-run public platform for the Spain B2B e-invoice exchange. Private platforms sit beside it in a hybrid model, so you can use one, the other, or both.
  • Large firms with turnover above €8 million start from 1 October 2027. Everyone else follows from 1 October 2028.
  • The Spain public electronic invoicing solution runs on UBL 2.5, aligned to EN 16931:2026. Facturae does not work here.
  • Silence on a received invoice counts as acceptance. SPFE invoice status reporting in Spain is tax data now, not private commercial chatter.
  • FACe still covers B2G. Verifactu is a separate software layer. Neither one replaces the SPFE.

What is the SPFE in Spain's e-invoicing system?

The SPFE (Solución Pública de Facturación Electrónica) is the free public rail the AEAT built for mandatory B2B e-invoicing. It does three jobs at once: it lets small businesses issue invoices directly, it acts as the universal repository for a copy of every invoice, and it reports payment status.

The legal chain is short. Crea y Crece (Ley 18/2022), then Royal Decree 238/2026, then a draft Ministerial Order that sets the technical detail. On 1 June 2026 the AEAT published two documents, one functional and one technical, that finally show how the AEAT e-invoicing platform in Spain will actually run.

One caveat to hold onto. The order is still a draft. Dates can move before they hit the BOE.

SPFE implementation timeline

Every date below counts from the order's entry into force, set at 1 October 2026 in the draft.

Date

Who

What applies

1 Oct 2027Large taxpayers (turnover above €8M)E-invoice issuance and payment status reporting become mandatory
1 Oct 2028Everyone else, including SME legal entities and autónomos above scopeE-invoicing and payment status reporting become mandatory
1 Oct 2029Self-employed traders under the income allocation regime (IRPF attribution) (turnover €8M or below)Invoice status reporting begins after the relief period

Issuance comes first, sorted by size. Status reporting follows. The smallest taxpayers get the longest runway, which is fair but easy to misread as "not my problem yet".

Roles of the SPFE in Spain e-invoicing

The platform wears four hats:

  1. Universal repository for the faithful copies of all B2B invoices.
  2. Interconnection hub between issuers, recipients, and private platforms.
  3. Free billing app for small businesses that do not want a private tool.
  4. Engine for payment status reporting to the AEAT.

The AEAT is blunt about what it is not. Not an ERP module. Not a backup for your private platform. Not free cloud storage. It is a regulated public utility, and treating it as anything else will bite you later.

How does the SPFE work?

Spain chose a hybrid model on purpose. You issue directly through the SPFE, or through a private platform, or you mix both.

Here is the rule people miss. Even when an invoice travels over a private platform, a faithful copy (copia fiel) must reach the SPFE at the same moment. The copy must be identified as such in a dedicated field of the UBL invoice. If you issue directly on the SPFE, no separate copy is needed. The invoice already lives inside the system.

Validation runs in two layers, and you should build both into your own stack:

  • Step 1, syntactic. OASIS XSD schemas check the UBL structure. Broken files get rejected on intake.
  • Step 2, semantic. EN 16931 business rules run through Schematron, updated to the 2026 version.

The AEAT will not host a live online validator. It publishes the Schematron files, XSD schemas, and sample invoices instead. So you validate before you transmit, or you find out the hard way after rejection.

Each invoice carries a unique code built from the issuer's NIF, series and number, and issue date. That makes deduplication automatic, and the system blocks a second submission of the same code. An accepted invoice cannot be overwritten. If an original electronic invoice turns out to be invalid because it does not correspond to the documented transaction, the invoice and its certified copy may be removed from the SPFE, and the removal itself is traceable. On acceptance, the SPFE returns a Secure Verification Code (CSV) as your acknowledgement.

SPFE vs FACe: what is the difference?

Different platforms, different jobs. Do not confuse them.

Aspect

FACe

SPFE

CoversB2G (invoices to public bodies)B2B (business to business)
Live sinceJanuary 2015Phased from October 2027
FormatFacturae XMLUBL 2.5 (EN 16931:2026)
Run byPublic administrationAEAT

If you already send invoices to a ministry or a council through FACe, that workflow does not change. The SPFE is a separate obligation for your private-sector customers.

What invoice format does the SPFE use?

The SPFE runs on UBL syntax aligned to EN 16931. The wider Spanish B2B system also tolerates CII at the EN 16931 layer, but the public solution narrows to one syntax for simplicity. Facturae stays valid for B2G through FACe, and it may travel between private platforms, but it cannot be submitted to the SPFE.

The AEAT has indicated it will use UBL 2.5 / the 2026 revision of EN 16931. EN 16931-1:2026 was rebuilt for B2B complexity and ViDA-era reporting. Since those versions natively support Spanish requirements (retenciones, recargo de equivalencia, corrective invoices). Final technical specifications will be published on the AEAT portal.

How the SPFE relates to Verifactu

They get mixed up constantly, so let me be clear. Verifactu (RD 1007/2023) governs your invoicing software. It forces hash-chained records, QR codes, and optional real-time reporting to the AEAT. It is a link between your software and the tax authority.

The SPFE governs the exchange of an invoice between two businesses. One is about the integrity of your billing records. The other is about how the document travels. You will likely need both, and they do not substitute for each other.

What private platforms must do under the SPFE model

Thin pass-through platforms are finished. Spain's e-invoicing interoperability rules for private platforms leave no room for invoice-by-invoice routing.

  • Step 1. Aggregate traffic. Submit in bulk and expect the SPFE to aggregate what it returns to you.
  • Step 2. Interconnect with every other private platform on request, within one month.
  • Step 3. Hold a registered power of attorney (apoderamiento) per client before you can retrieve their received invoices or statuses.
  • Step 4. Retrieve invoices from the SPFE automatically and deliver them to the recipient immediately.

Miss the apoderamiento step and you can send on a client's behalf but cannot pull anything back for them. That gap surprises teams during onboarding, not before.

Conclusion

The two AEAT documents do not change Spain's direction, they remove the guesswork about the SPFE. Firms that treat October 2027 as a build deadline now, rather than a 2027 problem, are the ones who will not be scrambling later.

Frequently Asked Questions

What is the SPFE in Spain's e-invoicing system?

The SPFE is the AEAT-operated public platform for B2B e-invoicing. It stores faithful copies, connects parties and platforms, offers free invoicing to small businesses, and reports payment status.

Is the SPFE mandatory for all businesses in Spain?

E-invoicing is mandatory, but you can meet it through a private platform instead of issuing on the SPFE directly. A UBL copy of every invoice must still reach the SPFE. Large firms start in 2027, everyone else in 2028.

What invoice format does the SPFE require?

UBL 2.5, aligned to EN 16931:2026. Facturae and CII are not accepted for submissions to the public solution.

What is a copia fiel and when is it required?

A copia fiel is a faithful electronic copy of an invoice. It is required whenever an invoice is exchanged over a private platform, and it must reach the SPFE at the moment of issuance. The copy must be identified as such in a dedicated field of the UBL invoice.

Can businesses use a private e-invoicing platform instead of the SPFE?

Yes. Spain runs a hybrid model. You may use a private platform, the SPFE, or both, as long as the faithful copy still lands in the SPFE.

How does a business authenticate when submitting invoices to the SPFE?

Through an electronic certificate for both web forms and web services, with Cl@ve available for the web forms. To retrieve received invoices, you also need registered apoderamiento.

Index