Validate an e-invoice
validate_einvoiceValidate an e-invoice (XRechnung UBL/CII, ZUGFeRD / Factur-X PDF, Peppol BIS Billing 3.0, EN 16931) with the official KoSIT validator. Returns valid/invalid, the detected format, every error and warning with its rule code, and the exact corrected value for common calculation errors. Pass the XML as text in xml, or a PDF/XML file base64-encoded in file_base64. Max 5 MB.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "validate_einvoice"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| xml | No | The invoice XML (UBL or CII) as text. | |
| france | No | Also check the French rules (BR-FR, XP Z12-012), reported as a separate `france` block. Automatic when the seller country is FR. | |
| file_base64 | No | Alternative: the file (ZUGFeRD/Factur-X PDF or XML), base64-encoded. |