Credit note in the SII: API example
In the example, the credit note is an F1 with the base, the tax amount and importe_total in negative.
| Field | Value |
|---|---|
| API | SII API |
| Invoice type or key | F1 con importes negativos |
| Endpoint | /sii/create |
| When to use it | A new invoice with a negative amount that does not correct another invoice. Returns and later discounts on an invoice already issued go in an R1 corrective invoice. |
What changes in this case
Returns and later discounts on an invoice already issued do not go here: the law requires an R1 corrective invoice (art. 15 of RD 1619/2012 and art. 80.Dos of the LIVA).
The structure is that of a full invoice; only the signs change: base_imponible -200, cuota_repercutida -42 and importe_total -242.
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
Factura de abono
{
"ejercicio": "2026",
"periodo": "11",
"serie": "A",
"numero": "1",
"fecha_expedicion": "19-11-2026",
"tipo_factura": "F1",
"clave_regimen": [
"01"
],
"descripcion": "Factura de abono",
"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"
}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.