Vyfakturuj MCP by usefulapi
v1.28.1Read and create Vyfakturuj invoices and contacts: search, number series, payment methods, tags.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
vyfakturuj_list_invoices List invoices
Search documents (faktury, zalohove faktury, proformy, objednavky ...); pass sort=date_created~desc for the newest first. Each row has id, number, type, dates, customer, VS, currency, total, flags and flags_decoded (paid, sent_to_customer, cancelled, ...) and the public/PDF URLs; use vyfakturuj_get_invoice for the whole document with items. Filter by free text q, customer id, document type, number, variable symbol (VS), currency or creation date range. Paged with rows_limit/rows_offset. GET /invoice/.
| Parameter | Type | Description |
|---|---|---|
VS | string | Variable symbol (variabilni symbol). |
currency | string | Currency, ISO 4217, e.g. CZK, EUR. |
date_created_from | string | Created on or after this date (yyyy-mm-dd). |
date_created_to | string | Created on or before this date (yyyy-mm-dd). |
id_customer | Only invoices of this address-book contact (from vyfakturuj_list_contacts). | |
number | string | Exact document number. |
q | string | Free-text search over the invoices. |
rows_limit | integer | Rows to return, 1-100 (default 25). |
rows_offset | integer | Rows to skip (default 0). Use next_offset from the previous reply. |
sort | string | Sort: column~asc or column~desc, several joined by | (for example date_created~desc|number~asc). |
type | Document type: 1 faktura, 2 zalohova faktura, 4 proforma, 8 vyzva k platbe, 16 danovy doklad, 32 opravny danovy doklad, 64 prijmovy doklad, 128 opravny doklad, 512 objednavka. |
vyfakturuj_get_invoice Get an invoice
One document with all fields: supplier and customer blocks, items (text, quantity, unit_price, vat_rate, totals), dates, VS, bank details, total, flags and flags_decoded, payment method, public page, PDF and online-payment URLs. GET /invoice/{id}/.
| Parameter | Type | Description |
|---|---|---|
id * | The invoice id (from vyfakturuj_list_invoices). |
vyfakturuj_create_invoice Create an invoice (issues a real numbered document)
WRITE. Creates a document in Vyfakturuj. Vyfakturuj has NO draft state: the document is issued at once and takes the next number of its number series (delete or cancel it in Vyfakturuj if wrong). Does NOT send an e-mail to the customer, does NOT mark it paid and moves no money; automatic reminders and paid notices are switched off for it (disable_automated_mails). Name the customer with id_customer (an address-book contact, from vyfakturuj_list_contacts) or with the customer_* fields. Items need text and unit_price. Optional id_number_series / id_payment_method come from vyfakturuj_list_number…
| Parameter | Type | Description |
|---|---|---|
items * | array | Document items (1-200). |
VS | integer | Variable symbol (default: derived from the number). |
calculate_vat | 1 items are net (VAT added), 2 items are gross, 3 special VAT regime, 4 domestic reverse charge, 5 not a VAT payer, 6 foreign reverse charge. | |
currency | string | Currency, ISO 4217 (default: the account's). |
customer_DIC | string | Customer DIC (VAT id). |
customer_IC | string | Customer ICO (company id). |
customer_city | string | Customer city. |
customer_country_code | string | ISO 3166 country code, e.g. CZ, SK, DE. |
customer_firstname | string | Customer first name. |
customer_lastname | string | Customer last name. |
customer_name | string | Customer company name (when no id_customer). |
customer_street | string | Customer street. |
customer_zip | string | Customer postal code (PSC). |
date_created | string | Issue date yyyy-mm-dd (default today). |
date_taxable_supply | string | Date of taxable supply (DUZP) yyyy-mm-dd. |
days_due | integer | Days until due (splatnost). |
id_customer | Address-book contact id (from vyfakturuj_list_contacts); fills the customer block. | |
id_number_series | Number series id (from vyfakturuj_list_number_series); must match the document type. | |
id_payment_method | Payment method id (from vyfakturuj_list_payment_methods). | |
language | string | Language of the document. |
note_internal | string | Internal note (not on the document). |
order_number | string | Order id / reference. |
text_before_items | string | Text before the items. |
text_invoice_footer | string | Text in the footer. |
type | Document type: 1 faktura (default), 2 zalohova faktura, 4 proforma faktura, 8 vyzva k platbe, 512 objednavka. |
vyfakturuj_list_contacts List contacts
Search the address book (adresar): id, name, company, ICO (IC), DIC, address, e-mail (mail_to), phone, default days_due. Filter by free text q, ICO, DIC, name, e-mail or phone. Paged with rows_limit/rows_offset. GET /contact/.
| Parameter | Type | Description |
|---|---|---|
DIC | string | Exact DIC (VAT id). |
IC | string | Exact ICO (company id). |
mail_to | string | E-mail address of the contact. |
name | string | Address-book name. |
q | string | Free-text search. |
rows_limit | integer | Rows to return, 1-100 (default 25). |
rows_offset | integer | Rows to skip (default 0). Use next_offset from the previous reply. |
sort | string | Sort: column~asc or column~desc, several joined by | (for example date_created~desc|number~asc). |
tel | string | Phone number. |
vyfakturuj_get_contact Get a contact
One address-book contact with every field (billing and delivery address, ICO/DIC, e-mails, default texts and days_due). GET /contact/{id}/.
| Parameter | Type | Description |
|---|---|---|
id * | The contact id (from vyfakturuj_list_contacts). |
vyfakturuj_create_contact Create a contact
WRITE. Adds a contact to the address book (it is not a customer message: nothing is sent). Give at least a name (the address-book label) or company or last name. Returns the new contact with its id. POST /contact/.
| Parameter | Type | Description |
|---|---|---|
DIC | string | DIC (VAT id). |
IC | string | ICO (company id). |
city | string | City. |
company | string | Company name. |
country_code | string | ISO 3166 country code, e.g. CZ, SK, DE. |
days_due | integer | Default days until due for this contact. |
firstname | string | First name. |
lastname | string | Last name. |
mail_to | string | E-mail where invoices and reminders go. |
name | string | Address-book name (how it is listed). |
note | string | Your note about the contact. |
street | string | Street. |
tel | string | Phone. |
web | string | Web. |
zip | string | Postal code (PSC). |
vyfakturuj_get_template Get a recurring-invoice template
One template / recurring invoice (sablona, pravidelna faktura) by id: its items, customer, schedule and settings. The API has no list endpoint for templates, so the id comes from the user (the number in the template's URL in Vyfakturuj). GET /template/{id}/.
| Parameter | Type | Description |
|---|---|---|
id * | The template id. |
vyfakturuj_list_payment_methods List payment methods
The payment methods of the account (id_payment_method, name, type: 1 bank transfer, 2 cash, 4 cash on delivery, 8 card, ...). Use the id in vyfakturuj_create_invoice. GET /settings/payment-method/.
vyfakturuj_list_number_series List number series
The numbering series (ciselne rady) of the account: id_number_series, the document type it is for, name and the number pattern. Use the id in vyfakturuj_create_invoice. GET /settings/number-series/.
vyfakturuj_list_tags List tags
The tags (stitky) of the account: id_tag, name and colour. Invoices carry an id_tag. GET /settings/tags/.