Issue invoice
issue_invoiceIssues the invoice draft summarised by prepare_issue_invoice once the user has confirmed it, using its confirmation token and the same number and date input: the document gets its number and issue date and is locked; it can't be edited any more or go back to a draft. Nothing is sent to the customer or to KSeF. Refused, with the token used up, when the token expired or doesn't match, or the draft changed after the preparation. A repeated call with the same token returns the same answer without issuing again.
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>",
"confirmation_token": "<confirmation_token>"
},
"name": "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. | |
| confirmation_token | Yes | The confirmation_token of the answer of prepare_issue_invoice for this document. |