Import with a customs declaration (F5) in the SII: API example

An import is entered with tipo_factura F5: numero is the reference number of the DUA (customs declaration) and fecha_expedicion the date customs admitted it. It carries no supplier: Verifacti writes the holder’s NIF and name as issuer and counterparty.

FieldValue
APISII API
Invoice type or keyF5 · DUA
Endpoint/sii/recibidas/create
When to use itImport VAT settled by customs (DUA).

What changes in this case

On F5 and LC (customs supplementary settlement), the AEAT requires the issuer to be the holder itself. That is why the example has no nombre, nif, id_otro or nif_representante: Verifacti takes the holder’s NIF and name when sending. You can also send nombre and nif with the holder’s NIF, but not id_otro or only one of the two.

In the example, serie is empty and the DUA number goes in numero. The VAT settled by customs goes in detalle_iva: F5 and LC do not accept inversion_sujeto_pasivo, and carry a single regime key (01, 04, 05 or 08).

The four-day deadline counts from the booking in the accounts of the document showing the VAT settled by customs.

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

Importación de mercancías
{
  "ejercicio": "2026",
  "periodo": "12",
  "serie": "",
  "numero": "15ES00418930051657",
  "fecha_expedicion": "01-12-2026",
  "tipo_factura": "F5",
  "clave_regimen": [
    "01"
  ],
  "descripcion": "Importación de mercancías",
  "fecha_registro_contable": "01-12-2026",
  "cuota_deducible": "1522.5",
  "desglose": {
    "detalle_iva": [
      {
        "tipo_impositivo": "21",
        "base_imponible": "7250",
        "cuota_soportada": "1522.5"
      }
    ]
  }
}

Common errors

A nif that is not the holder’s returns vf-sii-recibida_titular_nif, and id_otro returns vf-sii-recibida_titular_id_otro.

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