beliq: Generate E-Invoice
beliq_generate_einvoiceGenerates an EU electronic invoice from EN 16931 data in XRechnung, ZUGFeRD, Factur-X, Peppol BIS and other standards, validating it before returning XML or PDF.
Instructions
Generate an EU electronic invoice from an EN 16931 invoice object. Set standard to the target format and pass the invoice fields. Use only invoice data the user gave. When a field the target format requires is missing, ask the user for it: do not make up a value so that validation passes. output 'xml' (default) returns the document inline; 'pdf' needs outputPath to write it to, and is a hybrid PDF/A-3 with the XML embedded for facturx and zugferd, or a visualization with no embedded XML for xrechnung and peppol-bis (whose legal document stays the XML). By default the API validates the document before returning it (verify), and a document that fails comes back as an error that lists the failed rules. validationResult carries the verdict, with the check depth of that validation in verificationBadgeLabel. beliq produces 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
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"standard": "<standard>",
"invoice": "<invoice>"
},
"name": "beliq_generate_einvoice"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| output | No | 'xml' (default) returns the document inline. 'pdf' needs outputPath to write it to: for facturx and zugferd it is a hybrid PDF/A-3 with the XML embedded; xrechnung and peppol-bis have no hybrid form, so it is a visualization with no XML inside it, and their legal document stays the XML. | |
| verify | No | Validate the generated document before returning it, and fail if it does not pass. Defaults to true. | |
| invoice | Yes | The EN 16931 invoice to render. Extra fields (dueDate, buyerReference, paymentMeans, taxSummary, per-country blocks) are passed through to the API. | |
| standard | Yes | Target e-invoice standard to produce. | |
| outputPath | No | Where to write the generated document on disk. Required for pdf output, optional for xml. The call fails if a file already exists at the path. | |
| facturxProfile | No | Profile for a Factur-X / ZUGFeRD document; ignored for xrechnung and peppol-bis. extended-ctc-fr is Factur-X only: zugferd accepts basicwl, en16931 and extended. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| xml | No | ||
| output | Yes | ||
| sha256 | No | ||
| pdfKind | No | ||
| livemode | No | ||
| outputPath | No | ||
| contentType | Yes | ||
| bytesWritten | No | ||
| rulesetSha256 | No | ||
| outputEnvelope | No | ||
| validationResult | No | ||
| schematronVersion | No |