es__submit_verifactu_to_aeat
Submit a signed VERI*FACTU XML record to the AEAT real-time endpoint using an FNMT-RCM certificate, with confirmation token support and deferred response handling.
Instructions
Envía un registro VERI*FACTU firmado al endpoint en tiempo real de la AEAT mediante MTLS.
Usa el certificado FNMT-RCM. Requiere AEAT_ENV, AEAT_CERTIFICATE_PATH y AEAT_CERTIFICATE_PASSWORD. Si la respuesta trae parsed_response.status == 'deferred' (TiempoEsperaEnvio), espere retry_after_seconds y llame a es__query_verifactu_status para confirmar el EstadoRegistro final antes de encadenar el siguiente registro.
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 |
|---|---|---|---|
| nif | Yes | NIF del remitente. | |
| xml | Yes | Registro VERI*FACTU XML firmado. | |
| confirmation_token | No | Token de la respuesta awaiting_confirmation previa. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||