VeriFactu records
Check the VeriFactu records of your invoices and their submission status with the AEAT, review the configuration and retry rejected submissions.
Every issued invoice (and every cancellation) creates a chained VeriFactu record that Billora submits to the AEAT (Spanish Tax Agency). Issuing already does everything in the same call (see Invoicing and VeriFactu); this part of the API is for monitoring those records and acting when something fails.
Scopes: verifactu:read / verifactu:write.
Records
/api/v1/verifactu/registros/verifactu:read| Filter | Values |
|---|---|
estado_envio | PENDIENTE, ENVIADO, ACEPTADO, ACEPTADO_CON_ERRORES, RECHAZADO, ERROR_ENVIO, COMPLETADO_SIN_ENVIO |
tipo_registro | ALTA (registration) or ANULACION (cancellation) |
num_serie_factura | Invoice number |
created_after, updated_after… | Incremental sync |
Each record includes num_serie_factura, id_emisor_factura, fecha_expedicion, importe_total, cuota_total, estado_envio, huella (chained hash) and the creation and update dates. To know right away when the AEAT accepts or rejects an invoice, subscribe to invoice.verifactu.accepted and invoice.verifactu.rejected (webhooks).
Configuration and status
| Endpoint | Returns |
|---|---|
GET /verifactu/mi-config/ | The organization's configuration: modo, habilitado, certificate source and details (not the certificate) and counters. |
GET /verifactu/config/health/ | Status: active system, environment, complete configuration and valid certificates. |
GET /verifactu/config/stats/ | Invoices processed, submitted, pending and failed, and the last processing time. |
GET /verifactu/info/ · GET /verifactu/sistema/ | Details of the invoicing software system. |
The configuration and certificates can only be changed in the app: they are read-only with an API key.
Retrying and registering
Irreversible operations
These operations submit records to the AEAT. Ask the user for confirmation before calling them.
| Operation | Endpoint |
|---|---|
| Retry a rejected or failed record | POST /verifactu/registros/{id}/retry/ |
| Register a specific invoice in VeriFactu | POST /verifactu/process/process-invoice/ with {"invoice_id": 1042} (optional force_reprocess) |
| Registration in the previous system's format (compatibility) | POST /verifactu/process/registro-alta/ |
In the normal flow you don't need process-invoice: issuing the invoice already creates and submits the record.
