TicketBAI in Spain
TicketBAI requires taxpayers in Álava, Bizkaia and Gipuzkoa to generate a signed and chained TicketBAI XML file before issuing each invoice and to submit it to the regional tax authority.
What is TicketBAI and what does it regulate?
TicketBAI (TBAI, also written “Ticket BAI”) is the fiscalization system of the three Basque provinces Álava (Araba), Bizkaia and Gipuzkoa. It was developed jointly by the three regional tax authorities (Haciendas Forales) and the Basque Government. The goal is to record every invoice in a tamper-proof way and make it traceable for the tax administration.
Because the Basque Country has fiscal autonomy, the national Verifactu system does not apply there. TicketBAI applies instead. Each of the three provinces has regulated TicketBAI in separate provisions:
- Gipuzkoa: Norma Foral 3/2020 of November 6, 2020 and Decreto Foral 32/2020 of December 22, 2020
- Álava: Norma Foral 13/2021 of April 21, 2021 and Decreto Foral 48/2021 of October 5, 2021
- Bizkaia: Norma Foral 5/2020 of July 15, 2020 and Decreto Foral 82/2020 of September 8, 2020 as part of the Batuz project. The implementation schedule is set out in Norma Foral 8/2023 of November 22, 2023
The core technical obligations are the same in all three provinces. They differ in deadlines, procedures and additional obligations. The difference is most pronounced in Bizkaia, where TicketBAI is linked to an electronic accounting register.
Who does TicketBAI in Spain apply to?
Companies and self-employed in the Basque Country
TicketBAI applies to individuals and legal entities that carry out an economic activity and are subject to the tax jurisdiction of Álava, Bizkaia or Gipuzkoa. Whether TicketBAI applies depends on the competent tax administration, not on the company's location. Retail, restaurants, hotels and service providers are equally affected.
POS, ERP and PMS providers and integrators
Invoicing software must meet the TicketBAI requirements technically and is entered in the TicketBAI software register of the regional tax authorities.
Important: Vendors with customers in the Basque Country and in the rest of Spain must cover TicketBAI and Verifactu in parallel.
TicketBAI: background and deadlines at a glance
The Basque tax administrations wanted to prevent sales, especially cash sales, from being deleted or changed after the fact. TicketBAI therefore applies before the invoice is issued: the invoicing software first generates a signed XML file, which is chained to the previous one and sent to the regional tax authority.
Only then is the invoice issued with the TicketBAI identifier and QR code. The QR code shows whether the invoice was submitted to the competent tax administration.
Legal basis in Gipuzkoa and Bizkaia
Gipuzkoa created the legal basis with Norma Foral 3/2020 on November 6, 2020 and specified it with Decreto Foral 32/2020 on December 22, 2020. Bizkaia laid the foundation with Norma Foral 5/2020 on July 15, 2020 as part of Batuz.
Álava regulates TicketBAI
Álava followed with Norma Foral 13/2021 on April 21, 2021 and specified the requirements with Decreto Foral 48/2021 on October 5, 2021.
Full application in Álava
Use was introduced gradually depending on the province. Since December 1, 2022, TicketBAI has applied to all taxpayers in Álava.
Phase-in completed in Gipuzkoa
In Gipuzkoa, the last group became subject to the obligation on June 1, 2023, following a sector-by-sector phase-in plan.
Batuz obligation starts in Bizkaia
In Bizkaia, the phased obligation under Batuz began on January 1, 2024 (Norma Foral 8/2023).
Rollout completed in Bizkaia
On January 1, 2026, the last groups provided for in the statutory rollout plan in Bizkaia became subject to mandatory use of Batuz. This completed the phased rollout in Bizkaia.
How does TicketBAI work?
The process is the same for every invoice and follows a fixed order:
Special case of TicketBAI in Bizkaia: Batuz and LROE
In Bizkaia, TicketBAI is part of the Batuz system, a strategy to support and control the taxation of companies and self-employed persons subject to the regulations of Bizkaia.
In addition, taxpayers keep an electronic register of their business transactions: the Libro Registro de Operaciones Económicas (LROE), the electronic register of economic operations. Self-employed persons file via Form 140, companies via Form 240.
Generate the XML file
Before the invoice is issued, the software creates an XML file (Fichero TicketBAI) with the invoice data.
Sign and chain
The file is signed with an approved electronic certificate and contains a reference to the previous invoice. This creates an unbroken chain.
Send to the regional tax authority
The file goes to the competent tax administration in Álava, Bizkaia or Gipuzkoa.
Issue the invoice
The invoice bears a 39-character TicketBAI identifier and a QR code that customers can use to verify it with the tax administration.
Audits and penalties
The regional tax authorities check TicketBAI in two ways: they receive the signed files directly, and they can carry out on-site inspections. Invoice recipients can verify any invoice with the competent tax administration via the QR code.
Consequences of non-compliance
Under the respective provincial tax laws, anyone not using a TicketBAI system risks a fine of 20 percent of the previous year's turnover, at least 20,000 euros. Depending on the province, for repeat offenses or for data manipulation, the minimum amounts may be higher. Software vendors can also be penalized.
efsta solution for TicketBAI
efsta connects POS, ERP and PMS software to TicketBAI via the Fiscal Middleware. The connected system sends the invoice data to the efsta Fiscal Middleware.
As TicketBAI middleware, it handles the core TicketBAI-specific steps for processing the invoice data. The impact on the existing system architecture remains minimal.
Signed XML files
Generation and signing of TicketBAI XML files, including chaining
Automatic submission
Submission to the competent regional tax authority in Álava, Bizkaia or Gipuzkoa
Compliant receipts
TicketBAI identifier and QR code for the receipt
Batuz and LROE in Bizkaia
Support for the LROE requirements in Bizkaia for Form 140 and Form 240
How the TicketBAI integration works
Connect
The system is connected to the efsta API once, locally or in the cloud.
Test
A test organization is created in efstaPortal and the integration is tested without fiscalizing real invoices.
Set up the certificate
The software vendor's customers set up an approved electronic certificate and link it to their tax ID. Taxpayers carry out this step independently.
Go live
From then on, all invoices are automatically generated and submitted in compliance with TicketBAI.
Technical documentation for developers
Development teams integrate TicketBAI via a unified API. efstaDocs contains the TicketBAI guide with step-by-step instructions for setting up the certificate, the receipt layout requirements and the settings for Bizkaia.

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 with one integration
The same API covers TicketBAI in the Basque Country and Verifactu in the rest of Spain. Customers can use one software solution nationwide.
One API for all markets
Whether POS, ERP or PMS: the unified API connects one interface for different countries. This reduces the integration effort for international rollouts.
Local or in the cloud
The Fiscal Middleware runs locally alongside the POS system on Windows, Linux or Android. For fully cloud-based systems, it is available as a cloud version.
In use in 17 countries
efsta implements fiscalization requirements in 17 countries. New requirements from regional tax authorities are built into the Fiscal Middleware, so development teams do not have to implement them themselves.
TicketBAI FAQs
What is TicketBAI?
TicketBAI is the fiscalization system of the Basque provinces Álava, Bizkaia and Gipuzkoa. Before each invoice, invoicing software must generate a signed, chained XML file and send it to the competent regional tax authority. The invoice then bears a TicketBAI code and a QR code.
Does TicketBAI apply throughout Spain?
No. TicketBAI only applies to taxpayers subject to the tax jurisdiction of Álava, Bizkaia or Gipuzkoa. In the rest of Spain, Verifactu applies.
When is TicketBAI mandatory?
TicketBAI is already mandatory in all three provinces: in Álava since December 1, 2022, in Gipuzkoa since June 1, 2023 for the last sectors and in Bizkaia since January 1, 2026 for all taxpayers.
What is the difference between TicketBAI and Verifactu?
Both systems protect invoice data against manipulation but apply in different areas. TicketBAI is the regulation of the Basque provinces and is already in force. Each file is signed with an approved electronic certificate and sent to the regional tax authority before the invoice is issued. Verifactu is the national regulation of the AEAT and applies throughout Spain except in the Basque Country and Navarre.
What is TicketBAI in Bizkaia (Batuz)?
In Bizkaia, TicketBAI is part of the Batuz project. In addition to the TicketBAI files, taxpayers there keep the electronic LROE register. Self-employed persons file via Form 140, companies via Form 240.
Is a device certificate required for TicketBAI?
Not necessarily. Approved electronic certificates can be used for the electronic signature of the TicketBAI file. Depending on the requirements of the competent tax authority, these include a device certificate, a certificate for an individual, a representative certificate, a company seal or a certificate for self-employed persons. The certificate must be linked to the tax ID at the competent regional tax authority, otherwise the files are rejected.
What penalties apply for TicketBAI violations?
Anyone not using a TicketBAI system risks a fine of 20 percent of the previous year's turnover, at least 20,000 euros. The minimum amounts increase for repeat offenses or manipulation. Software vendors can also be held liable.

