Skip to content

inFakt MCP server tool · Clients

infakt_create_client

Last updated: · Create Client

Creates a client with NIP and address; the invoice tools no longer accept buyer data. Returns the id to use as client_id on an invoice.

Write with a confirmation token

What it does

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

Tworzy nowego klienta w systemie inFakt. Zwraca jego id.

Przed utworzeniem sprawdź infakt_get_clients_list(search=<nazwa>), żeby nie dublować klienta. Zwrócone id przekaż jako client_id do infakt_invoice_create albo infakt_corrective_invoice_create, jeśli jest na liście narzędzi; infakt_invoice_corrective_prepare bierze klienta z korygowanej faktury.

Limits

city

POLA WYMAGANE PRZEZ API inFakt, zależnie od business_activity_kind:

  • private_person: first_name, last_name, city
  • self_employed: first_name, last_name, nip, company_name, city
  • other_business: company_name, nip, city
  • brak: company_name, city

Examples

infakt_meta_examples("create_client")

Schema

infakt_meta_schema("client") Typy: infakt_meta_dictionary("client_types") Metody płatności: infakt_meta_dictionary("payment_methods")

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
business_activity_kindone of: "self_employed", "other_business", "private_person" or stringnoTyp: private_person, self_employed, other_business
citystringnoMiasto
company_namestringnoNazwa firmy
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.
countrystringnoKod kraju (np. PL, DE)
days_to_paymentintegernoDomyślny termin płatności w dniach
emailstringnoAdres email
first_namestringnoImię klienta
flat_numberstringnoNumer lokalu
invoice_notestringnoDomyślna notatka na fakturze
last_namestringnoNazwisko klienta
mailing_citystringnoMiasto do korespondencji
mailing_company_namestringnoNazwa firmy do korespondencji
mailing_postal_codestringnoKod pocztowy do korespondencji
mailing_streetstringnoUlica do korespondencji
nipstringnoNIP
notestringnoNotatki o kliencie
payment_methodone of: "transfer", "cash", "card", "barter", "check", "bill_of_sale", "delivery", "compensation", "accredited", "paypal", "instalment_sale", "payu", "tpay", "przelewy24", "dotpay", "other" or stringnoMetoda płatności
phone_numberstringnoNumer telefonu
postal_codestringnoKod pocztowy
receiverstringnoOdbiorca dokumentów
same_forward_addressbooleannoAdres korespondencyjny taki sam jak adres firmy
streetstringnoUlica
street_numberstringnoNumer budynku
web_sitestringnoAdres strony WWW

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: 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

Related tools