Verifactu API for Billing Systems in Spain

The efsta Fiscal Middleware connects POS, ERP and PMS software to Verifactu. The Fiscal Middleware creates the billing record with hash chaining, generates the QR code, submits the data automatically to the Spanish tax agency AEAT and archives every fiscal transaction, all through a single integration.

Verifactu in brief

The RRSIF (Reglamento de Requisitos de los Sistemas Informáticos de Facturación) sets out the requirements for invoicing software in Spain. It was adopted with Real Decreto 1007/2023 and implements the provisions of Ley 11/2021 (Ley Antifraude). VERI*FACTU is one of the two permitted operating modes.

Affected invoicing software (Sistemas Informáticos de Facturación, SIF) must create billing records for issued invoices and ensure their integrity, retention, accessibility, readability, traceability and immutability. The rules do not apply to every taxpayer and every invoicing system in Spain. Manufacturers and distributors have been required to offer compliant systems since July 29, 2025.

Under current law (Real Decreto-ley 15/2025), the obligation applies to companies subject to corporate income tax from January 1, 2027 and to all other taxpayers from July 1, 2027. On October 5, 2026, the Ministerio de Hacienda announced a postponement to October 2028. It only becomes legally binding once published in the BOE.

Legal basis
Ley 11/2021
Regulation
Real Decreto 1007/2023
Competent authority
AEAT
efsta Fiscal Middleware

The efsta solution for Verifactu

The connected system sends the invoice data to the efsta Fiscal Middleware. The VERI*FACTU-specific processing steps supported by efsta run there. Integration takes place via a unified API. The connected system does not have to implement any Verifactu logic itself.

Create the billing record

Every invoice generates a registro de alta, every cancellation a registro de anulación.

Hash chaining

Each record contains the hash value (huella) of the previous one. Later changes thus become detectable.

Verifactu XML to AEAT specification

Records are prepared in XML format according to the technical specifications of Orden HAC/1177/2024.

Automatic submission to the AEAT

Every record goes directly to the AEAT API in VERI*FACTU mode.

QR code and status

The connected system receives the QR code data and the submission status in return.

Offline handling

If the AEAT cannot be reached, the Fiscal Middleware stores the record locally and resubmits it automatically. Sales continue without interruption.

Declaration of Conformity

A Declaration of Conformity is publicly available for every version of the Fiscal Middleware. It serves as the basis for the software provider’s Declaración responsable.

VERI*FACTU mode: what it means for the software

The RRSIF defines two operating modes. VERI*FACTU is one of them: every billing record is submitted automatically to the AEAT. No VERI*FACTU mode, in which the data stays in the company’s system, is not supported by efsta.

For software providers, VERI*FACTU mode has three consequences:

Event log and electronic signature

No event log (registro de eventos) and no electronic signature of the records are required, because the data is secured at the AEAT.

QR code and VERI*FACTU label

Invoices created by a SIF must contain the tax QR code. In VERI*FACTU mode, the wording “Factura verificable en la sede electrónica de la AEAT” or the short form “VERI*FACTU” must also be added.

Qualified electronic certificate

Submission requires a qualified electronic certificate, such as a personal, representative or company seal certificate.

Verifactu integration in 4 steps

Step 1

Connect

The system is connected once to the unified API, locally on Windows, Linux or Android, or via the cloud.

Step 2

Test

A test organization is set up in the efstaPortal. In test mode, transactions are only sent to the AEAT test environment. No real invoices are submitted.

Step 3

Certificate and Declaración responsable

The certificate is stored in the Fiscal Middleware. Based on the efsta Declaration of Conformity, the software provider issues its Declaración responsable.

Step 4

Go live

From then on, all invoices are created in line with Verifactu and submitted to the AEAT automatically.

Verifactu API documentation and technical details

Verifactu Guide
Technical requirements, setup, certificates, Declaration of Conformity and integration guidance for Verifactu.

Verifactu Receipt Layout
Information on receipt requirements, QR codes and layout specifications.

Fiscal Requirements
Request examples, tax groups including the Canary Islands, and offline and retry behavior.

inherit

Who is the Verifactu API for?

The efsta Verifactu API is designed for software providers and integrators whose systems create invoices or receipts in Spain.

POS providers

Verifactu is integrated directly into the sales process. Record creation, QR code and submission run in the background.

ERP providers

Invoice data from ERP processes is handled in line with Verifactu without in-house Verifactu development.

PMS providers

Hotels and hospitality businesses in Spain get a standardized connection to Verifactu.

Integrators and partners

One integration for several customer systems reduces the effort of customer-specific implementations.

Why software vendors rely on efsta

efsta offers a scalable compliance solution that reliably covers international requirements and is easy to integrate into existing systems.

Verifactu and TicketBAI

The same integration covers Verifactu and TicketBAI in the Basque Country. The region is selected in the configuration.

Canary Islands

The IGIC tax rates of the Canary Islands are supported.

Local or in the cloud

The Fiscal Middleware runs locally on Windows, Linux or Android. For fully cloud-based systems, it is available as a cloud version.

Special regimes

Recargo de equivalencia (REDE) and Régimen simplificado are supported by the Fiscal Middleware.

We love compliance.
So you don’t have to.

Whether fiscalization or E-Invoicing, our team of experts provides personal guidance, from the initial assessment to the completed integration.

Compass on a piece of paper, in black and white
Contact details
Inquiry
Privacy
Thank you! Your message has been sent.
Something went wrong while submitting the form.

Verifactu API FAQs

What is the Verifactu API?

The efsta Verifactu API is an interface that allows POS, ERP and PMS software to meet Verifactu requirements. The Fiscal Middleware creates the billing record, hash chain and QR code and submits the data automatically to the AEAT.

Does the AEAT certify Verifactu software?

No. The AEAT does not certify software and keeps no list of approved programs. Manufacturers confirm their system’s compliance in a Declaración responsable. efsta provides a Declaration of Conformity and templates in efstaDocs for this purpose.

How is Verifactu integrated into a POS system?

The POS system sends the receipt data via request to the efsta Fiscal Middleware. The Fiscal Middleware creates the Verifactu record, submits it to the AEAT and returns the QR code data. Flow and examples are available in the Verifactu Guide in efstaDocs.

Does efsta also support No VERI*FACTU mode?

No. The efsta Verifactu API works exclusively in VERI*FACTU mode. Every billing record is submitted automatically to the AEAT. As a result, no event log or electronic signature of records is needed.

Does the API also work for TicketBAI?

Yes. The same integration covers TicketBAI in Álava, Bizkaia and Gipuzkoa. The region is selected in the Fiscal Middleware configuration.

Is there a test environment?

Yes. A test organization can be set up in the efstaPortal. In test mode, transactions run against the AEAT test environment. An efsta test certificate only reaches this test environment.

What does the announced postponement to 2028 change?

According to Hacienda, the basic requirements will largely remain in place. Individual technical aspects are to be adapted to e-invoicing and ViDA. The outstanding obligations are to be postponed to October 2028. Until publication in the BOE, the deadlines of January 1 and July 1, 2027 continue to apply.

What does SIF mean?

SIF stands for Sistema Informático de Facturación. It refers to electronic systems used to issue invoices or simplified invoices. Whether the RRSIF applies to a particular system and taxpayer depends on the personal, material and territorial scope as well as on existing exceptions.