Questions about VeriFactu

Preguntas sobre VeriFactu

What is VeriFactu?

¿Qué es VeriFactu?

VeriFactu is the name commonly given to Spain's rules for invoicing software (Royal Decree 1007/2023). They cover most companies, the self-employed and some other businesses that issue invoices with software. Once the rules apply to a business, its invoicing software must keep a record of every invoice that cannot be altered or deleted without leaving a trace. One way to comply is a VERI*FACTU system, which sends each invoice record to AEAT (Agencia Tributaria) as the invoice is issued. AEAT Sync works this way, through a simple API.

VeriFactu es el nombre con el que se conocen las normas españolas sobre software de facturación (Real Decreto 1007/2023). Afectan a la mayoría de las sociedades, a los autónomos y a algunos otros negocios que emiten facturas con un programa informático. Cuando las normas se aplican a un negocio, su software de facturación debe guardar un registro de cada factura que no pueda modificarse ni borrarse sin dejar rastro. Una forma de cumplir es un sistema VERI*FACTU, que envía el registro de cada factura a la AEAT (Agencia Tributaria) en el momento de emitirla. AEAT Sync funciona así, mediante una API sencilla.

How do I send invoices to AEAT via API?

¿Cómo envío facturas a la AEAT mediante API?

Make a single POST request to the AEAT Sync API with the invoice details (issuer NIF, items, VAT rates). AEAT Sync builds the VeriFactu record and adds it to your hash chain. The AEAT Sync Desktop Signer, running on your own computer, signs it with your digital certificate and sends it to AEAT, so your certificate never leaves your machine. A webhook tells you when AEAT accepts or rejects the invoice.

Haz una sola petición POST a la API de AEAT Sync con los datos de la factura (NIF del emisor, conceptos, tipos de IVA). AEAT Sync genera el registro VeriFactu y lo añade a tu cadena de huellas. El Desktop Signer de AEAT Sync, que funciona en tu propio ordenador, lo firma con tu certificado digital y lo envía a la AEAT, así que tu certificado nunca sale de tu equipo. Un webhook te avisa cuando la AEAT acepta o rechaza la factura.

Do I need to comply with VeriFactu yet?

¿Tengo que cumplir ya con VeriFactu?

Not yet. VeriFactu is being phased in, and when it applies depends on the type of business. Check whether your business is affected yet. When it does apply, AEAT Sync handles the compliance layer automatically so you don't have to build it yourself.

Todavía no. VeriFactu se está implantando por fases, y cuándo se aplica depende del tipo de negocio. Comprueba si ya afecta a tu empresa. Cuando se aplique, AEAT Sync se encarga de la parte de cumplimiento automáticamente para que no tengas que desarrollarla tú.

What is the hash chain in VeriFactu invoicing?

¿Qué es la cadena de huellas de VeriFactu?

Each invoice record carries a SHA-256 fingerprint (the “huella”), calculated from the record's key details and the fingerprint of the record before it. If a record is changed or removed, the chain breaks and the tampering shows. AEAT Sync keeps this chain automatically for each business.

Cada registro de factura lleva una huella SHA-256, calculada a partir de los datos clave del registro y de la huella del registro anterior. Si un registro se modifica o se elimina, la cadena se rompe y la manipulación queda a la vista. AEAT Sync mantiene esta cadena automáticamente para cada empresa.

Can I integrate AEAT Sync with Stripe or other payment processors?

¿Puedo integrar AEAT Sync con Stripe u otros procesadores de pago?

Yes. The typical flow is: your payment processor fires a webhook when a payment succeeds, your server calls the AEAT Sync API with the invoice data, and AEAT Sync handles submission to AEAT and notifies you back via webhook. This works with Stripe, GoCardless, Redsys, PayPal, or any processor that can notify your server.

Sí. El flujo habitual es: tu procesador de pagos lanza un webhook cuando se completa un pago, tu servidor llama a la API de AEAT Sync con los datos de la factura, y AEAT Sync gestiona el envío a la AEAT y te avisa mediante webhook. Funciona con Stripe, GoCardless, Redsys, PayPal o cualquier procesador que pueda avisar a tu servidor.

VeriFactu dates and sourcesFechas y fuentes de VeriFactu