inFakt MCP server tool · Invoice drafts and approval
infakt_invoice_prepare
Last updated: · Prepare Invoice Draft
Builds or revises a VAT invoice or proforma draft; lines change through a change list, nothing is created in inFakt.
What it does
The server’s own text, in Polish, written for the assistant. Names of other tools link to their pages.
Uzupełnij rodzaj sprzedaży w projekcie VAT lub proformy (kind="proforma"), bez wystawienia faktury.
Odpowiedź formularza nie jest zgodą na wystawienie. Gotowy projekt wystaw przez infakt_invoice_approve.
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 (bank_account, bank_name, bdo_code, building_service, check_duplicate_number, client_id, continuous_service_end_on, continuous_service_start_on, currency, document_markings_ids, invoice_date, invoice_date_kind, kind, local_government_recipient_address, local_government_seller_address, not_income, notes, number, occasional_sale, paid_date, paid_price, payment_date, payment_method, receipt_number, recipient_signature, sale_date, sale_type, sales_kind, seller_signature, services, split_payment, split_payment_type, status, swift, third_party_addresses, transaction_kind_id, transaction_terms, vat_date_value, vat_exchange_date_kind, vat_exemption_reason) | no | Kwoty w groszach. Brakujące pola można uzupełnić kolejnym wywołaniem. |
line_changes | list of object (max 1000) | no | |
source_invoice_uuid | UUID | no | Kopia faktury VAT albo proformy (invoice.kind="proforma"); źródło czytane tylko przy tworzeniu. |
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: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.
- infakt_meta_schema – YAML schema of a resource.