Send invoice to KSeF
send_invoice_to_ksefSends the issued invoice of a Polish company summarised by prepare_send_invoice_to_ksef to KSeF (the Polish national e-invoicing system) once the user has confirmed it, using its confirmation token, and returns its KSeF status. Sending can't be undone; on a KSeF test environment it is not legally binding. Refused, with the token used up, when the token expired or doesn't match, or the invoice, the KSeF environment or the mode changed after the preparation. KSeF processes the invoice in the background; refresh_ksef_status reads the final status. A repeated call with the same token returns the same answer without sending 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": "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. | |
| confirmation_token | Yes | The confirmation_token of the answer of prepare_send_invoice_to_ksef for this invoice. |