API > LROE - Get expenses without invoice
LROE - Get expenses without invoice
GET https://{entorno}.ticketbaiws.eus/lroe-gastos-sinfactura/
NOTE: This method is only valid for BATUZ Bizkaia and for Form 140 taxpayers (individuals carrying out an economic activity and income-attribution entities such as comunidades de bienes and sociedades civiles). It corresponds to section 2.2 of the LROE: expenses that are not documented by an invoice, such as self-employed social security contributions, bank fees or insurance.
Retrieves the expenses without invoice sent to the Batuz LROE. All parameters except ejercicio are optional and can be combined.
GET methods accept the parameters either in the body as a JSON payload or as a query string in the URL.
PARAMETERS
| ejercicio integer required Fiscal year in yyyy format | 2026 |
| fecha_operacion_desde string optional Transaction date from, in dd/mm/yyyy format | 01/07/2026 |
| fecha_operacion_hasta string optional Transaction date to, in dd/mm/yyyy format | 30/09/2026 |
| nif string optional NIF (Spanish tax ID) of the counterparty | B01000017 |
| pais string optional ISO-3166 Alpha-2 country code of the counterparty if it is foreign | ES |
| tipo_documento string optional ID document type of the foreign counterparty (defaults to 02) | 02 |
| epigrafe string optional IAE activity code | 165140 |
| estado string optional Status of the records: Correcto (accepted), AceptadoConErrores (accepted with errors), Anulado (cancelled) | Correcto |
| pagina integer optional Page number of the paginated results (defaults to 1) | 1 |
GET https://{entorno}.ticketbaiws.eus/lroe-gastos-sinfactura/
$ curl --request GET \
--url https://api-test.ticketbaiws.eus/lroe-gastos-sinfactura/ \
--header 'Accept: application/json' \
--header 'Content-Type: application/json' \
--header 'Token: xxx' \
--header 'Nif: 00000014Z' \
--data '
{
"ejercicio": 2026,
"fecha_operacion_desde": "01/07/2026",
"fecha_operacion_hasta": "30/09/2026",
"nif": "B01000017",
"epigrafe": "165140",
"estado": "Correcto",
"pagina": 1
}'
$ composer require ticketbaiws/ticketbaiws-php
<?php
// Installation: composer require ticketbaiws/ticketbaiws-php
require 'vendor/autoload.php';
$tbai = new \TicketbaiWS\Client('xxx', '00000014Z', ['entorno' => 'test']);
$r = $tbai->lroeGastosSinFactura()->consultar([
'ejercicio' => 2026,
'fecha_operacion_desde' => '01/07/2026',
'fecha_operacion_hasta' => '30/09/2026',
'nif' => 'B01000017',
'epigrafe' => '165140',
'estado' => 'Correcto',
'pagina' => 1,
]);
if ($r->isError()) {
echo $r->getMessageText();
} else {
print_r($r->getData());
}
$ python -m pip install requests
import requests
url = "https://api-test.ticketbaiws.eus/lroe-gastos-sinfactura/"
payload = {
"ejercicio": 2026,
"fecha_operacion_desde": "01/07/2026",
"fecha_operacion_hasta": "30/09/2026",
"nif": "B01000017",
"epigrafe": "165140",
"estado": "Correcto",
"pagina": 1
}
headers = {"Accept": "application/json", "Token": "xxx", "Nif": "00000014Z"}
response = requests.request("GET", url, json=payload, headers=headers)
print(response.text)
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "https://api-test.ticketbaiws.eus/lroe-gastos-sinfactura/");
struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "Accept: application/json");
headers = curl_slist_append(headers, "Content-Type: application/json");
headers = curl_slist_append(headers, "Token: xxx");
headers = curl_slist_append(headers, "Nif: 00000014Z");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);
curl_easy_setopt(hnd, CURLOPT_POSTFIELDS, R"({"ejercicio":2026,"fecha_operacion_desde":"01/07/2026","fecha_operacion_hasta":"30/09/2026","nif":"B01000017","epigrafe":"165140","estado":"Correcto","pagina":1})");
CURLcode ret = curl_easy_perform(hnd);
OkHttpClient client = new OkHttpClient();
MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\"ejercicio\":2026,\"fecha_operacion_desde\":\"01/07/2026\",\"fecha_operacion_hasta\":\"30/09/2026\",\"nif\":\"B01000017\",\"epigrafe\":\"165140\",\"estado\":\"Correcto\",\"pagina\":1}");
Request request = new Request.Builder()
.url("https://api-test.ticketbaiws.eus/lroe-gastos-sinfactura/")
.method("GET", body)
.addHeader("Accept", "application/json")
.addHeader("Token", "xxx")
.addHeader("Nif", "00000014Z")
.build();
Response response = client.newCall(request).execute();
{ } Response JSON
HTTP/1.1 200 OK
{
"result": "OK",
"return": {
"response": [
{
"fecha_operacion": "30/09/2026",
"epigrafe": "165140",
"concepto": "626",
"linea": 1,
"importe": 12.5,
"nif": "B01000017",
"nombre_social": "Banco de ejemplo S.A.",
"estado": "Correcto",
"fecha_presentacion": "01/10/2026"
}
]
},
"msg": ""
}
TicketBAI / Verifactu methods
- POST New invoice / resubmission (zuzendu) TicketBAI / Verifactu
- POST Complete a simplified invoice
- GET Get a TicketBAI / Verifactu invoice
- GET List TicketBAI / Verifactu invoices
- GET Download TicketBAI / Verifactu XML
- GET Download invoice in FacturaE format
- GET Download invoice as PDF
- GET System status
- DEL Cancel a TicketBAI / Verifactu invoice
- PUT Force TicketBAI / Verifactu resend
- POST Validate a NIF with the AEAT
- POST Validate a VAT number in VIES
Representation document
- GET Representation document - Download template
- POST Representation document - Upload document
- GET Representation document - Download uploaded document
- DELETE Representation document - Revoke uploaded document
BATUZ BIZKAIA specific methods
- GET List IAE activity codes
- POST LROE - Received invoices - Submit (BATUZ)
- PUT LROE - Received invoices - Update (BATUZ)
- GET LROE - Received invoices - Query (BATUZ)
- DEL LROE - Received invoices - Cancel (BATUZ)
- POST LROE - Expenses without invoice - Submit (BATUZ, form 140)
- PUT LROE - Expenses without invoice - Update (BATUZ, form 140)
- GET LROE - Expenses without invoice - Query (BATUZ, form 140)
- DEL LROE - Expenses without invoice - Cancel (BATUZ, form 140)
- POST LROE - Cash accounting COLLECTIONS - Submit (BATUZ)
- PUT LROE - Cash accounting COLLECTIONS - Update (BATUZ)
- GET LROE - Cash accounting COLLECTIONS - Query (BATUZ)
- DEL LROE - Cash accounting COLLECTIONS - Cancel (BATUZ)
- POST LROE - Cash accounting PAYMENTS - Submit (BATUZ)
- PUT LROE - Cash accounting PAYMENTS - Update (BATUZ)
- GET LROE - Cash accounting PAYMENTS - Query (BATUZ)
- DEL LROE - Cash accounting PAYMENTS - Cancel (BATUZ)
SII (AEAT)
Customers and products (invoicing tool)
- GET Customers - Search / get customers
- POST Customers - New customer
- PUT Customers - Update customer
- GET Products - Search / get products
