Received invoice from a non-EU supplier in the SII: API example
A service from a supplier outside the EU is entered with the supplier in id_otro (codigo_pais, id_type and id) and, since you declare the VAT, the lines in desglose.inversion_sujeto_pasivo.
| Field | Value |
|---|---|
| API | SII API |
| Invoice type or key | F1 · id_otro · inversion_sujeto_pasivo |
| Endpoint | /sii/recibidas/create |
| When to use it | Services from a supplier not established in the EU, such as a software subscription. |
What changes in this case
The supplier has no Spanish NIF or VAT number: it goes in id_otro with codigo_pais (required except with id_type 02), id_type and id. In the example, id_type 04, an official identity document of the country of residence. In the received-invoices book, id_type goes from 02 to 06: 07 (not registered) does not exist in this book.
For services supplied to you by a business not established in Spain, you are usually the taxable person for VAT, so the lines go in inversion_sujeto_pasivo.
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": "INV",
"numero": "1001",
"fecha_expedicion": "01-12-2026",
"tipo_factura": "F1",
"clave_regimen": [
"01"
],
"descripcion": "Suscripción a un software",
"nombre": "Nombre proveedor extranjero",
"id_otro": {
"codigo_pais": "US",
"id_type": "04",
"id": "123456789"
},
"fecha_registro_contable": "01-12-2026",
"cuota_deducible": "21",
"desglose": {
"inversion_sujeto_pasivo": [
{
"tipo_impositivo": "21",
"base_imponible": "100",
"cuota_soportada": "21"
}
]
}
}Common errors
With id_type 07 the API returns vf-sii-recibida_id_type_07: identify the supplier with nif or another id_type.
Related cases
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.