Corrective invoices in TicketBAI (R1–R5)
A corrective invoice corrects an earlier invoice. In the TicketBAI API it is sent to /ticketbai/create with the rectificativa object (codigo from R1 to R5 and tipo S or I) and the corrected invoices in rectificadas_sustituidas.
| Field | Value |
|---|---|
| API | TicketBAI API |
| Invoice type or key | rectificativa.codigo R1–R5 |
| When to use it | Correcting errors or changing amounts of invoices already issued. |
What changes in this case
A corrective invoice is a new invoice, with its own series and number, that refers to the invoice it corrects. In the TicketBAI API it carries:
rectificativa.codigo: the reason, fromR1toR5(table below).rectificativa.tipo:Sby substitution (the corrective invoice replaces the original) orIby differences (it carries only the difference).rectificadas_sustituidas: series, number and issue date of the invoices being corrected (up to 100).
Except with R5, the corrective invoice must identify the recipient (nif or id_otro, and nombre). In all of them, serie cannot be empty.
| Code | When to use it |
|---|---|
R1 | Error founded in law and article 80 One, Two and Six of the Foral VAT Rule. |
R2 | Article 80 Three of the Foral VAT Rule. |
R3 | Article 80 Four of the Foral VAT Rule. |
R4 | Other cases. |
R5 | Corrective invoice for simplified invoices. |
Each type has its own example: corrective invoice by substitution and corrective invoice by differences.
Related cases
Try this case in the test environment
Create your free account and ask soporte@verifacti.com for a TicketBAI test NIF; then try these cases with its test API key.