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.
| Field | Value |
|---|---|
| API | SII API |
| Invoice type or key | — |
| Endpoint | /sii/recibidas/cancel |
| When to use it | Removing 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
{
"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.
{
"ejercicio": "2026",
"periodo": "12",
"serie": "",
"numero": "15ES00418930051657",
"fecha_expedicion": "01-12-2026"
}Related cases
Correcto, Aceptado con errores or Duplicado.Modifying a received invoiceImport (customs declaration)Import VAT settled by customs (DUA).Import (customs declaration)Received corrective invoiceA supplier corrects an invoice, for example with a credit note for a return.Received corrective invoiceTry 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.