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.
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)
- infakt_get_clients_list - sprawdź, czy klient już istnieje
- infakt_invoice_create, infakt_corrective_invoice_create (jeśli jest na liście narzędzi) - faktura dla klienta (client_id = id)
Parameters
Fields of the params object. Types and field descriptions come from the schema the server publishes in tools/list.
| Parameter | Type | Required | Description |
|---|---|---|---|
business_activity_kind | one of: "self_employed", "other_business", "private_person" or string | no | Typ: private_person, self_employed, other_business |
city | string | no | Miasto |
company_name | string | no | Nazwa firmy |
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. |
country | string | no | Kod kraju (np. PL, DE) |
days_to_payment | integer | no | Domyślny termin płatności w dniach |
email | string | no | Adres email |
first_name | string | no | Imię klienta |
flat_number | string | no | Numer lokalu |
invoice_note | string | no | Domyślna notatka na fakturze |
last_name | string | no | Nazwisko klienta |
mailing_city | string | no | Miasto do korespondencji |
mailing_company_name | string | no | Nazwa firmy do korespondencji |
mailing_postal_code | string | no | Kod pocztowy do korespondencji |
mailing_street | string | no | Ulica do korespondencji |
nip | string | no | NIP |
note | string | no | Notatki o kliencie |
payment_method | one of: "transfer", "cash", "card", "barter", "check", "bill_of_sale", "delivery", "compensation", "accredited", "paypal", "instalment_sale", "payu", "tpay", "przelewy24", "dotpay", "other" or string | no | Metoda płatności |
phone_number | string | no | Numer telefonu |
postal_code | string | no | Kod pocztowy |
receiver | string | no | Odbiorca dokumentów |
same_forward_address | boolean | no | Adres korespondencyjny taki sam jak adres firmy |
street | string | no | Ulica |
street_number | string | no | Numer budynku |
web_site | string | no | Adres 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: 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:write
Related tools
- infakt_get_clients_list – Lists and searches clients by name; returns id, uuid and name by default, NIP and contact data only via
fields=. - 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_corrective_invoice_create – Creates a corrective invoice for an issued VAT invoice of a saved client (
client_id). - infakt_meta_examples – Example calls for an operation.
- infakt_meta_schema – YAML schema of a resource.
- infakt_meta_dictionary – Dictionary of allowed values, e.g. invoice types, payment methods.