Toolshub
校验 · 在浏览器中运行

核查 Verifactu 发票记录的 huella 链

按 AEAT 规定的字段顺序重算每条记录的 SHA-256 huella,逐条走链,并指出链条在哪一条记录上断开。

$24 买断 · 免费上限每文件 2.0 MB· 每天 3 次免费

文件
未选择文件

CSV 链导出或 Verifactu 记录 XML。在本标签页内运行,不上传任何内容。

在本标签页内运行,不上传任何内容。

结果

免费档:每文件最多 2 MB,每次 1 个文件,每天 3 次。这件工具单件买断 $24,一次付款。对比价格。

正在使用免费额度。这件工具的买断是一次付款,不是订阅。

这页与别处不同之处

Verifactu 的链是整体失效的:一条 huella 算错,后面每条记录都指向错误的前驱。这个页面读取链导出(CSV)或记录 XML,严格按 AEAT 公布的字段顺序重建每条哈希的输入串,以大写十六进制重算 SHA-256,并把两件事分开核查:存下来的 huella 是否对得上,声明的前一条 huella 是否等于前一条记录的值。报告会打印每条输入串,让你可以自己再哈希一遍;它标出第一条断掉的记录,而不是把整个文件判死。

把自身哈希不符与链接断开分开报告,并打印每条记录参与哈希的原始拼接串,让断点可定位而不只是被发现。

示例输入与输出

环节 情形 体积 说明
输入 一份断了一环的链导出 942 B four records — three altas and one anulación whose declared previous huella points two records back
输出 HTML 审计报告与问题 CSV 5.2 KB marks record 4 link BROKEN with expected and actual huella, leaves records 1–3 ok, and prints all four input strings

这里写的是本页构建时对照的演示数字,不是对每个文件的承诺。

你可以自己核对什么

承诺 测试结果
AEAT 公布的三个示例逐字节复现。 测试对规范 6.1、6.2、6.3 三个案例的输入串做哈希,并与 AEAT 文档印出的 3C464DAF…、F7B94CFD…、177547C0… 比对。
断点会被定位,而不只是被检测到。 在断链样例上,报告显示第 1–3 条 ok、第 4 条 link BROKEN,CSV 里 link 这一行同时给出期望与实际 huella。

常见问题

以下问答目前仍为英文原文。

When does Verifactu actually apply to me?

The huella and chaining rules are already published, but the obligation starts on 2027-01-01 for companies subject to corporate income tax and on 2027-07-01 for the remaining obligated issuers. Auditing a chain now is how you find out whether your software will produce a valid one before that date, not after.

Is this the AEAT validation?

No. It recomputes the huella and checks the chain locally, in your browser, against the published hash specification. It does not submit anything, does not validate the XSD, and does not generate the QR. A clean report means the chain holds here; the AEAT receiver remains the authority and marks a mismatch “Aceptado con errores”.

Does it cover TicketBAI or the event records?

No. TicketBAI has its own hash rules and its own provincial endpoints, and RegistroEvento uses a different field set. Both are out of scope in this version, and the report footer says so rather than leaving you to assume a clean report covered them.

What does the CSV need to contain?

One record per row, with the specification field names as the header: IDEmisorFactura, NumSerieFactura, FechaExpedicionFactura, TipoFactura, CuotaTotal, ImporteTotal, Huella (the stored one), HuellaAnterior (the declared previous one), FechaHoraHusoGenRegistro and PrimerRegistro. An optional kind column takes alta or anulacion; without it every row is read as alta.

My amounts have one decimal place. Will the hash differ?

No. The specification treats trailing fractional zeros as irrelevant, so 123.1 and 123.10 produce the same huella. Values are trimmed at both ends and nothing else is rewritten — a comma decimal separator or a thousands separator is reported as a numeric-format finding instead of being silently repaired.

价格

这件工具一次性 $24,只要工具还在就一直可用。一次付款,不是订阅。授权存在当前浏览器里,凭交易号可在别处恢复。

免费档:每次 1 个文件,每文件 2 MB,每天 3 次。买断:50 个文件,每文件 200 MB。

相关工具