Cancel a received invoice in the SII: API example

To cancel a received invoice the AEAT has registered, send POST /sii/recibidas/cancel with ejercicio, periodo, serie, numero, fecha_expedicion and the supplier (nombre and nif or id_otro): it creates a cancellation record.

FieldValue
APISII API
Invoice type or key—
Endpoint/sii/recibidas/cancel
When to use itRemoving an invoice registered in the received-invoices book.

What changes in this case

Unlike the issued-invoices book, the cancellation of a received invoice identifies the supplier with its name: nombre and nif (or id_otro) go together, and sending only one of them returns a 400. ejercicio and periodo must be those of the original record, or those of the last modification if there was one.

If you give no supplier, the holder is used: that is how an import (F5) or a customs supplementary settlement (LC) is cancelled. On any other invoice type, a cancellation without a supplier does not find the invoice.

The result is Anulado, or Factura inexistente if the AEAT does not have the invoice. Cancelling is not correcting: if your supplier changes the amounts, enter its corrective invoice.

JSON requests

Invoice with a supplier

/sii/recibidas/cancel
{
  "ejercicio": "2026",
  "periodo": "12",
  "serie": "A",
  "numero": "1",
  "fecha_expedicion": "01-12-2026",
  "nombre": "Nombre proveedor",
  "nif": "A15022510"
}

Import without a supplier

The import of the F5 example is cancelled without nombre, nif or id_otro: Verifacti uses the holder’s NIF and name.

/sii/recibidas/cancel
{
  "ejercicio": "2026",
  "periodo": "12",
  "serie": "",
  "numero": "15ES00418930051657",
  "fecha_expedicion": "01-12-2026"
}

Try this case in the test environment

Create your free account and ask soporte@verifacti.com for a SII test NIF; then copy the request and send it with its test API key.

Test environment and test NIF includedRead the documentation