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
- infakt_invoice_create → invoice_task_reference_number
- infakt_async_status(status_type="invoice_creation") → invoice_uuid (kod 201)
infakt_send_invoice_to_ksef(document_uuid=invoice_uuid)- infakt_async_status(status_type="ksef") → ksef_number (status "success")
Related tools (per the server)
- infakt_get_ksef_integration_status - sprawdź integrację z KSeF
- infakt_async_status - sprawdź status wysyłki (status_type="ksef")
- infakt_invoice_create - utwórz fakturę przed wysłaniem
Parameters
Fields of the params object. Types and field descriptions come from the schema the server publishes in tools/list.
| Parameter | Type | Required | Description |
|---|---|---|---|
confirmation_token | string | no | Przy 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_uuid | UUID | yes | UUID 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: falsewrite: changes data or statedestructiveHint: truedestructive: may overwrite or delete data, or cannot be undoneidempotentHint: falsenon-idempotent: each call may add something newopenWorldHint: trueopen world: reaches beyond the inFakt account
OAuth scopes the tool requires:
api:invoices:write
Related tools
- infakt_get_ksef_integration_status – Whether the account is integrated with KSeF and when invoices were last fetched.
- infakt_invoice_create – Creates a VAT invoice or proforma draft for a saved client (
client_id); the invoice is issued only after approval ininfakt_invoice_approve. Amounts in grosz. - infakt_async_status – Status of an async operation, e.g. invoice creation or a KSeF submission.