Intra-EU acquisition of goods in the SII: API example

A purchase of goods from a business in another EU country is entered in the received-invoices book with regime key 09, the supplier identified by their VAT number (id_otro.id_type 02) and the VAT you self-assess in desglose.detalle_iva.

FieldValue
APISII API
Invoice type or keyF1 · clave 09
Endpoint/sii/recibidas/create
When to use itPurchase of goods from a business in another Member State.

What changes in this case

In the received-invoices book, key 09 is the one for intra-EU acquisitions. This book has its own list of keys: the same key means something else in the issued-invoices book. With key 09, tipo_factura is F1 or a corrective R1 to R4.

The supplier has no Spanish NIF: it goes in id_otro with id_type 02 (VAT number) and the full number with its country prefix. With id_type 02 no codigo_pais is needed. Before sending, the API checks the VAT number in VIES; on a test NIF you can skip the check with validar_destinatario: false.

The VAT you self-assess goes in detalle_iva, with cuota_soportada, and cuota_deducible is the part 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

Compra de mercancías a un proveedor de la UE
{
  "ejercicio": "2026",
  "periodo": "12",
  "serie": "A",
  "numero": "3",
  "fecha_expedicion": "01-12-2026",
  "tipo_factura": "F1",
  "clave_regimen": [
    "09"
  ],
  "descripcion": "Compra de mercancías a un proveedor de la UE",
  "nombre": "Nombre proveedor UE",
  "id_otro": {
    "id_type": "02",
    "id": "BE0404621642"
  },
  "fecha_registro_contable": "01-12-2026",
  "cuota_deducible": "105",
  "desglose": {
    "detalle_iva": [
      {
        "tipo_impositivo": "21",
        "base_imponible": "500",
        "cuota_soportada": "105"
      }
    ]
  }
}

Common errors

With key 09 as the first key, the API rejects inversion_sujeto_pasivo (vf-sii-recibida_clave_09_inversion), unless the second key is 01.

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.

Test environment and test NIF includedRead the documentation