inFakt MCP server tool · Invoice drafts and approval
infakt_invoice_advance_prepare
Last updated: · Prepare First Advance Invoice
Draft of a first advance invoice in PLN with one VAT rate (23, 8, 5 or 0).
What it does
The server’s own text, in Polish, written for the assistant. Names of other tools link to their pages.
Przygotuj pierwszą zaliczkę PLN/cash z jedną stawką VAT 23, 8, 5 albo 0, bez utworzenia faktury.
Kwoty podawaj jako tekst dziesiętny z walutą. Wszystkie pozycje mają tę samą stawkę VAT. Stawki, o którą prosi użytkownik, a której tu nie ma (zw, np, oo, kilka stawek), nie zamieniaj na inną: powiedz, że ten wariant jej nie obsługuje. infakt_invoice_approve zapisuje zaliczkę w inFakt jako szkic, a wynik sprawdzaj przez infakt_invoice_operation_get.
Schema
infakt_meta_schema("invoice_draft")
Parameters
Fields of the params object. Types and field descriptions come from the schema the server publishes in tools/list.
| Parameter | Type | Required | Description |
|---|---|---|---|
draft_pid | string | no | |
expected_revision | integer (≥ 1) | no | |
invoice | object (advance_amount, advance_date, client_id, currency, invoice_date, not_income, payment_method, services) | no | |
line_changes | list of object (max 1000) | no |
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: truedestructive: may overwrite or delete data, or cannot be undoneidempotentHint: 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: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.
- infakt_invoice_operation_get – Result of an issue operation; creates no invoice and starts no sending.
- infakt_meta_schema – YAML schema of a resource.