beliq: Validate E-Invoice
beliq_validate_einvoiceValidate EU electronic invoices from XML or Factur-X/ZUGFeRD PDFs; return validity, detected format/profile, check depth, ruleset versions, and detailed errors/warnings with rule IDs.
Instructions
Validate an EU electronic invoice and report the verdict together with how deep the check went. Accepts an invoice XML document (inline via document, or a file via documentPath), or a Factur-X / ZUGFeRD PDF via documentPath. For a PDF the verdict is about the embedded XML: the PDF itself is not checked, and pdfInput says which embedded file was read. Returns valid, the detected format and profile, the check depth in verificationBadgeLabel, the ruleset versions the check ran, and every error and warning with its rule id, severity, location, and message. valid means the document passed the rule packs and schemas beliq runs for its format, in the versions the result names. It does not mean every recipient, validation tool or tax authority accepts it. Report the check depth beside the verdict, in the words of verificationBadgeLabel. When that field is absent, say the check depth was not stated and name none. When the result carries franceCtcBlockingRuleIds, lead with them: the API reports those French CTC rule ids as ending a transmission through a French platform, also where valid is true. beliq validates the document and does not send it: delivery through beliq is in development. Until it is available, transmission (Peppol, plateforme agréée, SDI) and tax-authority reporting stay with your access point; archiving stays with you, and beliq does not operate KSeF submission.
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": "beliq_validate_einvoice"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| format | No | Source syntax hint. 'auto' (default) detects the format from the document. | |
| document | No | The invoice as XML text. Provide this OR documentPath, not both. | |
| franceCtc | No | Also apply the French CTC rules (BR-FR-CTC) during validation. | |
| documentPath | No | Path to an invoice file on disk: an XML document, or a PDF carrying embedded XML (Factur-X / ZUGFeRD). Provide this OR document. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| valid | Yes | Whether the document passed the rule packs and schemas beliq runs for its format, in the versions this result names. Not a statement that every recipient or tax authority accepts it. | |
| errors | Yes | ||
| format | Yes | ||
| sha256 | No | ||
| livemode | Yes | False for a blq_test_ sandbox key, true for any other key. | |
| pdfInput | No | Present when the document was a PDF: which embedded file the verdict is about. containerChecked is always false, because the PDF itself is not checked. | |
| verified | No | False only when no ruleset ran (generate with verify: false). Then valid says nothing about the document. | |
| warnings | Yes | ||
| errorCount | Yes | ||
| ciusVersion | No | ||
| warningCount | Yes | ||
| peppolVersion | No | ||
| rulesetSha256 | No | ||
| driftCheckedAt | No | ||
| facturxProfile | No | ||
| facturxVersion | No | ||
| rulesetChannel | No | ||
| profileDetected | No | ||
| rulesetFellBack | No | ||
| franceCtcApplied | No | ||
| franceCtcVersion | No | ||
| rulesetArtifacts | No | ||
| rulesetSunsetsOn | No | ||
| verificationTier | No | ||
| schematronVersion | No | ||
| verificationBadge | No | Id of the check depth. Compare this, not the label. | |
| rulesetSupersededOn | No | ||
| romaniaRoCiusVersion | No | ||
| polandKsefFa3XsdBundle | No | ||
| sloveniaEslogXsdBundle | No | ||
| spainFacturaeXsdBundle | No | ||
| verificationBadgeLabel | No | The check depth as English display text. Print it as it is. Absent when the API states no depth for this verdict: then say the check depth was not stated, and name none. | |
| italyFatturapaXsdBundle | No | ||
| franceCtcBlockingRuleIds | No | French CTC rule ids the API reports as ending a transmission through a French platform. Present also where valid is true, and never empty: when present, lead with it. | |
| franceExtendedCtcApplied | No | ||
| netherlandsNlciusVersion | No | ||
| italySdiMessaggiXsdBundle | No | ||
| italySdiMessaggiXsdVersion | No | ||
| polandKsefFa3RuntimeVersion | No | ||
| sloveniaEslogRuntimeVersion | No | ||
| spainFacturaeRuntimeVersion | No | ||
| italyFatturapaRuntimeVersion | No |