SII - Received invoices
POST https://{entorno}.ticketbaiws.eus/sii-recibidas/
Send the invoices you receive from your suppliers to the SII received invoices book (SII: Immediate Supply of Information). Depending on where your company pays tax, they go to the SII of the AEAT (Spanish Tax Agency), of Gipuzkoa or of Araba. In Araba and Gipuzkoa this is all you have to send to the SII, because issued invoices are already reported through TicketBAI. It is not used in Bizkaia: received invoices go to the LROE with lroe-recibidas.
The format is the same as lroe-recibidas. If you send again an invoice that is already in the SII, it is sent as a modification. Only available to companies with the SII enabled (sii parameter of Edit company details). In Araba the company must first register Berein as its representative (level 2.D) in the Diputación's e-office.
Invoices are sent within a few minutes; with sincrono they are sent in the same call. Check the result with GET /sii-recibidas/ (same filters as GET sii-envios) and with the sii_envio webhook.
PARAMETERS (each item of facturas)
| facturas array required List of 1 to 1,000 invoices | |
| sincrono boolean optional true: sent to the tax authority in the same call | false |
| fecha string required Invoice date (dd/mm/yyyy) | 20/11/2026 |
| fecha_registro_contable string optional Date you record it in your accounts (dd/mm/yyyy). Sets the period and the 4-working-day deadline. Defaults to the sending date | 24/11/2026 |
| nombre_social / nif string required Supplier. If foreign, add pais (ISO code) and, if it is not an EU VAT number, tipo_documento (03 to 07) | B01000012 |
| serie / num_factura string num_factura required Series and number of the supplier invoice | A / 2026-0715 |
| importe_total number required Invoice total | 121.00 |
| bases array required Up to 12 VAT lines: base_imponible, tipo_iva, tipo_req (equivalence surcharge), cuota_soportada and cuota_deducible (calculated if not given), tipo (gasto, compras or inversion) | |
| prorrata number optional Deductible percentage when cuota_deducible is not given (100 by default) | 100 |
| simplificada / importacion / inversion_sujeto_pasivo boolean optional Simplified invoice (F2), import (F5) or reverse charge | false |
| regimen_iva string optional VAT regime key (01 by default; 09 for intra-EU acquisitions; 13 for imports) | 01 |
| rectificativa boolean optional Corrective invoice, with num_factura_rectificada, fecha_rectificada, clave_rectificativa (R1 to R5), tipo_rectificativa (S or I) and, if S, base_rectificada and cuota_rectificada | false |
| deducir_en_periodo string optional If you deduct the VAT in a later period (yyyy-mm) | 2026-12 |
RESPONSE (return, one row per invoice)
| serie, num_factura, nif Invoice it refers to | |
| result string OK queued or ERROR (see errores) | OK |
| id integer Submission ID, to check it with GET | 845 |
| operacion string alta (new), modificacion (modification) or baja (deletion) | alta |
| estado / csv string Only with sincrono: status at the tax authority and CSV | CORRECTO |
| errores / avisos array Errors (codigo and descripcion) and warnings |
DELETE: DEL /sii-recibidas/ with facturas: nif (and pais), serie, num_factura and fecha of each one.
QUERY: GET /sii-recibidas/ with the filters id, serie, numero, factura, nif_emisor, estado, desde, hasta and limite.
$ curl --request POST \
--url 'https://api-test.ticketbaiws.eus/sii-recibidas/' \
--header 'Accept: application/json' \
--header 'Content-Type: application/json' \
--header 'Token: xxx' \
--header 'Nif: 00000014Z' \
--data '{
"sincrono": false,
"facturas": [
{
"fecha": "20/11/2026",
"fecha_registro_contable": "24/11/2026",
"nombre_social": "Proveedor de ejemplo S.L.",
"nif": "B01000012",
"serie": "A",
"num_factura": "2026-0715",
"descripcion": "Material de oficina",
"importe_total": 121.00,
"bases": [
{ "base_imponible": 100.00, "tipo_iva": 21.00 }
]
}
]
}'
<?php
$factura = [
"fecha" => "20/11/2026",
"fecha_registro_contable" => "24/11/2026",
"nombre_social" => "Proveedor de ejemplo S.L.",
"nif" => "B01000012",
"serie" => "A",
"num_factura" => "2026-0715",
"descripcion" => "Material de oficina",
"importe_total" => 121.00,
"bases" => [["base_imponible" => 100.00, "tipo_iva" => 21.00]],
];
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api-test.ticketbaiws.eus/sii-recibidas/",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode(["facturas" => [$factura]]),
CURLOPT_HTTPHEADER => ["Accept: application/json", "Content-Type: application/json", "Token: xxx", "Nif: 00000014Z"],
]);
$respuesta = json_decode(curl_exec($curl), true);
curl_close($curl);
print_r($respuesta["return"]);
$ python -m pip install requests
import requests
factura = {
"fecha": "20/11/2026", "fecha_registro_contable": "24/11/2026",
"nombre_social": "Proveedor de ejemplo S.L.", "nif": "B01000012",
"serie": "A", "num_factura": "2026-0715", "descripcion": "Material de oficina",
"importe_total": 121.00, "bases": [{"base_imponible": 100.00, "tipo_iva": 21.00}],
}
url = "https://api-test.ticketbaiws.eus/sii-recibidas/"
headers = {"Accept": "application/json", "Token": "xxx", "Nif": "00000014Z"}
response = requests.post(url, json={"facturas": [factura]}, headers=headers)
print(response.text)
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "https://api-test.ticketbaiws.eus/sii-recibidas/");
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, "{\"facturas\":[{\"fecha\":\"20/11/2026\",\"nombre_social\":\"Proveedor de ejemplo S.L.\",\"nif\":\"B01000012\",\"serie\":\"A\",\"num_factura\":\"2026-0715\",\"importe_total\":121.00,\"bases\":[{\"base_imponible\":100.00,\"tipo_iva\":21.00}]}]}");
CURLcode ret = curl_easy_perform(hnd);
OkHttpClient client = new OkHttpClient();
MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\"facturas\":[{\"fecha\":\"20/11/2026\",\"nombre_social\":\"Proveedor de ejemplo S.L.\",\"nif\":\"B01000012\",\"serie\":\"A\",\"num_factura\":\"2026-0715\",\"importe_total\":121.00,\"bases\":[{\"base_imponible\":100.00,\"tipo_iva\":21.00}]}]}");
Request request = new Request.Builder()
.url("https://api-test.ticketbaiws.eus/sii-recibidas/")
.post(body)
.addHeader("Accept", "application/json")
.addHeader("Content-Type", "application/json")
.addHeader("Token", "xxx")
.addHeader("Nif", "00000014Z")
.build();
Response response = client.newCall(request).execute();
HTTP/1.1 200 OK
{
"result": "OK",
"return": [
{
"serie": "A",
"num_factura": "2026-0715",
"nif": "B01000012",
"result": "OK",
"id": 845,
"operacion": "alta",
"errores": [],
"avisos": []
}
],
"msg": null
}
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
