Correct and resend Veri*factu record (subsanación)
resubmit_invoice_aeatFor an invoice whose Verifactu record the AEAT rejected or accepted with errors: sends a new correction record (Alta de subsanación, new link in the Verifactu chain) with the customer's CURRENT data. The invoice itself (number, date, amounts) does not change, so first fix what the AEAT flagged on the customer (update_customer), then call this. Per AEAT rules a subsanación is not possible when the cause requires a corrective invoice (rectify_invoice). Ask the user for explicit confirmation, then call with confirm=true. Returns the AEAT response status and message for the new subsanación record.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| confirm | Yes | Must be true. Only after the user explicitly confirmed. | |
| invoice_id | Yes |