inFakt MCP server tool · Invoices: actions
infakt_invoice_create_similar
Last updated: · Create Similar Invoice
Prepares a copy of an existing VAT invoice or proforma as a draft for approval; lines and client can be replaced.
Write through a draft and approval
What it does
The server’s own text, in Polish, written for the assistant. Names of other tools link to their pages.
Przygotuj zamrożoną kopię VAT albo proformy (kind="proforma"); wystaw ją przez infakt_invoice_approve.
Parameters
Fields of the params object. Types and field descriptions come from the schema the server publishes in tools/list.
| Parameter | Type | Required | Description |
|---|---|---|---|
client_id | integer | no | Nadpisz klienta. ID klienta zapisanego w inFakt (z infakt_get_clients_list). Jeśli klienta nie ma, najpierw utwórz go przez infakt_create_client. None = klient ze źródła |
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. |
invoice_date | date (YYYY-MM-DD) | no | Format RRRR-MM-DD. None = dzisiejsza data (domyślnie backend) |
kind | one of: "vat", "proforma" | no | Rodzaj kopii; dla proformy źródłowej podaj "proforma" |
notes | string | no | Nadpisz uwagi. None = skopiuj ze źródła. Pusty string = wyczyść |
payment_date | date (YYYY-MM-DD) | no | Format RRRR-MM-DD. None = backend obliczy z invoice_date |
payment_method | one of: "transfer", "cash", "card", "barter", "check", "bill_of_sale", "delivery", "compensation", "accredited", "paypal", "instalment_sale", "payu", "tpay", "przelewy24", "dotpay", "other" | no | Nadpisz metodę płatności. None = skopiuj ze źródła |
sale_date | date (YYYY-MM-DD) | no | Format RRRR-MM-DD. None = dzisiejsza data (domyślnie backend) |
services | list of object (min 1) | no | Nadpisz pozycje pełną nową listą (zastępuje wszystkie pozycje źródła). None = skopiuj ze źródła |
source_invoice_type | one of: "vat", "advance", "corrective", "corrective_oss", "final", "internal", "margin", "oss" | no | Typ faktury źródłowej: vat, advance, corrective, final, margin (bez oss, corrective_oss, internal) |
source_invoice_uuid | UUID | yes | UUID faktury źródłowej do skopiowania |
split_payment | boolean | no | Nadpisz mechanizm podzielonej płatności (MPP). None = skopiuj ze źródła. MPP wymaga przelewu |
status | one of: "draft", "sent", "printed", "paid" | no | Nadpisz status. None = szkic (draft) |
Access kind and annotations
Write through a draft and approval: the tool builds a draft outside inFakt; the document is created after the user approves it
readOnlyHint: falsewrite: changes data or statedestructiveHint: falsenon-destructive: overwrites or deletes nothingidempotentHint: falsenon-idempotent: each call may add something newopenWorldHint: falseworks only within the inFakt account
OAuth scopes the tool requires:
api:invoices:writeapi:invoices:readapi:account:readapi:sensitive:bank_accounts:read
Related tools
- infakt_invoice_approve – Shows the full draft preview and waits for the user’s decision; the only way a draft becomes a document.
Changes
- 2026-10: client_id required, inline client data removed