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:
- Detect customer’s tax region at invoice generation. Basque / Navarra → TicketBAI flow. Rest of Spain → Veri*Factu flow.
- Sign each invoice XML with a qualified electronic certificate (FNMT / Camerfirma).
- POST to the right endpoint (AEAT Veri*Factu / Hacienda Foral TBAI).
- Embed the QR + verification URL on the printed invoice / order email.
- 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.