Get KSeF status
Where an invoice stands in KSeF: not sent, processing, accepted or an error.
MCP tool fakturownia_read → get_ksef_status
read
Returns gov_status, the KSeF number once there is one, the send date and error messages for one invoice. Statuses include ok, processing, send_error, server_error, offline and not_connected. A null status means the invoice was not sent.
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_read",
"arguments": {
"operation": "get_ksef_status",
"arguments": {
"invoice_id": 1
}
}
}
} Example response
{
"content": [
{
"type": "text",
"text": "{ ... same JSON as structuredContent ... }"
}
],
"structuredContent": {
"invoice_id": 5120,
"gov_status": "ok",
"gov_id": "1234563218-20261014-A1B2C3D4E5F6",
"gov_send_date": "2026-10-14T10:30:00+02:00",
"gov_error_messages": null
},
"isError": false
}