Prepare issuing an invoice
prepare_issue_invoiceChecks that an invoice draft can be issued and returns a summary of what issuing would do, for the user's confirmation: the number and issue date it will get, the seller and the customer, the totals per VAT rate, the exchange rate, the bank account (IBAN masked), the e-invoice warnings (they never block issuing) and the plan usage, with a one-time confirmation token valid for 10 minutes. No data of the company or its documents is changed.
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": {
"company_id": "<company_id>",
"invoice_id": "<invoice_id>"
},
"name": "prepare_issue_invoice"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| date | No | The issue date, YYYY-MM-DD; today in the time zone of the company when not given. It can't be after that day or before the latest issued document of the series. | |
| number | No | A number other than the usual one to issue the document with; when not given, the document keeps its own number or gets the next number of the series of the company. | |
| company_id | Yes | The id of the company, from list_companies. | |
| invoice_id | Yes | The id of the invoice draft, from list_invoices. |