generate_verifactu_qr
Generate the AEAT tax QR URL and image for a Spanish VERI*FACTU invoice using NIF, invoice number, issue date, and total amount.
Instructions
Generate the AEAT tax QR ("QR tributario") of an invoice: URL and image.
Args:
nif: Issuer NIF. numserie: Invoice series + number exactly as registered.
fecha: Issue date (DD-MM-AAAA; AAAA-MM-DD and DD/MM/AAAA are converted).
importe: ImporteTotal with decimal point, e.g. "241.40".
verifactu: true for VERI*FACTU systems (ValidarQR), false for non-verifiable systems (ValidarQRNoVerifactu).
environment: produccion (default) or pruebas (AEAT test portal).
size_px: Image width in pixels (100-2000). image_format: png (default) or svg.
The image uses error correction level M. print_rules says how it must appear on the invoice.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| nif | Yes | ||
| fecha | Yes | ||
| importe | Yes | ||
| size_px | No | ||
| numserie | Yes | ||
| verifactu | No | ||
| environment | No | produccion | |
| image_format | No | png |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||