Received invoice with reverse charge in the SII: API example
When you are the taxable person, the lines of the received invoice go in desglose.inversion_sujeto_pasivo, with the rate and the VAT you self-assess in cuota_soportada.
| Field | Value |
|---|---|
| API | SII API |
| Invoice type or key | F1 · inversion_sujeto_pasivo |
| Endpoint | /sii/recibidas/create |
| When to use it | Purchases from a Spanish supplier where you are the taxable person, such as some construction work. |
What changes in this case
Each inversion_sujeto_pasivo line requires tipo_impositivo, base_imponible and cuota_soportada. Your supplier declares the same invoice in its issued-invoices book with S2, rate and tax amount 0 (example); your received-invoices book carries the VAT you self-assess.
If the invoice has a part with reverse charge and a part without it, it carries both blocks, inversion_sujeto_pasivo and detalle_iva. At least one of the two is required. cuota_deducible includes the self-assessed VAT you deduct.
It is sent with POST /sii/recibidas/create, with the same API key as the NIF’s issued invoices. The record is queued and goes to the AEAT with the NIF’s other pending received invoices; you get the result with GET /sii/status or by webhook.
JSON request
{
"ejercicio": "2026",
"periodo": "12",
"serie": "A",
"numero": "2",
"fecha_expedicion": "01-12-2026",
"tipo_factura": "F1",
"clave_regimen": [
"01"
],
"descripcion": "Ejecución de obra (inversión del sujeto pasivo)",
"nombre": "Nombre proveedor",
"nif": "A15022510",
"fecha_registro_contable": "01-12-2026",
"cuota_deducible": "210",
"desglose": {
"inversion_sujeto_pasivo": [
{
"tipo_impositivo": "21",
"base_imponible": "1000",
"cuota_soportada": "210"
}
]
}
}Common errors
The API rejects inversion_sujeto_pasivo with key 09 as the first key (unless the second one is 01), with a single key 07 or 08, and on F5 and LC invoices.
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.