Self-billing in Verifactu: invoice issued by the recipient

A self-billed invoice is issued by the customer and sent with emitida_por_tercero_o_destinatario set to D.

FieldValue
APIVerifactu API
Invoice type or keyF1 · emitida_por_tercero_o_destinatario D
Endpoint/verifactu/create
When to use itThe customer issues the invoice (self-billing).

What changes in this case

This is an invoice that is not generated by the supplier, but by the client themselves (the recipient of the service or product). Although the client issues it, the legal responsibility remains with the supplier, whose data must appear on the invoice. Self-billing requires a prior agreement between supplier and customer (Article 5.2 of RD 1619/2012).

To issue an invoice issued by the recipient using our API, you must use the field emitida_por_tercero_o_destinatario with a value equal to D. For example, you can use this JSON:

JSON request

Factura emitida por destinatario
{
  "serie": "Ejemplos",
  "numero": "1",
  "fecha_expedicion": "19-11-2026",
  "tipo_factura": "F1",
  "descripcion": "Factura emitida por destinatario",
  "nif": "A15022510",
  "nombre": "Nombre destinatario",
  "lineas": [
    {
      "base_imponible": "200",
      "tipo_impositivo": "21",
      "cuota_repercutida": "42"
    }
  ],
  "especial": {
    "emitida_por_tercero_o_destinatario": "D"
  },
  "importe_total": "242"
}

Try this case in the test environment

Create your free account, copy the request and send it with the test API key of your test NIF.

Test environment and test NIF includedRead the documentation