## LROE - Cancel received invoices

`DEL`  https://{entorno}.ticketbaiws.eus/lroe-recibidas/

**IMPORTANT: This method is only valid for BATUZ Bizkaia.**  Lets you cancel received invoices (purchases) that were previously sent to the Batuz LROE

**PARAMETERS**

- `ejercicio` (integer, required): Fiscal year of the batch of received invoices, in yyyy format. Ejemplo: `2023`
- `facturas` (object array, required (max 1000) records)
  - `nif` (string, required): NIF (Spanish tax ID) of the invoice issuer. Ejemplo: `B01000012`
  - `pais` (string, optional): Two-letter country code of the invoice issuer if the supplier's tax ID is foreign (ISO-3166 Alpha-2 code format) Ejemplo: `ES`
  - `num_factura` (string, required): Invoice number. Ejemplo: `2023715273`

**DEL** `https://{entorno}.ticketbaiws.eus/lroe-recibidas/`

```bash
$ curl --request DELETE \
     --url https://api-test.ticketbaiws.eus/lroe-recibidas/ \
     --header 'Accept: application/json' \
     --header 'Content-Type: application/json' \
     --header 'Token: xxx' \
     --header 'Nif: 00000014Z'
	 --data '
{
    "ejercicio": 2023,
    "facturas":[
        {
            "nif": "B01000012",
            "num_factura": "2023715273",
        }
    ]
}'
```

Respuesta:

```json
HTTP/1.1 200 OK
{
    "result": "OK",
    "return": {
        "response": [
            {
                "fecha": "02-09-2023",
                "num_factura": "2023/3/075",
                "estado": "Correcto",
                "nif": "B01489350"
            },
            {
                "fecha": "02-09-2023",
                "num_factura": "2023/3/076",
                "estado": "Correcto",
                "nif": "B01489350"
            }
        ],
        "status": "OK"
    },
    "msg": null
}
```

Fuente: https://ticketbaiws.eus/en/lroe-recibidas-del/
