Es Submit Verifactu To Aeat
es__submit_verifactu_to_aeatSubmits a signed VERI*FACTU XML record to AEAT's real-time endpoint via mTLS using FNMT-RCM certificate. Handles deferred status with retry and confirmation token for human approval.
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.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"xml": "<xml>",
"nif": "<nif>"
},
"name": "es__submit_verifactu_to_aeat"
}
}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 | |||