Corrective invoice by replacement in the SII: API example
A corrective invoice by replacement carries tipo_rectificativa S, the correct amounts in the breakdown and, in importe_rectificativa, the base and tax amount of the invoice it corrects.
| Field | Value |
|---|---|
| API | SII API |
| Invoice type or key | R1 · tipo_rectificativa S |
| Endpoint | /sii/create |
| When to use it | The corrective invoice fully replaces the original one. |
What changes in this case
In the example, invoice A-1 (serie A, numero 1) had a base of €200 and a tax amount of €42; the corrective R1 leaves it at a €150 base and €31.50 tax. importe_rectificativa (base_rectificada and cuota_rectificada) is mandatory with S. 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
{
"ejercicio": "2026",
"periodo": "11",
"serie": "R",
"numero": "1",
"fecha_expedicion": "19-11-2026",
"tipo_factura": "R1",
"tipo_rectificativa": "S",
"clave_regimen": [
"01"
],
"descripcion": "Rectificativa por sustitución",
"nombre": "Nombre cliente",
"nif": "A15022510",
"facturas_rectificadas": [
{
"serie": "A",
"numero": "1",
"fecha_expedicion": "19-11-2026"
}
],
"importe_rectificativa": {
"base_rectificada": "200",
"cuota_rectificada": "42"
},
"desglose": {
"no_exenta": {
"tipo_no_exenta": "S1",
"detalle_iva": [
{
"tipo_impositivo": "21",
"base_imponible": "150",
"cuota_repercutida": "31.5"
}
]
}
},
"importe_total": "181.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.