Are you e-Invoice ready? Get your free compliance assessment score in 5 minutes -Are you e-Invoice ready?Take the test now
e-Invoice.app
Dashboard
All Posts
Mandates & Regulations

Spain opens testing for its public e-Invoicing platform

AEAT has published the first web services of the SPFE, a test client and an invoice validator. The technical documentation followed from October 2026.

13 November 20264 min read

Test services and tools

Key Stats

10 Nov 2026

SPFE test services announced

AEAT developer portal

9

Web services in the service catalogue

1 to 100

Invoices per batch

6 Oct 2027

First mandate date

On 10 November 2026 the Spanish Tax Agency (AEAT) announced that the first web services of its public e-invoicing platform, the SPFE (Solución Pública de Facturación Electrónica), are available on its developer portal. The services run in AEAT’s pre-production environment, which is its test environment.

Two tools came with the announcement, both in AEAT’s external test portal. One is a client that simulates calls to the platform. The other is a validator that checks a single e-invoice without sending it. AEAT says both are for use during the testing period only.

The SPFE is the free platform AEAT runs under Spain’s B2B e-invoicing mandate, and Order HAC/1028/2026 sets out how it works. The mandate starts on 6 October 2027 for businesses with an annual VAT turnover above EUR 8 million and on 6 October 2028 for everyone else, as covered in our post on the Order.

The documentation so far

AEAT began publishing the technical documentation in October 2026. The earliest versions are dated 9 October 2026, and the service catalogue was last revised on 3 November 2026. The set is listed on the SPFE page of the developer portal.

Some of it is not yet complete. As at 13 November 2026, the sections of the formats document on cancelling invoices, queries, downloads and status messages were marked as pending publication.

DocumentWhat it covers
Annex IThe content of an e-invoice sent to the platform, as set out in the Order
Annex IIMessages reporting that an invoice has been paid, rejected, collected or left unpaid
Service catalogueThe services available and their limits
Input and output formatsHow invoices and messages are packaged for sending
ValidationsThe checks the platform runs on each invoice
Service definitions and examplesTechnical files for each service, a sample invoice and sample requests and responses

Sending invoices

Invoices are sent in the UBL format, following the European e-invoicing standard EN 16931. AEAT’s reference version is UBL 2.5. Its validation document adds that earlier UBL versions are accepted, provided the invoice holds the minimum content set out in Annex I.

The invoices are carried inside ebXML, an international messaging standard. AEAT’s documentation says this choice brings the platform closer to Peppol and to the way private e-invoicing platforms operate.

ItemRule
FormatUBL, with version 2.5 as the reference
Document typeInvoice only. Separate credit notes are not accepted; a corrective invoice is an invoice with a corrective code
Batch size1 to 100 invoices, which can come from different issuers
Invoice sizeUp to 5 MB each
AttachmentsNo embedded files. Links to documents are allowed
Invoice identifierIssuer’s tax number (NIF), series and number, and issue date. It can be reused only after the first invoice is cancelled
Sign-inQualified electronic certificate
Sending rules in AEAT’s service catalogue and validation document
e-Invoice.app - The e-Invoice Voice

The e-Invoice Voice™

Global e-invoicing mandates explained for finance and tax teams. What's changing and what to do before the deadline.

Newsletter · Published weekly

Subscribe on LinkedIn

Checks on each invoice

Each invoice goes through three checks. The first confirms that the file is correctly structured. The second applies the rules of EN 16931. The third applies AEAT’s own rules, which cover Spanish invoicing requirements that the European standard does not. An invoice that fails a check is rejected, and the response identifies the error. AEAT says it will publish its own rules on the developer portal in stages.

The validator in the test portal checks one invoice at a time and is available in the test environment only, not in production. AEAT’s documentation states that use of the service will be monitored, and that using it to validate every invoice before sending may be treated as improper use.

Annex I also includes a field for the QR code required under Veri*factu, Spain’s rules for invoicing software, or under TicketBAI in the Basque Country. The sample invoice AEAT published carries a Veri*factu QR code.

What comes next

Under the Order, the platform must be available at least two months before the first mandate date of 6 October 2027. AEAT takes technical questions on the SPFE at a dedicated mailbox, [email protected].

The Spain country page tracks the mandate as it develops, and the Spain e-Invoicing guide covers scope, exemptions and penalties. Spain’s dates also appear on the global e-invoicing timeline.

Open the Spain country page

Agencia Estatal de Administración Tributaria, Portal de Desarrolladores, news item of 10 November 2026, “SPFE - Servicios disponibles de la Solución Pública de Facturación Electrónica”.

Agencia Estatal de Administración Tributaria, Solución Pública de Facturación Electrónica (SPFE) documentation: Annex I and Annex II, service catalogue (version 0.1.5, 3 November 2026), input and output formats (version 0.1.2, 20 October 2026), description of e-invoice validations (version 0.1.0, 15 October 2026), WSDL files and examples.

Ministerio de Hacienda, Orden HAC/1028/2026, de 2 de octubre, por la que se regula la solución pública de facturación electrónica, BOE no. 247 of 5 October 2026. Annex I sets the invoice content; the second additional provision requires the solution to be available at least two months before first application.

e-Invoice.app

Written by

e-Invoice.app

Regulatory Intelligence Team

Tracking e-Invoicing mandates across 150+ countries.

Explore e-Invoice.app

Real-time compliance data, peer discussions, and cross-functional tools for every stakeholder.

Explore Country Data

Real-time e-invoicing mandate data for 150+ countries.

Browse countries

Compare Countries

Side-by-side comparison of mandates, timelines, and technical requirements.

Open Compare Mode

Join the Community

Discuss compliance with LinkedIn-verified professionals.

View discussions

Find the Right Vendor

Get matched with e-invoicing vendors for your countries and ERP.

Start vendor match

Country Guides

In-depth compliance guides for key e-invoicing markets.

Read guides

Related Posts

Germany: What the BMF Letter of 15 October 2026 Changes for B2B e-InvoicingFrance publishes official guidance on VAT e-ReportingLa France publie ses commentaires officiels sur l’e-Reporting de TVA
    All CountriesCompareTimelineTermsPrivacyContact Us

    © 2026 e-Invoice.app