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.
| Field | Value |
|---|---|
| API | SII API |
| Invoice type or key | R1–R5 |
| When to use it | Correcting 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, inimporte_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.
| Type | When |
|---|---|
R1 | Error based on law and art. 80 One, Two and Six LIVA |
R2 | Art. 80.3 LIVA |
R3 | Art. 80.4 LIVA |
R4 | Other cases |
R5 | Corrective invoice for simplified invoices |
Related cases
By replacementThe corrective invoice fully replaces the original one.By replacementBy differencesOnly the difference in amounts is corrected.By differencesCredit noteA new invoice with a negative amount that does not correct another invoice. Returns and later discounts on an invoice already issued go in an
R1 corrective invoice.Credit noteModificationCorrecting an invoice that is Correcto, Aceptado con errores or Duplicado.ModificationTry 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.