Skip to content

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.

ParameterTypeRequiredDescription
client_idintegernoNadpisz 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_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.
invoice_datedate (YYYY-MM-DD)noFormat RRRR-MM-DD. None = dzisiejsza data (domyślnie backend)
kindone of: "vat", "proforma"noRodzaj kopii; dla proformy źródłowej podaj "proforma"
notesstringnoNadpisz uwagi. None = skopiuj ze źródła. Pusty string = wyczyść
payment_datedate (YYYY-MM-DD)noFormat RRRR-MM-DD. None = backend obliczy z invoice_date
payment_methodone of: "transfer", "cash", "card", "barter", "check", "bill_of_sale", "delivery", "compensation", "accredited", "paypal", "instalment_sale", "payu", "tpay", "przelewy24", "dotpay", "other"noNadpisz metodę płatności. None = skopiuj ze źródła
sale_datedate (YYYY-MM-DD)noFormat RRRR-MM-DD. None = dzisiejsza data (domyślnie backend)
serviceslist of object (min 1)noNadpisz pozycje pełną nową listą (zastępuje wszystkie pozycje źródła). None = skopiuj ze źródła
source_invoice_typeone of: "vat", "advance", "corrective", "corrective_oss", "final", "internal", "margin", "oss"noTyp faktury źródłowej: vat, advance, corrective, final, margin (bez oss, corrective_oss, internal)
source_invoice_uuidUUIDyesUUID faktury źródłowej do skopiowania
split_paymentbooleannoNadpisz mechanizm podzielonej płatności (MPP). None = skopiuj ze źródła. MPP wymaga przelewu
statusone of: "draft", "sent", "printed", "paid"noNadpisz 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: false write: changes data or state
  • destructiveHint: false non-destructive: overwrites or deletes nothing
  • idempotentHint: false non-idempotent: each call may add something new
  • openWorldHint: false works only within the inFakt account

OAuth scopes the tool requires:

  • api:invoices:write
  • api:invoices:read
  • api:account:read
  • api: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