Validate invoice
validate_invoiceValidation only: which rule sets were applied (XSD, EN 16931, XRechnung, Peppol, arithmetic), the errors and warnings with fix hints, and the invoice header. Cheaper to read than read_invoice when you only need a verdict.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| lang | No | Language of the fix hints and rendering labels: en, de, pl, it or fr. | en |
| path | No | Local file path instead of file_base64; only honoured when the server runs over stdio on the same machine. | |
| file_base64 | No | The invoice file, base64-encoded: XML (UBL, CII, XRechnung, Peppol, FatturaPA, KSeF FA(3)) or a ZUGFeRD/Factur-X hybrid PDF. Up to 25 MB decoded. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | Yes | ||
| error | No | ||
| source | No | ||
| document | No | Invoice header: id, issue_date, currency, due_date … | |
| validation | No |