## 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](https://ticketbaiws.eus/en/lroe-recibidas-post/).

The format is the same as [lroe-recibidas](https://ticketbaiws.eus/en/lroe-recibidas-post/). 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](https://ticketbaiws.eus/en/empresas-put/)). 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](https://ticketbaiws.eus/en/sii-envios-get/)) 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. Ejemplo: `false`
- `fecha` (string, required): Invoice date (dd/mm/yyyy) Ejemplo: `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. Ejemplo: `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) Ejemplo: `B01000012`
- `serie / num_factura` (string, num_factura required): Series and number of the supplier invoice. Ejemplo: `A / 2026-0715`
- `importe_total` (number, required): Invoice total. Ejemplo: `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) Ejemplo: `100`
- `simplificada / importacion / inversion_sujeto_pasivo` (boolean, optional): Simplified invoice (F2), import (F5) or reverse charge. Ejemplo: `false`
- `regimen_iva` (string, optional): VAT regime key (01 by default; 09 for intra-EU acquisitions; 13 for imports) Ejemplo: `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**. Ejemplo: `false`
- `deducir_en_periodo` (string, optional): If you deduct the VAT in a later period (yyyy-mm) Ejemplo: `2026-12`

**RESPONSE (return, one row per invoice)**

- `serie, num_factura, nif` (, Invoice it refers to)
- `result` (string, **OK**  queued or **ERROR**  (see **errores** )) Ejemplo: `OK`
- `id` (integer, Submission ID, to check it with GET) Ejemplo: `845`
- `operacion` (string, alta (new), modificacion (modification) or baja (deletion)) Ejemplo: `alta`
- `estado / csv` (string, Only with sincrono: status at the tax authority and CSV) Ejemplo: `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.

**POST** `https://{entorno}.ticketbaiws.eus/sii-recibidas/`

```bash
$ 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 }
            ]
        }
    ]
}'
```

Respuesta:

```json
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
}
```

Fuente: https://ticketbaiws.eus/en/sii-recibidas-post/
