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.
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).
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 VERIFACTU the verification service has nothing registered to match, so the QR works mainly as a code linking to the service, and the legend "VERIFACTU" is not used. See 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.
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, how it works.
This guide explains the rules in general terms and does not replace advice from your gestoría or tax adviser.