Create invoice draft
create_invoiceCreate a draft invoice or quote for a customer. KENJTEC calculates the totals. A draft has no number; issue_invoice gives it one.
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": {
"customer_id": "<customer_id>",
"lines": "<lines>"
},
"name": "create_invoice"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| kind | No | An invoice, or a quote the customer has to accept first. | |
| intro | No | A line above the items, for example a greeting. | |
| lines | Yes | The items on the invoice, in the order they should be printed. | |
| outro | No | A line below the items, for example payment terms or thanks. | |
| currency | No | ISO 4217, e.g. EUR, USD, BDT. Default: the sender's currency. | |
| due_date | No | YYYY-MM-DD | |
| tax_note | No | Why no VAT is charged, printed on the document (for example: reverse charge, small business). | |
| issue_date | No | YYYY-MM-DD | |
| tax_exempt | No | True when no VAT is charged — then say why in tax_note. Ask the user; do not decide it for them. | |
| customer_id | Yes | The website's id — from list_sites. | |
| service_date | No | YYYY-MM-DD — required to issue an invoice. |