Generate a valid XRechnung 3
eu_einvoice_generateGenerate a valid XRechnung 3.0 (or plain EN 16931 / Factur-X EN16931 XML) e-invoice from a simple JSON payload, as UN/CEFACT CII or UBL 2.1 (invoice, credit note 381, partial/corrected invoices). Computes line totals, VAT breakdown per category/rate (S, Z, E incl. § 19 UStG Kleinunternehmer, AE reverse charge, K, G, O) and totals, then self-validates with the official CEN EN 16931 + KoSIT XRechnung schematron. Returns the XML plus validation report. If the result violates a business rule the call returns HTTP 422 with the rule errors and is NOT charged. Price: $0.03 USDC per call via x402.
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": {
"invoice": "<invoice>"
},
"name": "eu_einvoice_generate"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| syntax | No | Output syntax (default cii; ZUGFeRD/Factur-X use CII) | |
| invoice | Yes | Invoice data | |
| profile | No | xrechnung (default, XRechnung 3.0 CIUS) or en16931 (plain EN 16931, e.g. for a Factur-X/ZUGFeRD EN16931 PDF) |