Verifactu invoice example: the QR, the phrase and the hash, field by field

Updated on 11 October 2026. QR content, phrase, hash and issue and cancellation records verified against the BOE, Spain's official state gazette (Order HAC/1177/2024, RD 1007/2023 and RD 1619/2012).

Valery Grinkevich
Valery Grinkevich Licensed economist · tax adviser 20+ years of experience · Torrevieja, Costa Blanca
Quick answer

A Verifactu invoice example has the same data as always plus two visible elements: a QR code of 30x30 to 40x40 mm with your NIF (tax ID), the series and number, the date and the total amount, and, if your program sends the records to the AEAT (the Spanish tax agency), the phrase "VERI*FACTU". The chained hash is not printed: it lives in the invoicing record that the program generates internally.

This guide takes apart an invoice issued with a program adapted to Verifactu (the Spanish anti-fraud invoicing system). You will see which data comes from the 2012 Invoicing Regulation and what Royal Decree 1007/2023 and Order HAC/1177/2024 add, exactly what the QR code contains, when the "VERI*FACTU" phrase appears and what lies behind the invoice that your client does not see: the issue record, the hash and the cancellation record. At the end, a narrated example with the invoice of 1,000 euros plus IVA (VAT) of a self-employed designer. It is for those who already invoice and want to know what changes on the page.

What every invoice already carried before Verifactu

Verifactu does not rewrite the content of the invoice. The list of mandatory data remains in article 6 of the Invoicing Regulation (RD 1619/2012): sequential number and series, issue date, name or company name, NIF and address of the issuer and of the client, description of the transaction with its unit price, taxable base, IVA rate and amount shown separately, the date of the transaction if different, and special mentions where they apply (exemption, "reverse charge", cash accounting).

On a simplified invoice or receipt, the list is shorter and is set by article 7. Each item of the full invoice, with examples, is in the guide on your first invoice. Here we start from that base and focus on what is new.

What Verifactu adds to the invoice: QR and phrase

Royal Decree 1007/2023 added a paragraph 5 to article 6 of the Invoicing Regulation (and an identical one to article 7 for receipts). From your obligation date, every invoice issued with a computer system must include:

Order HAC/1177/2024, in its article 20, adds how: both elements must be legible and of adequate resolution, both on paper and in the digital image of the invoice, and the phrase must have "a clearly visible typeface and size, similar to those of the rest of the invoice data". It cannot go in tiny lowercase hidden in the footer.

A useful exception: in a structured electronic invoice, the kind exchanged between programs, there is no need to draw the QR; it is enough to include, as a separate field, the address ("URL") it would contain.

The Verifactu invoice QR code: what it contains and what happens when it is scanned

Article 21 of the order regulates the QR quite precisely:

Notice what it does not carry: neither your client's data, nor the line detail, nor the hash. The exact format of the address, which may differ depending on whether the system is VERI*FACTU or not, is in a technical document of the AEAT, not in the BOE.

What happens when it is scanned? Article 17 of the regulation lets the recipient, whether a business or an individual, voluntarily send that data to the AEAT with a mobile phone. The website shows them the QR data in readable form and, if the invoice carries the phrase "VERI*FACTU", lets them verify that you submitted that invoice to the AEAT. The rule makes clear that this submission is not a report against you, although the AEAT may use the information in its functions.

Table: each invoice field and where it comes from

FieldSourceVisible on the invoice?
Sequential number and seriesRD 1619/2012, art. 6.1.aYes
Issue date (and transaction date, if different)RD 1619/2012, art. 6.1.b and iYes
Name, NIF and address of the issuer and the clientRD 1619/2012, art. 6.1.c, d and eYes
Description, unit price and taxable baseRD 1619/2012, art. 6.1.fYes
IVA rate and amount shown separatelyRD 1619/2012, art. 6.1.g and hYes
Special mentions (exemption, reverse charge, cash accounting)RD 1619/2012, art. 6.1.j to pYes, when they apply
IRPF withholdingIRPF rules, not the invoicing regulationYes, if you are a professional and invoice a company
QR code (NIF, series and number, date, total amount)Verifactu: RD 1619/2012, art. 6.5.a; Order HAC/1177/2024, arts. 20 and 21Yes
"VERI*FACTU" phraseVerifactu: RD 1619/2012, art. 6.5.b; Order, art. 20.1.bOnly in VERI*FACTU mode
Invoicing issue recordVerifactu: RD 1007/2023, arts. 9 and 10No, the program generates it
Chained hashVerifactu: RD 1007/2023, art. 12; Order, arts. 7 and 13No, it goes in the record
Electronic signature of the recordVerifactu: RD 1007/2023, art. 12No; VERI*FACTU systems do not need it (art. 16.3)

The withholding is not required by the invoicing regulation, but in practice it must appear so that your client knows how much to pay in; we explain it in the guide on your first invoice and in the one on modelos 111 and 115 (the quarterly withholding returns).

What you cannot see: the issue record and the chained hash

Every time you issue an invoice, the program generates, "simultaneously or immediately beforehand", an issue invoicing record (art. 9 of the regulation). It is an XML file that the client never sees and that, according to article 10, contains among other data: your NIF and name, the client's, who issues the invoice (you, your client or a third party), number, series and dates, whether it is full or simplified, whether it is corrective, the description, the total amount, the IVA regime, the base, the rate and the amount, and the identification of the program with the date, hour, minute and second of generation.

The key piece is the hash. Article 13 of the order states what data it is calculated from in an issue record: NIF of the issuer, number and series, issue date, invoice type, total amount of IVA, total amount, hash of the previous record and date, time and time zone of generation. Since it includes the hash of the previous record, each record is hooked to the one before. In addition, each record stores the first 64 characters of the previous hash together with its NIF, series, number and date (art. 7.a). If someone alters an old invoice, its hash changes and the chain no longer adds up. The specific algorithm is set by a technical document of the AEAT.

If your system does not work in VERI*FACTU mode, each record is also electronically signed. In VERI*FACTU mode the hash is enough (art. 16.3 of the regulation), because the record travels to the AEAT at once.

Verifactu invoice example of a self-employed designer: 1,000 euros plus 21% IVA

Marta is a graphic designer, an autónomo (self-employed person) in Valencia, and in September 2027, with Verifactu already mandatory for her, she invoices a logo to a Spanish SL (limited company). She uses a program adapted to the VERI*FACTU mode. Her invoice, in PDF, says:

The figures are the same as in the example of your first invoice: the only things that have visibly changed are the QR and the phrase. The rates come from the IVA Law (21% general) and from the IRPF rules (15% professional withholding; 7% in the start-up year and the two following, art. 101.5 LIRPF and art. 95.1 of its regulation).

Inside, when she clicks "issue", the program generates the issue record with base 1,000 euros, rate 21% and amount 210 euros, calculates its hash using that of the record of invoice 2027-0041 and sends it to the AEAT. The QR contains Marta's NIF, "2027-0042", the date and the total amount: 1,210 euros, not the 1,060 euros to be paid. The AEAT's frequently asked questions on the issue record make clear that withholdings "are not formally part of the invoicing record", so the total amount of the record and of the QR is base plus IVA. The withholding still appears on the invoice so that the SL knows how much to pay in.

When the SL receives the invoice, its accountant can scan the QR and check on the website that Marta submitted it. To record it and deduct the IVA, they do not have to do anything different from usual.

If you make a mistake: cancellation record and corrective invoice

With Verifactu nothing is deleted. There are two paths depending on the type of error:

When one applies and when the other, with examples, is in the guide on the corrective invoice.

What does not change for your client

For the rest of your questions (dates, Excel, receipts, gestorías) there are the Verifactu frequently asked questions, and the general framework in what Verifactu is.

Frequently asked questions

Where do I put the QR on a Verifactu invoice?
Order HAC/1177/2024 does not set the position: it refers to what the AEAT publishes on its website about placement and presentation. What it does set is the size, between 30x30 and 40x40 millimetres, and that it be legible both on paper and in PDF.
Do I have to put "VERI*FACTU" if my program does not send the records?
No. The phrase only appears when the system sends all invoicing records to the AEAT. If you work in the other mode, the invoice carries the QR but not the phrase.
Is the hash printed on the invoice?
No. The hash is part of the invoicing record that the program generates. On the invoice you only see the QR and, where applicable, the VERI*FACTU phrase.
Does the QR carry my client's data?
No. According to article 21 of Order HAC/1177/2024, the QR only contains the AEAT verification address with your NIF, the series and number, the issue date and the total amount.
What if I send the invoice as a structured electronic invoice?
You do not need to draw the QR. It is enough to include, as a separate field, the address that the code would contain, according to article 20.2 of the order.
If I invoice in another currency, is the record in euros?
Yes. Article 10.2 of the regulation requires all amounts of the issue record to be expressed in euros, converting them if the invoice was issued in another currency.
Does an invoice from before my obligation date have to carry a QR?
No, if you issued it with a system that did not yet have to be adapted. If you were already invoicing voluntarily with a Verifactu system, those invoices already come out with their QR.

Keep reading

Your first invoice in Spain: what it must include to be legal

What is Verifactu and does it affect you?

Verifactu FAQ: the real questions of autónomos and small companies

Rather have this calculated for you?

kontora generates your tax forms box by box, tells you how much to set aside and reminds you before every deadline.

Get started with kontora

Pricing · Calculators