generate_xrechnung
Generate a German XRechnung 3.0 e-invoice (UBL 2.1, EN 16931) from plain JSON. Totals, VAT and rounding are computed server-side per the official rules. Mandatory: invoiceNumber, issueDate, buyerReference (Leitweg-ID), seller (+sellerContact with name/phone/email), buyer, paymentIban, lines (name, quantity, unitPrice, vatRate). 30 credits, requires an API key.
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": {
"invoiceNumber": "<invoiceNumber>",
"issueDate": "<issueDate>",
"buyerReference": "<buyerReference>",
"seller": "<seller>",
"sellerContact": "<sellerContact>",
"buyer": "<buyer>",
"paymentIban": "<paymentIban>",
"lines": "<lines>"
},
"name": "generate_xrechnung"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| buyer | Yes | ||
| lines | Yes | ||
| seller | Yes | ||
| dueDate | No | ||
| issueDate | Yes | YYYY-MM-DD | |
| paymentIban | Yes | ||
| invoiceNumber | Yes | ||
| sellerContact | Yes | ||
| buyerReference | Yes | Leitweg-ID / buyer reference (mandatory) | |
| paymentTermsNote | No |