Invoice issued by third parties or by the recipient in the SII: API example
If the invoice is issued by a third party or by the customer (self-billing), it is flagged with especial.emitida_por_tercero_o_destinatario set to S.
| Field | Value |
|---|---|
| API | SII API |
| Invoice type or key | especial.emitida_por_tercero_o_destinatario S |
| Endpoint | /sii/create |
| When to use it | Third-party invoicing or self-billing. |
What changes in this case
The rest of the invoice is the same as a full one. emitida_por_tercero_o_destinatario cannot be S together with facturacion_mercado_organizado_gas.
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 emitida por terceros
{
"ejercicio": "2026",
"periodo": "11",
"serie": "A",
"numero": "1",
"fecha_expedicion": "19-11-2026",
"tipo_factura": "F1",
"clave_regimen": [
"01"
],
"descripcion": "Factura emitida por terceros",
"nombre": "Nombre cliente",
"nif": "A15022510",
"desglose": {
"no_exenta": {
"tipo_no_exenta": "S1",
"detalle_iva": [
{
"tipo_impositivo": "21",
"base_imponible": "200",
"cuota_repercutida": "42"
}
]
}
},
"especial": {
"emitida_por_tercero_o_destinatario": "S"
},
"importe_total": "242"
}Common errors
In the SII the field takes S or N. T and D are the Verifactu values, and here the API rejects them with vf-sii-emitida_por_valor_verifactu.
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.