Veri*Factu y TicketBAI, qué son y cuándo los necesito

Two parallel Spanish e-invoice mandates. They overlap but aren’t the same:

  • TicketBAI, the Basque Country + Navarra mandate, already in force since 2022-2024 depending on province (Álava, Guipúzcoa, Vizcaya, Navarra each rolled out separately). Every invoice / ticket must include a TBAI-signed XML transmitted to the Hacienda Foral in real time, with a QR code and TBAI identifier printed on the customer receipt.
  • Veri*Factu, the AEAT national mandate (Agencia Tributaria, all of Spain except Basque + Navarra). Approved via Real Decreto 1007/2023 + the Anti-Fraud Law. Mandatory from 1 January 2026 for most companies (entrepreneurs / SLs / SAs). Sends invoice records to AEAT in real time, with a QR + verification URL.

Magento integration:

  1. Detect customer’s tax region at invoice generation. Basque / Navarra → TicketBAI flow. Rest of Spain → Veri*Factu flow.
  2. Sign each invoice XML with a qualified electronic certificate (FNMT / Camerfirma).
  3. POST to the right endpoint (AEAT Veri*Factu / Hacienda Foral TBAI).
  4. Embed the QR + verification URL on the printed invoice / order email.
  5. Cache responses for audit (mandatory 4-year retention).

We integrate with certified providers like Sage / Holded / Pennylane Spain or build the AEAT direct integration depending on scale.

Kishan Savaliya
Kishan Savaliya
Adobe Certified Magento Commerce Developer
Ahmedabad [IN]working hours, replies within four hours
When do you need it

Read personally. Never shared. Or email the brief.

More on magento developer spain

Need it fixed, not just explained?

Send the brief with your store URL; the written quote comes back within 24 hours.