Book invoice
book_invoiceStep 2: record the booking for an uploaded invoice — amounts, VAT, and the chart-of-accounts (SKR) account — then create the posting and mark the document approved so it's ready for sevDesk. Pass skr_account_number to book it to a specific account; the account is validated against the chart of accounts.
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": {
"document_id": "<document_id>"
},
"name": "book_invoice"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| currency | No | Booking currency, default EUR | |
| due_date | No | Payment due date, YYYY-MM-DD. PASS IT — it is optional in the schema but not in practice: it becomes the voucher's paymentDeadline in sevDesk and the Faelligkeit in list_payables, and a voucher without it shows no due date in the payment list the bookkeeping works from. Measured on 22.11.2026: all 68 open payables of ToasterNET read faellig:null, because nothing ever passed this. When the invoice prints no term, the invoice date is the honest answer (due on receipt), not null. | |
| vat_code | No | Tax rule code from the tenant's tax rules, e.g. 'VAT19' | |
| framework | No | Which chart the number is from: 'SK03' or 'SK04'. Defaults to the tenant's preferred_skr_framework. Worth passing explicitly — the same number is a different account in each chart (4600 is Werbekosten in SKR03 and Erlöse Vermietung in SKR04). | |
| contact_id | No | Book-AI-ze contact id for the supplier. Needed for the voucher to carry a sevDesk supplier. | |
| issue_date | No | Invoice date, YYYY-MM-DD — required before it can go to sevDesk | |
| vat_amount | No | VAT included in the gross total. 0 for a reverse-charge invoice. | |
| cost_center | No | Optional cost centre for the posting | |
| document_id | Yes | From create_invoice_upload_url | |
| vendor_name | No | Supplier name | |
| total_amount | No | Gross total in the BOOKING currency (EUR for German books). For a foreign-currency invoice this is the converted figure, not the printed one. | |
| exchange_rate | No | Rate used to convert original_amount into the booking currency (e.g. 0.8726) | |
| tax_treatment | No | How it is taxed — set this explicitly, it is never guessed: 'standard' (19%), 'standard_7' (7%), 'reverse_charge_eu' (§13b, EU supplier), 'reverse_charge_non_eu' (§13b, third-country supplier — e.g. a US company invoicing 0% with 'tax to be paid on reverse charge basis'), 'not_taxable' (service to a third-country recipient, place of supply abroad), 'small_business' (§19 UStG), or 'no_vat' for something that is not a taxable supply at all — Geldtransit, durchlaufende Posten, a transfer between own accounts. All the others are VAT treatments of REVENUE, and sevDesk refuses them on a balance-sheet account. A 0% invoice is ambiguous without this and will be refused at push time. | |
| invoice_number | No | The supplier's invoice number | |
| original_amount | No | The gross total as printed on the invoice, in original_currency (e.g. 200.00) | |
| mark_for_sevdesk | No | Also mark it ready to push to sevDesk (default true) | |
| original_currency | No | The currency actually printed on the invoice, if it differs from the booking currency (e.g. 'USD') | |
| skr_account_number | No | Chart-of-accounts (SKR) expense account, e.g. '6815'. Validated against the chart; the result reports which sevDesk category it maps to, and warns if it maps to none (which would push the voucher without a category). |