Corrective invoices (R1–R5) in the SII: API example

In the SII, a corrective invoice is sent with tipo_factura R1 to R5 depending on the reason, tipo_rectificativa (S for replacement or I for differences) and the invoices it corrects in facturas_rectificadas.

FieldValue
APISII API
Invoice type or keyR1–R5
When to use itCorrecting an invoice already issued.

What changes in this case

There are two ways of correcting, each with its example:

  • By replacement (S): the corrective invoice carries the correct amounts and, in importe_rectificativa, the base and tax amount of the corrected invoice.
  • By differences (I): the corrective invoice carries only the difference, positive or negative.

tipo_rectificativa is mandatory in R1 to R5 and only allowed in them. R5 has no counterparty.

Corrective invoice types in the SII
TypeWhen
R1Error based on law and art. 80 One, Two and Six LIVA
R2Art. 80.3 LIVA
R3Art. 80.4 LIVA
R4Other cases
R5Corrective invoice for simplified invoices

Try this case in the test environment

Create your free account and ask soporte@verifacti.com for a SII test NIF; then try these cases with its test API key.

Test environment and test NIF includedRead the documentation