Test services and tools
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.
| Document | What it covers |
|---|---|
| Annex I | The content of an e-invoice sent to the platform, as set out in the Order |
| Annex II | Messages reporting that an invoice has been paid, rejected, collected or left unpaid |
| Service catalogue | The services available and their limits |
| Input and output formats | How invoices and messages are packaged for sending |
| Validations | The checks the platform runs on each invoice |
| Service definitions and examples | Technical 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.
| Item | Rule |
|---|---|
| Format | UBL, with version 2.5 as the reference |
| Document type | Invoice only. Separate credit notes are not accepted; a corrective invoice is an invoice with a corrective code |
| Batch size | 1 to 100 invoices, which can come from different issuers |
| Invoice size | Up to 5 MB each |
| Attachments | No embedded files. Links to documents are allowed |
| Invoice identifier | Issuer’s tax number (NIF), series and number, and issue date. It can be reused only after the first invoice is cancelled |
| Sign-in | Qualified electronic certificate |
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.
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.
Explore e-Invoice.app
Real-time compliance data, peer discussions, and cross-functional tools for every stakeholder.
Compare Countries
Side-by-side comparison of mandates, timelines, and technical requirements.
Open Compare ModeFind the Right Vendor
Get matched with e-invoicing vendors for your countries and ERP.
Start vendor match