## Cancel TicketBAI invoice

`DEL`  https://{entorno}.ticketbaiws.eus/tbai/

This method cancels a TicketBAI invoice sent by mistake, BUT no other invoice can be sent with the same number afterwards. See the [Batuz FAQ here](https://www.batuz.eus/es/preguntas-frecuentes?p_p_id=net_bizkaia_iybzwpfc_IYBZWPFCPortlet&p_p_lifecycle=2&p_p_state=normal&p_p_mode=view&p_p_resource_id=%2Fdescargar%2FpregFrec&p_p_cacheability=cacheLevelPage)

**PARAMETERS**

- `serie` (string, required): Invoice series. Ejemplo: `A`
- `numero` (string, required): Invoice number. Ejemplo: `2021000123`
- `fecha` (string, optional): Issue date of the invoice to cancel. If no date is provided, the most recently issued invoice with that series and number is used. Ejemplo: `25/01/2026`

**DEL** `https://{entorno}.ticketbaiws.eus/tbai/`

```bash
$ curl --request DELETE \
     --url https://api-test.ticketbaiws.eus/tbai/ \
     --header 'Accept: application/json' \
     --header 'Content-Type: application/json' \
     --header 'Token: xxx' \
     --header 'Nif: 00000014Z'
	 --data '{"serie":"A","numero":"2021000123"}'
```

Respuesta:

```json
HTTP/1.1 200 OK
{
	"result": "OK",
	"return": {},
	"msg": "TicketBAI anulado"
}
```

Fuente: https://ticketbaiws.eus/en/ticketbai-del/
