Corrective invoice by difference in Verifactu
A corrective invoice by difference is always done in one step, with tipo_rectificativa I and the amount of the difference.
| Field | Value |
|---|---|
| API | Verifactu API |
| Invoice type or key | R1–R5 · tipo_rectificativa I |
| Endpoint | /verifactu/create |
| When to use it | Correct only the difference, in one step. |
What changes in this case
A corrective invoice by difference corrects errors in an original invoice by adjusting the amount through addition or subtraction. It can be positive (if undercharged) or negative (if overcharged). It is mainly used for errors in VAT or in the taxable base. You can choose substitution or difference with any of the types R1 to R5.
Unlike corrective invoices by substitution, corrective invoices by difference are always done in a single step and the amount of the correction must be reported directly.
Below we show several examples of corrective invoices by difference.
JSON requests
EXAMPLE 1: Change of the taxable base
Suppose a standard invoice is issued with a taxable base of €1,000 and a tax rate of 21%, with a transaction date of 01-04-2025. That is, using the Verifactu API, the invoice is registered with the following JSON:
{
"serie": "A",
"numero": "1",
"fecha_expedicion": "19-11-2026",
"fecha_operacion": "01-04-2025",
"tipo_factura": "F1",
"descripcion": "Factura original",
"nif": "A15022510",
"nombre": "Nombre destinatario",
"lineas": [
{
"base_imponible": "1000",
"tipo_impositivo": "21",
"cuota_repercutida": "210"
}
],
"importe_total": "1210"
}After issuing this invoice, a correction is desired consisting of a decrease of the taxable base of €500 (for example, a discount granted after the sale: Article 80.Two of the VAT Law, R1). The modification by difference would involve issuing a single additional invoice with a taxable base of -€500.
{
"serie": "RECTIFICATIVA",
"numero": "5",
"fecha_expedicion": "19-11-2026",
"tipo_factura": "R1",
"tipo_rectificativa": "I",
"descripcion": "Descripcion de la operacion: rectificacion por diferencias",
"nif": "A15022510",
"nombre": "Nombre destinatario",
"lineas": [
{
"base_imponible": "-500",
"tipo_impositivo": "21",
"cuota_repercutida": "-105"
}
],
"importe_total": "-605",
"facturas_rectificadas": [
{
"serie": "A",
"numero": "1",
"fecha_expedicion": "19-11-2026"
}
]
}EXAMPLE 2: Decrease of the taxable base due to non-payment
Suppose a standard invoice is issued with a taxable base of €1,000 and a tax rate of 21%, with a transaction date of 01-04-2025. That is, using the Verifactu API, the invoice is registered with the following JSON:
{
"serie": "A",
"numero": "1",
"fecha_expedicion": "19-11-2026",
"fecha_operacion": "01-04-2025",
"tipo_factura": "F1",
"descripcion": "Factura original",
"nif": "A15022510",
"nombre": "Nombre destinatario",
"lineas": [
{
"base_imponible": "1000",
"tipo_impositivo": "21",
"cuota_repercutida": "210"
}
],
"importe_total": "1210"
}After issuing this invoice, a correction is desired due to non-payment, eliminating the entirety of the output tax, with an R3 corrective invoice (bad debt, Article 80.Four). The modification by difference would involve issuing a single additional invoice with a taxable base of €0 and output tax of -€210.
{
"serie": "RECTIFICATIVA",
"numero": "6",
"fecha_expedicion": "19-11-2026",
"tipo_factura": "R3",
"tipo_rectificativa": "I",
"descripcion": "Descripcion de la operacion: rectificacion por diferencias impago",
"nif": "A15022510",
"nombre": "Nombre destinatario",
"lineas": [
{
"base_imponible": "0",
"tipo_impositivo": "21",
"cuota_repercutida": "-210"
}
],
"importe_total": "-210",
"facturas_rectificadas": [
{
"serie": "A",
"numero": "1",
"fecha_expedicion": "19-11-2026"
}
]
}Related cases
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.