Prepare sending an invoice to KSeF
prepare_send_invoice_to_ksefChecks that an issued invoice of a Polish company can be sent to KSeF (the Polish national e-invoicing system) and returns a summary of the submission for the user's confirmation: the number and date, the seller NIP, the buyer, the gross total, the KSeF environment (a test environment is not legally binding), the mode (online, or offline24 for an issue date before today in Poland), the KSeF warnings and the current KSeF status, with a one-time confirmation token valid for 10 minutes. Nothing is sent.
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_send_invoice_to_ksef"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| company_id | Yes | The id of the company, from list_companies. | |
| invoice_id | Yes | The id of the issued invoice, from list_invoices. |