Skip to content

inFakt MCP server tool · Invoices: actions

infakt_invoice_create

Last updated: · Create Invoice

Creates a VAT invoice or proforma draft for a saved client (client_id); the invoice is issued only after approval in infakt_invoice_approve. Amounts in grosz.

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.

Tworzy fakturę VAT lub proforma (kind="proforma") przez projekt i rejestr operacji. Kwoty wejściowe w groszach.

Zwraca projekt do zatwierdzenia; wystawienie wyłącznie przez infakt_invoice_approve, po kliknięciu użytkownika w formularzu zgody albo w karcie zatwierdzenia. Proforma nie trafia do KSeF.

Parameters

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

ParameterTypeRequiredDescription
bank_accountstringnoNumer konta bankowego
bank_namestringnoNazwa banku
bdo_codestringno
building_servicebooleanno
check_duplicate_numberbooleanno
client_idintegeryesID klienta zapisanego w inFakt (z infakt_get_clients_list). Jeśli klienta nie ma, najpierw utwórz go przez infakt_create_client.
confirmation_tokenstringno
continuous_service_end_ondate (YYYY-MM-DD)noKoniec uslugi ciaglej. Wymagane dla continuous_service_end_on.
continuous_service_start_ondate (YYYY-MM-DD)noPoczatek uslugi ciaglej. Wymagane dla continuous_service_end_on.
currencystringnoKod waluty ISO 4217 (domyślnie PLN)
document_markings_idslist (max 100)no
invoice_datedate (YYYY-MM-DD)noData wystawienia faktury (RRRR-MM-DD)
invoice_date_kindstringnoTyp daty: 'sale_date', 'service_date', 'cargo_date' lub 'continuous_service_end_on'. Stary alias continuous_date_end_on jest przyjmowany.
kindone of: "vat", "proforma"noRodzaj faktury: 'vat' lub 'proforma'
local_government_recipient_addressobjectno
local_government_seller_addressobjectno
not_incomebooleanno
notesstringnoDodatkowe uwagi
numberstringnoNumer faktury (generowany automatycznie jeśli nie podano)
occasional_salebooleanno
paid_datedate (YYYY-MM-DD)no
paid_priceintegernoKwota już zapłacona w groszach
payment_datedate (YYYY-MM-DD)noTermin płatności (RRRR-MM-DD)
payment_methodone of: "transfer", "cash", "card", "barter", "check", "bill_of_sale", "delivery", "compensation", "accredited", "paypal", "instalment_sale", "payu", "tpay", "przelewy24", "dotpay", "other"yesMetoda płatności (przelew, gotówka, karta, itp.)
receipt_numberstringno
recipient_signaturestringno
sale_datedate (YYYY-MM-DD)noData sprzedaży (RRRR-MM-DD)
sale_typeone of: "service", "merchandise"noTyp sprzedazy. Wymagane dla klientow zagranicznych (country klienta != PL).
sales_kindstringno
seller_signaturestringno
serviceslist of object (min 1, max 1000)yes
split_paymentbooleanno
split_payment_type"optional"no
statusone of: "draft", "sent", "printed", "paid"noStatus faktury: 'draft', 'sent', 'printed' lub 'paid'
swiftstringnoKod SWIFT (dla przelewów międzynarodowych)
third_party_addresseslist (max 100)no
transaction_kind_idinteger (> 0)no
transaction_termsobjectno
vat_date_valueone of: "issue_date", "sale_date", "paid_date"no
vat_exchange_date_kindone of: "vat", "pit"noRodzaj daty kursu waluty dla VAT. Dotyczy faktur w walucie obcej (currency != PLN).
vat_exemption_reasonintegernoID podstawy zwolnienia z VAT (z infakt_get_vat_exemptions_list). Wymagane gdy konto ma sprzedaż zwolnioną z VAT (vat_sales: "exempt")

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