Exchange invoice (F3) in Verifactu: replacing simplified invoices

To replace a simplified invoice with a full one there are two options: a credit note plus a full invoice, or a substitute invoice F3 that references the simplified ones in facturas_sustituidas.

FieldValue
APIVerifactu API
Invoice type or keyF3 · facturas_sustituidas
Endpoint/verifactu/create
When to use itReplace a simplified invoice with a full one.

What changes in this case

A common operation consists of converting a simplified invoice into a standard invoice, which is known as an exchange invoice.

Suppose we have sent an invoicing record corresponding to a simplified invoice, that is, one with tipo_factura equal to F2 in which the recipient is not identified.

JSON requests

Descripcion de la operacion
{
  "serie": "SIMPLE",
  "numero": "1",
  "fecha_expedicion": "19-11-2026",
  "tipo_factura": "F2",
  "descripcion": "Descripcion de la operacion",
  "lineas": [
    {
      "base_imponible": "200",
      "tipo_impositivo": "21",
      "cuota_repercutida": "42"
    }
  ],
  "importe_total": "242"
}

If, after issuing this invoice, we need to identify the recipient, we have two options within the Verifactu system, which we show below.

OPTION 1. Credit note + full invoice

The first option requires sending two additional invoicing records, one corresponding to a credit note (negative total amount) and another to issue the standard invoice.

Factura de abono
{
  "serie": "SIMPLE",
  "numero": "2",
  "fecha_expedicion": "19-11-2026",
  "tipo_factura": "F2",
  "descripcion": "Factura de abono",
  "lineas": [
    {
      "base_imponible": "-200",
      "tipo_impositivo": "21",
      "cuota_repercutida": "-42"
    }
  ],
  "importe_total": "-242"
}

Next, a standard invoice is issued with tipo_factura equal to F1.

Descripcion de la operacion: factura normal
{
  "serie": "EJEMPLO",
  "numero": "1",
  "fecha_expedicion": "19-11-2026",
  "tipo_factura": "F1",
  "descripcion": "Descripcion de la operacion: factura normal",
  "nif": "A15022510",
  "nombre": "Nombre destinatario",
  "lineas": [
    {
      "base_imponible": "200",
      "tipo_impositivo": "21",
      "cuota_repercutida": "42"
    }
  ],
  "importe_total": "242"
}

Although this procedure requires sending two additional invoicing records, it has the advantage of being very easy to work with since it is easy to see that the sum total of the three invoicing records adds up to what it should.

OPTION 2. Substitutive invoice (F3)

An alternative way to perform the same operation is to do it in a single step by creating an invoicing record with tipo_factura equal to F3 (replacing simplified invoices). Below is an example of the JSON that should be sent.

As you can see, the series and number of the substitutive invoice are different from the original simplified invoice. Using the field facturas_sustituidas, the invoices being substituted are indicated. In general, this field is an array type since it can reference multiple invoices.

Descripcion de la operacion
{
  "serie": "SUSTITUTIVA",
  "numero": "1",
  "fecha_expedicion": "19-11-2026",
  "tipo_factura": "F3",
  "descripcion": "Descripcion de la operacion",
  "nif": "A15022510",
  "nombre": "Nombre destinatario",
  "lineas": [
    {
      "base_imponible": "200",
      "tipo_impositivo": "21",
      "cuota_repercutida": "42"
    }
  ],
  "facturas_sustituidas": [
    {
      "serie": "SIMPLE",
      "numero": "1",
      "fecha_expedicion": "19-11-2026"
    }
  ],
  "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