Received corrective invoice in the SII: API example

A corrective invoice your supplier issues to you is entered like any other received invoice, with tipo_factura R1 to R5, tipo_rectificativa and the supplier’s original invoice in facturas_rectificadas.

FieldValue
APISII API
Invoice type or keyR1 · tipo_rectificativa I
Endpoint/sii/recibidas/create
When to use itA supplier corrects an invoice, for example with a credit note for a return.

What changes in this case

Both types work as in the issued-invoices book (by substitution and by differences), with cuota_soportada instead of cuota_repercutida. The example is by differences (I): the base goes down €50 and the tax amount €10.50, so the breakdown carries -50 and -10.5, and cuota_deducible is negative too.

serie and numero are those of the supplier’s corrective invoice, and facturas_rectificadas identifies its original invoice. A corrective invoice is a new invoice: it does not change the original’s record. If the mistake is yours when entering the invoice, use a modification.

It is sent with POST /sii/recibidas/create, with the same API key as the NIF’s issued invoices. The record is queued and goes to the AEAT with the NIF’s other pending received invoices; you get the result with GET /sii/status or by webhook.

JSON request

Abono por devolución de material
{
  "ejercicio": "2026",
  "periodo": "12",
  "serie": "R",
  "numero": "1",
  "fecha_expedicion": "01-12-2026",
  "tipo_factura": "R1",
  "tipo_rectificativa": "I",
  "facturas_rectificadas": [
    {
      "serie": "A",
      "numero": "1",
      "fecha_expedicion": "01-12-2026"
    }
  ],
  "clave_regimen": [
    "01"
  ],
  "descripcion": "Abono por devolución de material",
  "nombre": "Nombre proveedor",
  "nif": "A15022510",
  "fecha_registro_contable": "01-12-2026",
  "cuota_deducible": "-10.5",
  "desglose": {
    "detalle_iva": [
      {
        "tipo_impositivo": "21",
        "base_imponible": "-50",
        "cuota_soportada": "-10.5"
      }
    ]
  },
  "importe_total": "-60.5"
}

Common errors

In the received-invoices book, facturas_rectificadas is only accepted on R1 to R5 (vf-sii-recibida_facturas_rectificadas_no_aplica), and importe_rectificativa only on corrective invoices by substitution (vf-sii-recibida_importe_rectificativa_no_aplica).

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