Cancel an invoice in TicketBAI: example
Cancellation is for invoices issued by mistake, not for invoices with errors, which are fixed with a corrective invoice. It is sent to /ticketbai/cancel with the invoice's serie, numero and fecha_expedicion.
| Field | Value |
|---|---|
| API | TicketBAI API |
| Invoice type or key | Endpoint /ticketbai/cancel |
| Endpoint | /ticketbai/cancel |
| When to use it | Invoices issued by mistake. |
What changes in this case
An invoice that should not have been sent is withdrawn with a cancellation that identifies the original invoice by its series, number and issue date. Verifacti sends the cancellation to the relevant foral treasury.
Cancellation does not fix invoices with errors: for that, issue a corrective invoice that refers to the original.
Once an invoice is cancelled, you cannot create another one with the same serie and numero.
JSON requests
Cancellation
{
"serie": "A",
"numero": "1",
"fecha_expedicion": "19-11-2026"
}Cancelling a rejected invoice (Álava and Gipuzkoa)
If the invoice you want to cancel was rejected, add rechazo_previo set to true. It is part of the Zuzendu service and only available in Álava and Gipuzkoa; in Bizkaia the API rejects it.
{
"serie": "A",
"numero": "1",
"fecha_expedicion": "19-11-2026",
"rechazo_previo": true
}Try this case in the test environment
Create your free account and ask soporte@verifacti.com for a TicketBAI test NIF; then copy the request and send it with its test API key.