Check an e-invoice
validate_invoiceCheck an e-invoice against EN 16931 and German rules.
Input: invoice_base64 is the base64 of an XML invoice (UBL or CII) or a
ZUGFeRD / Factur-X PDF, at most 4 MB decoded; or pass the file as a download
link in file. explain=true adds an explanation to findings whose rule
has one, in lang ("de" or "en").
valid is the result. For XRechnung the KoSIT validator decides. If it is
unreachable, invowerk's own check with the same rules decides,
verdict_source is "local" and official_degraded is true.
disagreement is true when both ran and differ. findings lists each
problem with rule_id, severity and message; pass the codes to
explain_errors (free). pdfa_verdict is the PDF/A check of a PDF.
hints never change valid. Unreadable input returns a finding, not an
error.
Credits: 1 per call.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file | No | The file as a download link, instead of `invoice_base64`. In ChatGPT, pass the user's uploaded file here. Other clients can set `download_url` to a public https URL. | |
| lang | No | Language of the explanations: "de" (default) or "en". | de |
| explain | No | true adds an explanation to each finding whose rule has one. | |
| invoice_base64 | No | The invoice file, base64-encoded. At most 4 MB decoded. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||