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

Parameters: send_invoice_to_ksef
NameTypeDescription
invoice_id integer required integer Invoice ID from list_invoices.

tools/call

JSON-RPC

{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "fakturownia_write",
    "arguments": {
      "operation": "send_invoice_to_ksef",
      "arguments": {
        "invoice_id": 5120
      }
    }
  }
}

Example response

JSON

{
  "content": [
    {
      "type": "text",
      "text": "{ ... same JSON as structuredContent ... }"
    }
  ],
  "structuredContent": {
    "invoice_id": 5120,
    "gov_status": "processing",
    "gov_id": null
  },
  "isError": false
}

Sign in once. Your agent does the rest.

Sign up and add the apps you need. Free 7-day trial with 2,000 credits, no card needed.