Spain VeriFactu chained billing records & QR rules.
Spain's VeriFactu anti-fraud billing-software regulation (Real Decreto 1007/2023 and Orden HAC/1177/2024, issued under Article 29.2.j of the General Tax Law) requires in-scope billing software to generate immutable, SHA-256-chained invoicing records (RegistroAlta and RegistroAnulacion) and print a verifiable AEAT cotejo QR code on issued invoices.
General regulatory information, not legal or tax advice. Statutory penalties and exemptions depend on the facts of each case and current national texts.
| Parameter | Requirement / Scope | Statutory or Technical Citation |
|---|---|---|
| Primary statutory & ministerial framework | Real Decreto 1007/2023 (Reglamento SIF/VeriFactu) and Orden HAC/1177/2024 developing technical specifications | Ley 58/2003 General Tributaria, Art. 29.2.j; BOE-A-2023-24840; BOE-A-2024-22138 |
| Competent tax authority | Agencia Estatal de Administración Tributaria (AEAT) | Real Decreto 1007/2023, Art. 15 & Orden HAC/1177/2024 |
| Software producer & taxpayer timeline | Software producers required to adapt systems within 9 months of Orden HAC/1177/2024; staggered taxpayer rollout under Real Decreto 1007/2023 (as amended) | Real Decreto 1007/2023, Disposición final cuarta (as amended by Real Decreto 254/2025); Orden HAC/1177/2024 |
| Covered taxpayers & territorial exclusions | Corporate income-tax and IRPF economic-activity taxpayers using computerised invoicing systems (SIF), excluding taxpayers already reporting through SII (Suministro Inmediato de Información) and Foral territories with TicketBAI/Batuz (Bizkaia, Gipuzkoa, Araba, Navarra) | Real Decreto 1007/2023, Art. 3 & Art. 4 |
| Cryptographic hash chain (Huella) | Upper-case hexadecimal SHA-256 over UTF-8 canonical key=value string linking IDEmisorFactura, NumSerieFactura, FechaExpedicionFactura, TipoFactura, CuotaTotal, ImporteTotal, previous Huella and FechaHoraHusoGenRegistro | Orden HAC/1177/2024 & AEAT Especificaciones técnicas para la generación de la huella (TipoHuella = 01) |
| Mandatory invoice QR (Cotejo URL) | Every invoice must carry a scannable QR resolving to https://www2.agenciatributaria.gob.es/wlpl/TIKE-CONT/ValidarQR with nif, numserie, fecha (dd-mm-yyyy) and importe parameters | Real Decreto 1007/2023, Art. 13(2); Orden HAC/1177/2024, Art. 20–21 |
| XML record schema | sum1:RegistroAlta and sum1:RegistroAnulacion under SuministroInformacion.xsd (IDVersion 1.0) | AEAT SuministroInformacion.xsd technical schema specification |
| Statutory & administrative penalties | Set by national law | Ley 58/2003 General Tributaria, Art. 201 bis (infracción tributaria por fabricación, producción, comercialización y tenencia de sistemas informáticos que no cumplan las especificaciones) |
Spain (ES) operational context
Jurisdiction parameters & identifiers.
Exact language, tax-identifier, routing and calendar values used when checking VeriFactu Chained E-Invoicing records for Spain.
| Country parameter | Value in Spain | Authority / Specification Source |
|---|---|---|
| Jurisdiction & currency | Spain (ES) · EUR | Council Regulation (EC) No 974/98 on the introduction of the euro |
| National VAT identifier syntax | Prefix ES followed by 9-character NIF/CIF/NIE (alphanumeric start, 7 digits, alphanumeric check character) (^[A-Z0-9]\d{7}[A-Z0-9]$) | Council Directive 2006/112/EC, Art. 215; VIES VAT structure specification |
| Registered Peppol EAS participant schemes | 9920 (ES Agencia Española de Administración Tributaria (AEAT NIF)); 0088 (GS1 Global Location Number (GLN)); 0199 (Legal Entity Identifier (LEI)) | OpenPeppol Electronic Address Scheme (EAS) Code List v9.x (ISO/IEC 6523 ICD) |
| Official invoice & audit language(s) | Spanish / Castilian (Español / Castellano; plus co-official regional languages where applicable) | Spanish Constitution, Art. 3; Real Decreto Legislativo 1/2007 (TRLGDCU), Art. 18 |
Honest verification boundary
Automated check vs manual review.
Software checks catch deterministic syntax, schema, DNS and DOM defects rapidly, while legal interpretation and physical or human-factors testing stay outside automation. Both sides are stated plainly below.
Deterministic & browser pipeline
Automated checkWhat PreviewFix checks or generates
- Builds deterministic sum1:RegistroAlta and sum1:RegistroAnulacion XML elements with 2-decimal integer-safe tax base and quota sums.
- Computes and verifies the exact AEAT UTF-8 SHA-256 upper-case hex Huella chain across sequential records, pinpointing the exact index if a link breaks.
- Generates the canonical AEAT ValidarQR / ValidarQRNoVerifactu URL and print-ready SVG/PNG QR matrices.
- Validates 9-character Spanish issuer NIF syntax and ISO 8601 timezone-offset timestamps (FechaHoraHusoGenRegistro).
Out of scope for automation
Requires human / legal reviewWhat still requires manual or legal sign-off
- Does not perform live mutual-TLS SOAP submission to AEAT endpoints or apply hardware-certificate XAdES signatures (required in non-VeriFactu SIF mode).
- Issuing software producers must issue their own signed Declaración Responsable under Art. 13 of Real Decreto 1007/2023.
- Confirming whether your company falls under SII or Basque/Navarrese TicketBAI/Batuz territorial rules requires Spanish tax counsel.
General regulatory information, not legal or tax advice.
Engineering & data format details
Technical syntax & implementation.
Technical note 01
Exact SHA-256 Huella input format for RegistroAlta
AEAT's fingerprint specification concatenates eight trimmed fields with '&' in strict order (using an empty Huella= value on the initial record of a chain) and hashes the UTF-8 bytes with SHA-256 in upper-case hex:
IDEmisorFactura=B12345678&NumSerieFactura=2026/0001&FechaExpedicionFactura=18-11-2026&TipoFactura=F1&CuotaTotal=21.00&ImporteTotal=121.00&Huella=&FechaHoraHusoGenRegistro=2026-11-18T09:30:00+01:00Technical note 02
VeriFactu vs Ley Crea y Crece (B2B electronic invoicing)
Spain operates two distinct frameworks: Real Decreto 1007/2023 (VeriFactu) governs tamper-evident billing records and AEAT reporting across B2B and B2C invoices, whereas Ley 18/2022 (Ley Crea y Crece, Art. 12) separately establishes mandatory B2B structured e-invoice exchange pending its final implementing royal decree.
Matching deliverable
Fixed-price deliverable & live preview.
EU Digital Product Passport & Peppol Pack
A scannable product passport and a validated e-invoice, ready for EU buyers.
DPP JSON-LD, GS1 Digital Link QR pack and Peppol BIS 3.0 validation.
VAT included where applicable · Card or PayPal, zero surcharges · 14-day fix-or-refund promise
Spain Q&A
Frequently asked questions.
Does VeriFactu apply to companies already in Spain's SII system?
What if our business is tax-resident in Bizkaia, Gipuzkoa, Araba or Navarra?
Does your engine submit records directly to AEAT?
Continue exploring
Related rules & jurisdictions.
Spain — European Accessibility Act (EAA)
Directive (EU) 2019/882 (European Accessibility Act) and Ley 11/2023, de 8 de mayo, Título I (transposition of Directive (EU) 2019/882)
Spain — EU Battery Passport (Reg. 2023/1542)
Regulation (EU) 2023/1542 concerning batteries and waste batteries, Art. 77, Art. 78 & Annex XIII
Spain — Omnibus 30-Day Lowest Prior Price
Directive 98/6/EC, Article 6a (inserted by Directive (EU) 2019/2161 — Omnibus Directive, Art. 2)
Portugal — Peppol BIS Billing 3.0 & EN 16931
Directive 2014/55/EU on electronic invoicing in public procurement, CEN semantic standard EN 16931-1:2017, and OpenPeppol BIS Billing 3.0
France — Factur-X & French B2B/B2G E-Invoicing
Code général des impôts (CGI), Art. 289 bis & Art. 290; Loi n° 2023-1322 de finances pour 2024, Art. 91; Code de la commande publique, Art. L2192-1 (B2G)
Italy — FatturaPA SdI & EN 16931 E-Invoicing
Decreto Legislativo 5 agosto 2015, n. 127, Art. 1 (B2B/B2C & esterometro via SdI) and Decreto Legislativo 27 dicembre 2018, n. 148 (EN 16931 B2G reception)