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。

相關工具