Re-submit VeriFactu Submission
verifactu_resubmitResubmit a failed VeriFactu invoice to AEAT. Idempotent with same hash chain; requires confirm=true. Only for invoices with status 'failed'.
Instructions
TRUST AREA — COMPLIANCE. Re-submit a failed or rejected VeriFactu submission to AEAT. Idempotent: uses the same hash chain; AEAT deduplicates by hash. Creates an audit trail entry for every resubmission attempt. Requires confirm=true. Only use on invoices with status='failed'. / AREA DE CONFIANZA — COMPLIANCE. Reenvio de una factura VeriFactu fallida a AEAT. Idempotente: misma cadena hash. Registra entrada de auditoria en cada intento. Requiere confirm=true. Solo para facturas con status='failed'.
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": {
"invoiceId": "<invoiceId>",
"confirm": "<confirm>"
},
"name": "verifactu_resubmit"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| confirm | Yes | Must be true to confirm VeriFactu resubmission / Debe ser true para confirmar el reenvio | |
| invoiceId | Yes | Invoice ID to resubmit / ID de la factura a reenviar |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| csv | No | ||
| hash | No | ||
| qrUrl | No | ||
| status | No | ||
| sandbox | No | ||
| accepted | No | ||
| invoiceId | Yes | ||
| lastError | No | ||
| retryCount | No | ||
| submittedAt | No | ||
| aeatResponse | No | ||
| lastSubmissionAt | No |