Validate e-invoice
validate_invoiceCheck whether an existing e-invoice (Factur-X PDF, CII or UBL XML) is compliant, and report why not.
Use on any document you did not produce with generate_invoice (supplier invoices, files from another
system) or to re-check after a fix. Do not use to read the invoice content: call extract_invoice.
Runs XSD then the EN 16931 schematron (plus French rules for fr-ctc). Read-only, nothing stored.
Returns {valid, profile, findings[]} where each finding has the rule id (e.g. BR-CO-10), severity and
message; a non-compliant document is a normal result, not an error.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| xml | No | CII or UBL XML as plain text; alternative to document_base64, give exactly one | |
| check | No | fr-ctc (default): EN 16931 + French CTC rules (BR-FR-*). base: EN 16931 only. | fr-ctc |
| document_base64 | No | Factur-X PDF (the embedded XML is read) or a CII/UBL XML file, base64 encoded |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||