Invoices: Create invoice
invoice_createIssue an invoice in this company's invoices and render its PDF. Client: pass lead_id / organization_id / customer_id from invoice_list_clients, or 'client' = the client's NAME as the person said it — a role word («клієнт», «компанія», «замовник», «ТОВ») is not a name and is refused with the candidates; a name that matches no single client is refused too. A NEW client only with new_client=true and the real name (client_tax_id / client_iban / client_email only if the person gave them). Money: one 'amount' + 'description', or 'lines' for several items — numbers exactly as the person said, never computed or invented. 'currency' only if named (else the company's), 'vat_percent' only if VAT was stated (else the server picks the VAT regime from the seller entity's and the client's country and VAT ID — standard rate, reverse charge, export or no VAT — and the result's vat_regime names it; tell the person); prices_include_vat says whether the named prices already include it (default true). 'seller_legal_entity' (id or name) when the company has several legal entities. No payment links. Runs propose→confirm. CONFIRMATION: this tool is PROPOSED, never performed directly. You get status='confirmation_required' with an action_id and a plan_token, and the write happens only after confirm_action.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "invoice_create"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| note | No | A note printed for the client. | |
| lines | No | The person's own lines, when there is more than one item. Prices exactly as said. | |
| amount | No | The total the person named. | |
| client | No | The client's name as the person said it (Олена, ТОВ Ромашка). | |
| lead_id | No | ||
| currency | No | ||
| due_days | No | ||
| new_client | No | Create a NEW client with this exact name (the person asked). | |
| client_iban | No | ||
| customer_id | No | ||
| description | No | What for, in the person's words. | |
| vat_percent | No | ||
| client_email | No | ||
| client_tax_id | No | ||
| organization_id | No | ||
| prices_include_vat | No | ||
| seller_legal_entity | No |