validate_einvoice
Validate EU electronic invoices against official Schematron rules. Returns validity status, rule IDs, plain-English explanations, and suggested fixes for violations.
Instructions
Validate an EU electronic invoice against the official Schematron rules (Peppol BIS 3.0, EN 16931 UBL/CII, XRechnung 3.0.x, Factur-X/ZUGFeRD, UBL, CII). Returns whether it is valid and, for each violation, the rule id, a plain-English explanation and a suggested fix. Use this before a developer ships or transmits an invoice so a rejection (an SdI scarto, a Chorus Pro refusal, a KSeF error) is caught early. Requires EINVOICE_API_KEY (a free key from https://eleata.io/signup/).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| format | No | Format hint. Default: auto (the server sniffs XML vs PDF and the profile). | auto |
| is_pdf | No | Set true if `content` is a base64-encoded PDF (Factur-X/ZUGFeRD). Default false. | |
| content | Yes | The invoice to validate. For XML formats, the raw XML text. For a Factur-X / ZUGFeRD PDF, the base64-encoded PDF bytes (set is_pdf=true). |