Prepare invoice draft
prepare_invoice_draftPrepare a draft for a new standard e-invoice and check it: normalises buyer, line items, dates and payment terms, calculates net/VAT/gross totals and lists missing or implausible fields. The result is a draft, not an invoice: do not present it as an invoice and do not send it. Nothing is saved and no invoice number is assigned. Creates standard commercial invoices (type 380) only. Cancellations, corrections, credit notes (self-billing), down-payment and final invoices are not supported here — use the FaeBill app. Invoices to public authorities (XRechnung with Leitweg-ID) must be created in the FaeBill app. EUR only. The invoice date is set by FaeBill at issue (Europe/Berlin) and cannot be chosen. Choose taxCategory per line exactly as described; if the seller is a small business (§ 19 UStG), FaeBill sets the tax category itself — do not apply your own small-business logic. Pass the returned draft unchanged to finalize_invoice after the user has approved draft and totals.
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": {
"buyer": "<buyer>",
"items": "<items>",
"deliveryDate": "<deliveryDate>"
},
"name": "prepare_invoice_draft"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| buyer | Yes | ||
| items | Yes | ||
| notes | No | ||
| locale | No | Output language, default de. | |
| skonto | No | ||
| dueDate | No | ||
| subject | No | ||
| currency | No | ||
| buyerType | No | ||
| deliveryDate | Yes | Delivery/service date (BT-72), required. | |
| paymentTerms | No | ||
| documentLanguage | No | ||
| documentAllowances | No | ||
| sellerIsSmallBusiness | No |