Validate your invoice document
validate_invoiceRead-onlyIdempotent
Check a Factur-X PDF, CII XML or UBL XML against EN 16931, and report the fields to fix.
Use when the caller supplies a document, including after corrections; use extract_invoice for business data.
With no document and only a request to try the product, choose view_invoice_demo instead.
Supply one source: nonblank xml overrides document_base64 without inspecting it. To check a PDF's
attachment, omit xml. check adds rules to the detected profile; it cannot change that profile.
Use base for non-French invoices to avoid French-field findings.
Returns validity and findings with rule ids and field pointers for explain_finding. XSD failures
skip schematron; inspect checks_skipped before treating validation as complete. Warnings alone do
not invalidate an invoice. Rule failures or a PDF without XML return valid=false; missing input,
invalid base64, malformed or unrecognized XML return a tool error.
Free without a key (shared daily limit, files up to 5 MB). With an OAuth connection or API key,
completed reports consume one operation even when invalid; tool errors do not.
No invoice is changed, stored or sent.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| xml | No | CII or UBL XML as unencoded text. | |
| check | No | fr-ctc: EN 16931 plus French CTC rules (BR-FR-*). base: EN 16931 only. | fr-ctc |
| document_base64 | No | Standard base64 of a Factur-X PDF, CII XML or UBL XML file; no data-URI prefix. |
Output Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||