AEAT VeriFactu SHA-256 Fingerprint & QR
verifactu_fingerprintCompute a single Spanish AEAT VeriFactu (RD 1007/2023 & Orden HAC/1177/2024) 8-field canonical UTF-8 string, 64-char uppercase SHA-256 Huella, official ValidarQR URL, and print-ready framed SVG QR. Stateless, deterministic, read-only with zero data retention; returns canonicalPayload, fingerprintSha256, qrValidationUrl, qrSvg, and optional nifWarning (returns isError=true if date/timestamp/hash format is invalid). Use when signing one invoice record or chaining onto a known previousHash; use verifactu_verify_chain to audit multiple historical records, or einvoice_generate to emit full sf:RegistroAlta XML.
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": {
"issuerNif": "<issuerNif>",
"seriesNumber": "<seriesNumber>",
"issueDate": "<issueDate>",
"invoiceType": "<invoiceType>",
"taxAmount": "<taxAmount>",
"totalAmount": "<totalAmount>",
"generationTimestamp": "<generationTimestamp>"
},
"name": "verifactu_fingerprint"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| issueDate | Yes | Invoice issue date (FechaExpedicionFactura) in strict DD-MM-YYYY format (e.g. "29-11-2026"). | |
| issuerNif | Yes | Spanish issuer tax ID (NIF/DNI/NIE/CIF without spaces, e.g. "89890001K" or "B85905495"). | |
| taxAmount | Yes | Total VAT/tax quota (CuotaTotal) as decimal number; normalized to 2 decimal places with dot separator (e.g. 21.00). | |
| environment | No | AEAT QR validation host: "production" (www2.agenciatributaria.gob.es) or "sandbox" (prewww2.aeat.es). | production |
| invoiceType | Yes | Official AEAT TipoFactura code: F1 standard, F2 simplified, F3 replacement, R1-R5 rectifying invoices. | |
| totalAmount | Yes | Total gross invoice amount including taxes (ImporteTotal); normalized to 2 decimal places (e.g. 121.00). | |
| previousHash | No | Previous invoice 64-char uppercase hex SHA-256 Huella, or empty string "" for the first invoice in a series. | |
| seriesNumber | Yes | Invoice series and sequential number (NumSerieFactura, max 60 chars, e.g. "INV-2026/0001"). | |
| verifactuMode | No | True for VERI*FACTU mode (ValidarQR endpoint + "VERI*FACTU" caption); false for No-VERI*FACTU mode (ValidarQRNoVerifactu). | |
| generationTimestamp | Yes | Exact record generation timestamp (FechaHoraHusoGenRegistro) in ISO-8601 format with timezone offset (e.g. "2026-11-29T12:00:00+01:00"). |