Generate VeriFactu QR code
generate_verifactu_qrCreates the AEAT tax QR URL and image for VERI*FACTU invoices, converting NIF, invoice details and total into a printable QR for validation.
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.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"nif": "<nif>",
"numserie": "<numserie>",
"fecha": "<fecha>",
"importe": "<importe>"
},
"name": "generate_verifactu_qr"
}
}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 | |||