# VERI*FACTU QR code: size, content and placement

> Every VERI*FACTU invoice must carry a QR code of 30 to 40 mm, preceded by the text "QR tributario:", that opens the AEAT verification service for that invoice.

## What is the QR tributario?

It is a QR code printed (or shown) on the invoice that links to the **AEAT's verification service**. Whoever scans it can check that the invoice has been registered with the tax agency. The AEAT describes the rules in its [FAQ on invoicing systems](https://sede.agenciatributaria.gob.es/Sede/iva/sistemas-informaticos-facturacion-verifactu/preguntas-frecuentes.html).

## What are the technical requirements?

- Standard **ISO/IEC 18004** QR code.
- Size between **30 x 30 mm and 40 x 40 mm**.
- Preceded by the text **"QR tributario:"**.
- On printed or viewable invoices it should appear **at the beginning** of the invoice, ideally at the top.
- In VERI*FACTU mode, the legend **"VERI\*FACTU"** or "Factura verificable en la sede electrónica de la AEAT" must also appear.

The technical details are in Orden HAC/1177/2024 ([BOE](https://www.boe.es/buscar/act.php?id=BOE-A-2024-22138)).

## What data does the QR contain?

It encodes a URL of the AEAT with four parameters:

| Parameter | Meaning |
|---|---|
| nif | Tax ID of the issuer |
| numserie | Series and number of the invoice |
| fecha | Issue date (dd-mm-yyyy) |
| importe | Total amount of the invoice |

The URL points to the AEAT's `ValidarQR` service, with a test host for pre-production and a production host for real invoices.

## Why does the QR matter?

The QR lets your **customer** verify the invoice. In VERI*FACTU mode the AEAT can answer with the registered data. This is why the amounts and numbers printed on the PDF must match what you sent. The record, not the PDF, is the legally relevant data.

## Does the QR work in NO VERI*FACTU mode too?

Yes, the QR is required in both modes. In NO VERI*FACTU the verification service has nothing registered to match, so the QR works mainly as a code linking to the service, and the legend "VERI*FACTU" is not used. See [VERI*FACTU vs NO VERI*FACTU](https://verifu.opsagent.app/en/verifactu-vs-no-verifactu).

## Is a missing or wrong QR a problem?

The AEAT states that the QR is a formal obligation of the issuer. It does not by itself decide whether the recipient may deduct the VAT. A faulty QR can still be a compliance issue, so treat it as required. See [sanctions](https://verifu.opsagent.app/en/verifactu-penalties).

## What happens with the QR in my invoice workflow?

If you issue invoices from separate software and the PDF has no QR, you cannot simply add one afterwards: the QR must match a registered record created **at issue time**. Uploading already-issued invoices in a nightly batch is not compliant.

## How does Verifu handle the QR?

When you click Issue, Verifu creates the record, builds the verification URL from it and **stamps the QR code with "QR tributario:" and "VERI\*FACTU"** onto the invoice PDF. You can then download the original PDF and the stamped VERI*FACTU PDF from the documents overview. Related: [hash chain](https://verifu.opsagent.app/en/verifactu-hash-chain), [how it works](https://verifu.opsagent.app/en/how-it-works).

---

Source: https://verifu.opsagent.app/en/verifactu-qr-code (updated 2026-11-15)
