Corrective invoice by substitution in TicketBAI

A corrective invoice by substitution replaces the original with the correct amounts: rectificativa.tipo S, and in base_rectificada and cuota_rectificada the base and tax amount of the replaced invoice.

FieldValue
APITicketBAI API
Invoice type or keyrectificativa.tipo S
Endpoint/ticketbai/create
When to use itReplacing an invoice with another one with the correct amounts.

What changes in this case

Take an invoice with a €1,000 base at 21% (€1,210 in total) that needs a €200 reduction in the base. The corrective invoice by substitution carries the final amounts (€800 base and €168 tax) and, in base_rectificada and cuota_rectificada, those of the invoice it replaces (€1,000 and €210).

The original invoice goes in rectificadas_sustituidas. If there was an equivalence surcharge, its amount goes in rectificativa.cuota_recargo.

JSON requests

Original invoice

Factura original
{
  "serie": "A",
  "numero": "1",
  "fecha_expedicion": "19-11-2026",
  "descripcion": "Factura original",
  "nif": "A15022510",
  "nombre": "Nombre destinatario",
  "cp": "48001",
  "direccion": "Calle Ejemplo 1, Bilbao",
  "lineas": [
    {
      "descripcion": "Servicio de consultoría",
      "cantidad": "1",
      "importe_unitario": "1000.00",
      "importe_total": "1210.00"
    }
  ],
  "desglose_iva": [
    {
      "base_imponible": "1000.00",
      "tipo_impositivo": "21",
      "cuota_impuesto": "210.00"
    }
  ],
  "importe_total": "1210.00"
}

Corrective invoice by substitution

Rectificación por sustitución
{
  "serie": "R",
  "numero": "1",
  "fecha_expedicion": "19-11-2026",
  "descripcion": "Rectificación por sustitución",
  "nif": "A15022510",
  "nombre": "Nombre destinatario",
  "cp": "48001",
  "direccion": "Calle Ejemplo 1, Bilbao",
  "rectificativa": {
    "codigo": "R1",
    "tipo": "S",
    "base_rectificada": "1000.00",
    "cuota_rectificada": "210.00"
  },
  "rectificadas_sustituidas": [
    {
      "serie": "A",
      "numero": "1",
      "fecha_expedicion": "19-11-2026"
    }
  ],
  "lineas": [
    {
      "descripcion": "Servicio de consultoría",
      "cantidad": "1",
      "importe_unitario": "800.00",
      "importe_total": "968.00"
    }
  ],
  "desglose_iva": [
    {
      "base_imponible": "800.00",
      "tipo_impositivo": "21",
      "cuota_impuesto": "168.00"
    }
  ],
  "importe_total": "968.00"
}

Try this case in the test environment

Create your free account and ask soporte@verifacti.com for a TicketBAI test NIF; then copy the request and send it with its test API key.

Test environment and test NIF includedRead the documentation