Invoice with several VAT rates in the SII: API example
An invoice with several VAT rates has one item in detalle_iva per tax rate, with its base and its tax amount.
| Field | Value |
|---|---|
| API | SII API |
| Invoice type or key | F1 · S1 con varios tipos |
| Endpoint | /sii/create |
| When to use it | Invoice with lines at 21%, 10% and 4%. |
What changes in this case
The example has three rates (21%, 10% and 4%): one detalle_iva per rate, each with tipo_impositivo, base_imponible and cuota_repercutida. importe_total is the sum of bases and tax amounts.
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 con múltiples IVAs
{
"ejercicio": "2026",
"periodo": "11",
"serie": "A",
"numero": "1",
"fecha_expedicion": "19-11-2026",
"tipo_factura": "F1",
"clave_regimen": [
"01"
],
"descripcion": "Factura con múltiples IVAs",
"nombre": "Nombre cliente",
"nif": "A15022510",
"desglose": {
"no_exenta": {
"tipo_no_exenta": "S1",
"detalle_iva": [
{
"tipo_impositivo": "21",
"base_imponible": "200",
"cuota_repercutida": "42"
},
{
"tipo_impositivo": "10",
"base_imponible": "100",
"cuota_repercutida": "10"
},
{
"tipo_impositivo": "4",
"base_imponible": "50",
"cuota_repercutida": "2"
}
]
}
},
"importe_total": "404"
}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.