es__submit_sii_batch
Submit a batch of up to 10,000 invoices to the AEAT SII SOAP service for Spanish tax reporting. Includes a confirmation step to review and approve the batch before sending.
Instructions
Envía un lote de facturas (máximo 10.000 registros) al endpoint SOAP SII de la AEAT.
Requiere AEAT_ENV, AEAT_CERTIFICATE_PATH y AEAT_CERTIFICATE_PASSWORD (MTLS).
HUMAN-IN-THE-LOOP: llame sin confirmation_token para recibir un resumen de confirmación y un token; muéstrelo al usuario y vuelva a llamar con confirmation_token para ejecutar el envío real.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| records | Yes | Lista de SOAP envelopes XML de es__build_sii_invoice_record. | |
| fiscal_year | Yes | Ejercicio fiscal (YYYY). | |
| record_type | Yes | 'issued' o 'received'. | |
| confirmation_token | No | Token de la respuesta awaiting_confirmation previa. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||