Generate VeriFactu QR (ES)
Generate VeriFactu QR (ES)
Generate the AEAT VeriFactu QR for a Spanish invoice. Returns the verification URL plus PNG (base64) and SVG renderings of the QR code.
Note: PNG is base64-encoded (no data: prefix) so clients can embed it directly or decode it to bytes — JSON keeps the response easy to consume without multipart.
Authentication
Bearer authentication of the form Bearer <token>, where token is your auth token.
Request
Seller NIF/CIF (Spanish tax ID), e.g., “B12345678”.
Invoice series prefix that is concatenated with invoiceNumber to form the AEAT numserie parameter. Use whatever series your numbering scheme prescribes; characters are URL-encoded by the QR builder.
Invoice number within the series (forms the second half of numserie).
Invoice issue date in AEAT QR format DD-MM-YYYY.
Invoice total amount used as the importe query parameter. Negative totals are accepted for credit notes.
Response
Base64-encoded PNG image of the QR code (no data URL prefix).
