# VERI*FACTU invoice records

Source: https://xmlvalid.com/schemas/verifactu-1.0

> The invoice records a Spanish invoicing system sends to the AEAT under VERI\*FACTU: one record per invoice issued (alta) or cancelled (anulación), chained by their SHA-256 fingerprints.

Real Decreto 1007/2023 (the Reglamento VERI\*FACTU) sets what invoicing software in Spain must do: keep a record of every invoice, chain the records with a fingerprint (huella) and print a QR code on the invoice. Under Real Decreto-ley 15/2025, companies paying corporate tax must use such software from 1 January 2027 and everyone else from 1 July 2027.
RegFactuSistemaFacturacion is the message a VERI\*FACTU system sends: a header with the taxpayer and up to 1000 records, each a RegistroAlta for an invoice issued or a RegistroAnulacion for one cancelled, with its breakdown by tax, the totals, the link to the previous record and the software that made it.

- Type: XSD
- Version: 1.0
- Namespace: `https://www2.agenciatributaria.gob.es/static_files/common/internet/dep/aplicaciones/es/aeat/tike/cont/ws/SuministroLR.xsd`
- Root element: `RegFactuSistemaFacturacion`
- Publisher: Agencia Tributaria (AEAT) (Published by the AEAT for software developers), source: https://sede.agenciatributaria.gob.es/Sede/iva/sistemas-informaticos-facturacion-verifactu/informacion-tecnica/esquemas.html
- Validate against it: https://xmlvalid.com/validate?schema=verifactu-1.0

## Notes

- The schema checks structure and data types. The AEAT checks much more when it receives the records (NIF census, totals, chaining, fingerprints, dates), listed in its validations and errors document; those checks are not run here.
- The schemas are the AEAT's SuministroLR.xsd and SuministroInformacion.xsd. The XML Signature import points at a local copy of the W3C schema; nothing else is changed.
- Records sent to the AEAT travel inside a SOAP envelope; validate the RegFactuSistemaFacturacion element on its own.
- The example is by xmlvalid.com, with made-up companies: the first record of a chain for one invoice at 10% VAT, with its fingerprint computed as the AEAT's specification describes.
