Skip to content
PreviewFix
E-invoicing & PeppolES · Spain

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.

ES · STATUTORY CARDSpain — VeriFactu Chained E-Invoicing
8 cited facts
ParameterRequirement / ScopeStatutory or Technical Citation
Primary statutory & ministerial frameworkReal Decreto 1007/2023 (Reglamento SIF/VeriFactu) and Orden HAC/1177/2024 developing technical specificationsLey 58/2003 General Tributaria, Art. 29.2.j; BOE-A-2023-24840; BOE-A-2024-22138
Competent tax authorityAgencia Estatal de Administración Tributaria (AEAT)Real Decreto 1007/2023, Art. 15 & Orden HAC/1177/2024
Software producer & taxpayer timelineSoftware 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 exclusionsCorporate 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 FechaHoraHusoGenRegistroOrden 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 parametersReal Decreto 1007/2023, Art. 13(2); Orden HAC/1177/2024, Art. 20–21
XML record schemasum1:RegistroAlta and sum1:RegistroAnulacion under SuministroInformacion.xsd (IDVersion 1.0)AEAT SuministroInformacion.xsd technical schema specification
Statutory & administrative penaltiesSet by national lawLey 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)
General regulatory information, not legal or tax advice.100% source-attributed rows

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 parameterValue in SpainAuthority / Specification Source
Jurisdiction & currencySpain (ES) · EURCouncil Regulation (EC) No 974/98 on the introduction of the euro
National VAT identifier syntaxPrefix 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 schemes9920 (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 check

What 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 review

What 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:00

Technical 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.

Digital deliverable · Under 10 minutesSold by MeWeBe Limited

EU Digital Product Passport & Peppol Pack

A scannable product passport and a validated e-invoice, ready for EU buyers.

£35($45 USD)one-off

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?
No. Article 3(3) of Real Decreto 1007/2023 exempts taxpayers who report their invoicing books through Suministro Inmediato de Información (SII) under Article 62.6 of the VAT Regulation.
What if our business is tax-resident in Bizkaia, Gipuzkoa, Araba or Navarra?
Foral territories operate their own fiscalisation regimes (Batuz/TicketBAI in the Basque Country and Navarra rules) outside common-territory AEAT VeriFactu scope under Article 3 of Real Decreto 1007/2023.
Does your engine submit records directly to AEAT?
No. Our engine generates and verifies the deterministic RegistroAlta/RegistroAnulacion XML, SHA-256 Huella chain and ValidarQR code; live certificate-authenticated SOAP submission to AEAT remains inside your own ERP or tax middleware.

Continue exploring

Related rules & jurisdictions.

Also in SpainAccessibility

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)

Directive (EU) 2019/882 (European Accessibility Act); Boletín Oficial del Estado (BOE) núm. 110, 9 May 2023
Also in SpainProduct passports & safety

Spain — EU Battery Passport (Reg. 2023/1542)

Regulation (EU) 2023/1542 concerning batteries and waste batteries, Art. 77, Art. 78 & Annex XIII

Regulation (EU) 2023/1542 (OJ L 191, 28.7.2023), Art. 77–78 & Annex XIII
Also in SpainOmnibus & VIES VAT

Spain — Omnibus 30-Day Lowest Prior Price

Directive 98/6/EC, Article 6a (inserted by Directive (EU) 2019/2161 — Omnibus Directive, Art. 2)

Directive (EU) 2019/2161 (OJ L 328, 18.12.2019), Art. 2; Commission Guidance 2021/C 526/02
Neighbour · PTE-invoicing & Peppol

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

Directive 2014/55/EU, Art. 1 & Art. 7; CEN EN 16931-1:2017
Neighbour · FRE-invoicing & Peppol

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)

JORF n° 0303 du 30 décembre 2023 (Loi n° 2023-1322, Art. 91); CGI Art. 289 bis
Neighbour · ITE-invoicing & Peppol

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)

Gazzetta Ufficiale n. 190 del 18 agosto 2015; Legge 27 dicembre 2017, n. 205; D.L. 36/2022 Art. 18