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.
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.
| Parameter | Type | Required | Description |
|---|---|---|---|
bank_account | string | no | Numer konta bankowego |
bank_name | string | no | Nazwa banku |
bdo_code | string | no | |
building_service | boolean | no | |
check_duplicate_number | boolean | no | |
client_id | integer | yes | ID klienta zapisanego w inFakt (z infakt_get_clients_list). Jeśli klienta nie ma, najpierw utwórz go przez infakt_create_client. |
confirmation_token | string | no | |
continuous_service_end_on | date (YYYY-MM-DD) | no | Koniec uslugi ciaglej. Wymagane dla continuous_service_end_on. |
continuous_service_start_on | date (YYYY-MM-DD) | no | Poczatek uslugi ciaglej. Wymagane dla continuous_service_end_on. |
currency | string | no | Kod waluty ISO 4217 (domyślnie PLN) |
document_markings_ids | list (max 100) | no | |
invoice_date | date (YYYY-MM-DD) | no | Data wystawienia faktury (RRRR-MM-DD) |
invoice_date_kind | string | no | Typ daty: 'sale_date', 'service_date', 'cargo_date' lub 'continuous_service_end_on'. Stary alias continuous_date_end_on jest przyjmowany. |
kind | one of: "vat", "proforma" | no | Rodzaj faktury: 'vat' lub 'proforma' |
local_government_recipient_address | object | no | |
local_government_seller_address | object | no | |
not_income | boolean | no | |
notes | string | no | Dodatkowe uwagi |
number | string | no | Numer faktury (generowany automatycznie jeśli nie podano) |
occasional_sale | boolean | no | |
paid_date | date (YYYY-MM-DD) | no | |
paid_price | integer | no | Kwota już zapłacona w groszach |
payment_date | date (YYYY-MM-DD) | no | Termin płatności (RRRR-MM-DD) |
payment_method | one of: "transfer", "cash", "card", "barter", "check", "bill_of_sale", "delivery", "compensation", "accredited", "paypal", "instalment_sale", "payu", "tpay", "przelewy24", "dotpay", "other" | yes | Metoda płatności (przelew, gotówka, karta, itp.) |
receipt_number | string | no | |
recipient_signature | string | no | |
sale_date | date (YYYY-MM-DD) | no | Data sprzedaży (RRRR-MM-DD) |
sale_type | one of: "service", "merchandise" | no | Typ sprzedazy. Wymagane dla klientow zagranicznych (country klienta != PL). |
sales_kind | string | no | |
seller_signature | string | no | |
services | list of object (min 1, max 1000) | yes | |
split_payment | boolean | no | |
split_payment_type | "optional" | no | |
status | one of: "draft", "sent", "printed", "paid" | no | Status faktury: 'draft', 'sent', 'printed' lub 'paid' |
swift | string | no | Kod SWIFT (dla przelewów międzynarodowych) |
third_party_addresses | list (max 100) | no | |
transaction_kind_id | integer (> 0) | no | |
transaction_terms | object | no | |
vat_date_value | one of: "issue_date", "sale_date", "paid_date" | no | |
vat_exchange_date_kind | one of: "vat", "pit" | no | Rodzaj daty kursu waluty dla VAT. Dotyczy faktur w walucie obcej (currency != PLN). |
vat_exemption_reason | integer | no | ID 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: 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