fix_invoice
Use when a validation report lists 'autofix' rules, or ANAF rejected an invoice for codes, dates or totals, and you want the corrected XML instead of editing it yourself: fixes county/sector/country/currency/unit codes, date formats, VAT-id prefixes, decimals, totals and VAT recomputed from the lines. Lists every change (field, old, new) and re-validates the result. Paid: $0.05 USDC via x402, charged only if something was fixed. Review the changes before sending the invoice.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| xml | Yes | The UBL 2.1 Invoice or CreditNote XML document, as text | |
| profile | No | Rule set; 'auto' reads it from the invoice's CustomizationID | auto |