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.

FieldValue
APITicketBAI API
Invoice type or keyrectificativa.codigo R1–R5
When to use itCorrecting 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, from R1 to R5 (table below).
  • rectificativa.tipo: S by substitution (the corrective invoice replaces the original) or I by 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.

Corrective invoice codes in the TicketBAI API
CodeWhen to use it
R1Error founded in law and article 80 One, Two and Six of the Foral VAT Rule.
R2Article 80 Three of the Foral VAT Rule.
R3Article 80 Four of the Foral VAT Rule.
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 TicketBAI test NIF; then try these cases with its test API key.

Test environment and test NIF includedRead the documentation