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.
| Field | Value |
|---|---|
| API | SII API |
| Invoice type or key | A1 |
| Endpoint | PUT /sii/modify |
| When to use it | Correcting 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
{
"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.