Modify an invoice in the SII: API example

To correct an invoice the AEAT has already registered, send PUT /sii/modify with the full corrected invoice: it creates a modification record (A1) that fully replaces the previous one.

FieldValue
APISII API
Invoice type or keyA1
EndpointPUT /sii/modify
When to use itCorrecting an invoice that is Correcto, Aceptado con errores or Duplicado.

What changes in this case

The invoice is identified by serie, numero and fecha_expedicion, and the body is the same as for /sii/create. Any data can change, including the tax period. On a cancelled invoice, it registers it again.

In the example, the description of invoice A-1 (serie A, numero 1) is corrected.

JSON request

Factura normal (descripción corregida)
{
  "ejercicio": "2026",
  "periodo": "11",
  "serie": "A",
  "numero": "1",
  "fecha_expedicion": "19-11-2026",
  "tipo_factura": "F1",
  "clave_regimen": [
    "01"
  ],
  "descripcion": "Factura normal (descripción corregida)",
  "nombre": "Nombre cliente",
  "nif": "A15022510",
  "desglose": {
    "no_exenta": {
      "tipo_no_exenta": "S1",
      "detalle_iva": [
        {
          "tipo_impositivo": "21",
          "base_imponible": "200",
          "cuota_repercutida": "42"
        }
      ]
    }
  },
  "importe_total": "242"
}

Common errors

It only works for invoices the AEAT has registered. An Incorrecto or No registrado invoice is not modified: correct it and send it again with POST /sii/create.

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