create_invoice_draft
Prepare an invoice draft with line items and VAT, returning a preview with totals; set confirm to true to create the invoice in Čebelca.
Instructions
Prepare an invoice draft. Without confirm it only returns a preview with 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": {
"partner_id": "<partner_id>",
"items": "<items>"
},
"name": "create_invoice_draft"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| items | Yes | ||
| confirm | No | false = preview only; true = create in Čebelca | |
| due_days | No | Days until payment is due | |
| date_sent | No | Issue date YYYY-MM-DD, default today | |
| partner_id | Yes |