---
title: "VeriFactu's chained hash, explained | BionicAdri"
description: "How VeriFactu's chained hash works: the data behind it, the QR code and records. A technical explanation and BionicAdri status."
url: https://bionicadri.com/en/blog/verifactu-aeat.html
markdown: https://bionicadri.com/en/md/blog-verifactu-aeat.md
language: en
updated: 2026-11-21
index: https://bionicadri.com/en/llms.txt
publisher: "BIONICADRI SOLUTIONS S.L. · info@bionicadri.com · +34 604 87 17 35"
translations:
  es: https://bionicadri.com/md/blog-verifactu-aeat.md
  en: https://bionicadri.com/en/md/blog-verifactu-aeat.md
  ro: https://bionicadri.com/ro/md/blog-verifactu-aeat.md
  fr: https://bionicadri.com/fr/md/blog-verifactu-aeat.md
  de: https://bionicadri.com/de/md/blog-verifactu-aeat.md
  it: https://bionicadri.com/it/md/blog-verifactu-aeat.md
  pt: https://bionicadri.com/pt/md/blog-verifactu-aeat.md
---

# The VeriFactu chained fingerprint: how it works and how we generate it

This article is technical and focuses on a single piece of VeriFactu: the fingerprint that chains each invoicing record to the previous one. Deadlines, who is obliged and what the law requires are in the [guide to invoicing with VeriFactu](https://bionicadri.com/en/facturacion-verifactu.html).

By [Liviu Diaconu](https://bionicadri.com/en/nosotros.html#fundador) 18 Mar 2026 Updated 21 nov 2026 5 min read

## What the chained fingerprint is

The VeriFactu regulation (Real Decreto 1007/2023) requires every invoicing record, whether it is a registration or a cancellation, to carry a fingerprint, also called a «hash» (Article 12). A hash is a short string calculated from a set of data: if a single piece of data changes, the string changes.

What makes the fingerprint «chained» is that the data of each record includes the fingerprint of the previous record. That way the records form a chain: you cannot touch one link without it showing in all the ones that follow.

## What data the hash comes from

Order HAC/1177/2024 details the subset of record data that is used (Article 13). For an entry record there are eight:

- The issuer's NIF.
- The invoice number and its series.
- The issue date.
- The invoice type.
- The total tax amount and the total amount.
- The hash of the previous record.
- The date, time and time zone in which the record is generated.

For a cancellation record they are the issuer's NIF, the number and series, the issue date, the hash of the previous record and the date, time and time zone of generation. The exact algorithm and encoding are set by a technical document published by the Tax Agency. At BionicAdri we use the Tax Agency's SHA-256.

## Why it helps to detect changes

Imagine three invoices in a row. The hash of the third includes that of the second, and the hash of the second includes that of the first. If someone changes the amount of the first, its hash no longer matches the one stored by the second, and that difference is carried through the whole chain.

The regulation expressly requires it: the software must guarantee that a record cannot be altered without the system detecting it and giving notice, and any correction or cancellation must be made with a subsequent additional record, so that the original data is preserved (Article 8.2). That is why an issued invoice is not edited: it is corrected.

## The QR code

The invoice carries a QR code. Under Article 21 of the Order, it contains the address of the AEAT verification service and four pieces of invoice data: the issuer's NIF, its series and number, the issue date and the total amount. It must measure between 30 × 30 and 40 × 40 millimetres and use error correction level M.

## What BionicAdri does today

- **Calculates the hash** SHA-256 of each issued invoice and chains it to the previous one.
- **Generates the verification QR code** for the invoice.
- **Closes the issued invoice.** It cannot be edited or deleted, not even by the administrator. An error is corrected with a corrective invoice, which has its own series and generates its record as a corrective invoice for differences.
- **Keeps a log** of every sending or query attempt, with the request XML and the response. It is not overwritten.

## What it does not do yet

The actual sending of records to the Tax Agency is switched off. Today it is only sent to the AEAT test environment, and never with customer invoices. In the meantime, the invoice the customer receives does not show the QR code as valid. We will activate it with your certificate when the time comes. That is why we say BionicAdri is ready for VeriFactu, not that it already complies with everything the regulation requires.

Invoices imported from another program do not go through this circuit: they do not carry a BionicAdri hash or QR code and are not sent to the Tax Agency, because they were recorded by the program that issued them.

## Continue with the full guide

To find out whether you are obliged, from when and what the law says about penalties, read the [VeriFactu invoicing guide](https://bionicadri.com/en/facturacion-verifactu.html). If you are coming from another program, see [how to switch program without losing your history](https://bionicadri.com/en/blog/cambiar-de-programa-sin-perder-historico.html). For specific questions, write to us at [info@bionicadri.com](mailto:info@bionicadri.com).

- VeriFactu
- AEAT
- Chained hash
- Electronic invoicing

## Related articles

### [Invoicing software with VeriFactu](https://bionicadri.com/en/facturacion-verifactu.html)

### [Quote-to-Cash ERP for small businesses](https://bionicadri.com/en/blog/erp-quote-to-cash-pyme.html)

### [Switching software without losing your history](https://bionicadri.com/en/blog/cambiar-de-programa-sin-perder-historico.html)

## See it with your company's data

We show you ADRI working on a real task of yours, in about 15 minutes.

[Request a demo](https://bionicadri.com/en/contacto.html#formulario)

[info@bionicadri.com](mailto:info@bionicadri.com) · [+34 604 87 17 35](tel:+34604871735)
