VeriFactu Overview
VeriFactu
VeriFactu Overview
Section titled “VeriFactu Overview”VeriFactu is Spain’s real-time invoice reporting system for the AEAT (Agencia Estatal de Administración Tributaria).
What is VeriFactu?
Section titled “What is VeriFactu?”VeriFactu requires businesses to register invoice data with the tax authority in near real-time, with strict requirements for:
- Hash chaining — Each invoice links to the previous via SHA-256
- Digital signatures — XMLDSig for integrity and non-repudiation
- Record types — Alta (issue), Modificación (modification), Anulación (cancellation)
How Kreyo Helps
Section titled “How Kreyo Helps”Kreyo abstracts the complexity:
- Simple API — Submit invoice data, we handle the XML and crypto
- Automatic chaining — We maintain your hash chain
- Certificate management — Upload once, use always
- Retry logic — Automatic retry for AEAT outages
Core Concepts
Section titled “Core Concepts”- Concepts — Hash chains, records, and certificates
- Hash chain — Deep dive into SHA-256 chaining
- Certificates — Managing signing certificates
API Endpoints
Section titled “API Endpoints”POST /verifactu/v1/registros/alta— Register an issued invoicePOST /verifactu/v1/registros/modificacion— Modify a recordPOST /verifactu/v1/registros/anulacion— Cancel a recordGET /verifactu/v1/consulta— Query your records