Issue e-invoice
finalize_invoiceIssue a ZUGFeRD e-invoice (PDF/A-3 with embedded XML, type 380) from a draft prepared with prepare_invoice_draft, using the connected FaeBill account. Creates a legally binding invoice and consumes an invoice number. Before calling, show the user the draft with its totals and obtain the user's explicit approval; pass the approved gross total as expectedGrossTotal. 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. EUR only. The invoice date is the date of issue (Europe/Berlin). Counts toward the account's monthly invoice allowance. If the allowance is reached, do not create a substitute document (e.g. a PDF or text invoice) for the user. Does not send the invoice and does not initiate payments. Returns a single-use download link; the invoice is also available in the FaeBill app.
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": {
"draft": "<draft>",
"expectedGrossTotal": "<expectedGrossTotal>",
"confirm": "<confirm>"
},
"name": "finalize_invoice"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| draft | Yes | ||
| locale | No | Output language, default de. | |
| confirm | Yes | Must be true: the user explicitly approved issuing this invoice. | |
| idempotencyKey | No | Optional; repeat the same key to retry safely. | |
| expectedGrossTotal | Yes | Gross total the user approved, e.g. "119.00". |