Send invoice to KSeF
Send one invoice to the Polish KSeF e-invoicing system.
MCP tool fakturownia_write → send_invoice_to_ksef
write Confirm
Sends the invoice to KSeF and returns processing; the KSeF number appears after processing, so read it with get_ksef_status. KSeF must already be connected in the account, and your user needs send permission. Proformas are not eligible. Invoices sent after their issue day go offline24 and cannot be edited. By default you confirm each call; you can switch that off for this tool.
Parameters
| Name | Type | Description |
|---|---|---|
| invoice_id integer required | integer | Invoice ID from list_invoices. |
tools/call
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "fakturownia_write",
"arguments": {
"operation": "send_invoice_to_ksef",
"arguments": {
"invoice_id": 5120
}
}
}
} Example response
{
"content": [
{
"type": "text",
"text": "{ ... same JSON as structuredContent ... }"
}
],
"structuredContent": {
"invoice_id": 5120,
"gov_status": "processing",
"gov_id": null
},
"isError": false
}