validate_invoice
Use before uploading an e-Factura to ANAF SPV or sending a Peppol invoice, once the free quota of validate_invoice_free is used up (same report). Every rule violation with a plain-English fix, the UBL path of the field and, for amount errors, the correct value. Paid: $0.01 USDC per call via x402 (network eip155:8453, payment in the request _meta); without a payment it returns the payment requirements. Only real invoices are charged. If the report has 'autofix', fix_invoice can repair those errors.
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 |