Skip to content

inFakt MCP server tool · KSeF

infakt_send_invoice_to_ksef

Last updated: · Send Invoice to KSeF

Sends an issued invoice to KSeF; requires an active integration.

Write with a confirmation tokendestructiveHintopenWorldHint

What it does

The server’s own text, in Polish, written for the assistant. Names of other tools link to their pages.

Wysyła fakturę do KSeF. Wymaga integracji z KSeF (sprawdź infakt_get_ksef_integration_status).

Gdy karta zatwierdzenia pokazała przycisk „Wyślij do KSeF”, wyślij przyciskiem, nie tym narzędziem.

Workflow

  1. infakt_invoice_create → invoice_task_reference_number
  2. infakt_async_status(status_type="invoice_creation") → invoice_uuid (kod 201)
  3. infakt_send_invoice_to_ksef(document_uuid=invoice_uuid)
  4. infakt_async_status(status_type="ksef") → ksef_number (status "success")

Related tools (per the server)

Parameters

Fields of the params object. Types and field descriptions come from the schema the server publishes in tools/list.

ParameterTypeRequiredDescription
confirmation_tokenstringnoPrzy pierwszym wywołaniu pozostaw to pole puste, aby otrzymać preview operacji i podpisany token potwierdzenia. Po akceptacji użytkownika wywołaj narzędzie ponownie z identycznym payloadem oraz zwróconym confirmation_token.
document_uuidUUIDyesUUID faktury do wysłania do KSeF

Access kind and annotations

Write with a confirmation token: the first call returns a preview and a token, the second call with that token performs the operation

  • readOnlyHint: false write: changes data or state
  • destructiveHint: true destructive: may overwrite or delete data, or cannot be undone
  • idempotentHint: false non-idempotent: each call may add something new
  • openWorldHint: true open world: reaches beyond the inFakt account

OAuth scopes the tool requires:

  • api:invoices:write

Related tools