Corrective invoice by differences in the SII: API example

A corrective invoice by differences carries tipo_rectificativa I and only the difference from the original invoice in the breakdown, positive or negative.

FieldValue
APISII API
Invoice type or keyR1 · tipo_rectificativa I
Endpoint/sii/create
When to use itOnly the difference in amounts is corrected.

What changes in this case

In the example, the base goes down €50 and the tax amount €10.50, so the corrective invoice carries -50 and -10.5. It has no importe_rectificativa. The original invoice goes in facturas_rectificadas.

It is sent with POST /sii/create. The record is queued and goes to the AEAT with the NIF’s other pending records; you get the result with GET /sii/status or by webhook.

JSON request

Rectificativa por diferencias
{
  "ejercicio": "2026",
  "periodo": "11",
  "serie": "R",
  "numero": "1",
  "fecha_expedicion": "19-11-2026",
  "tipo_factura": "R1",
  "tipo_rectificativa": "I",
  "clave_regimen": [
    "01"
  ],
  "descripcion": "Rectificativa por diferencias",
  "nombre": "Nombre cliente",
  "nif": "A15022510",
  "facturas_rectificadas": [
    {
      "serie": "A",
      "numero": "1",
      "fecha_expedicion": "19-11-2026"
    }
  ],
  "desglose": {
    "no_exenta": {
      "tipo_no_exenta": "S1",
      "detalle_iva": [
        {
          "tipo_impositivo": "21",
          "base_imponible": "-50",
          "cuota_repercutida": "-10.5"
        }
      ]
    }
  },
  "importe_total": "-60.5"
}

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