Vyfakturuj MCP by usefulapi

v1.28.1
io.usefulapi/vyfakturuj Checked 2 days ago Published 1 day ago

Read 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/.

ParameterTypeDescription
VSstringVariable symbol (variabilni symbol).
currencystringCurrency, ISO 4217, e.g. CZK, EUR.
date_created_fromstringCreated on or after this date (yyyy-mm-dd).
date_created_tostringCreated on or before this date (yyyy-mm-dd).
id_customerOnly invoices of this address-book contact (from vyfakturuj_list_contacts).
numberstringExact document number.
qstringFree-text search over the invoices.
rows_limitintegerRows to return, 1-100 (default 25).
rows_offsetintegerRows to skip (default 0). Use next_offset from the previous reply.
sortstringSort: column~asc or column~desc, several joined by | (for example date_created~desc|number~asc).
typeDocument 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}/.

ParameterTypeDescription
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…

ParameterTypeDescription
items *arrayDocument items (1-200).
VSintegerVariable symbol (default: derived from the number).
calculate_vat1 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.
currencystringCurrency, ISO 4217 (default: the account's).
customer_DICstringCustomer DIC (VAT id).
customer_ICstringCustomer ICO (company id).
customer_citystringCustomer city.
customer_country_codestringISO 3166 country code, e.g. CZ, SK, DE.
customer_firstnamestringCustomer first name.
customer_lastnamestringCustomer last name.
customer_namestringCustomer company name (when no id_customer).
customer_streetstringCustomer street.
customer_zipstringCustomer postal code (PSC).
date_createdstringIssue date yyyy-mm-dd (default today).
date_taxable_supplystringDate of taxable supply (DUZP) yyyy-mm-dd.
days_dueintegerDays until due (splatnost).
id_customerAddress-book contact id (from vyfakturuj_list_contacts); fills the customer block.
id_number_seriesNumber series id (from vyfakturuj_list_number_series); must match the document type.
id_payment_methodPayment method id (from vyfakturuj_list_payment_methods).
languagestringLanguage of the document.
note_internalstringInternal note (not on the document).
order_numberstringOrder id / reference.
text_before_itemsstringText before the items.
text_invoice_footerstringText in the footer.
typeDocument 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/.

ParameterTypeDescription
DICstringExact DIC (VAT id).
ICstringExact ICO (company id).
mail_tostringE-mail address of the contact.
namestringAddress-book name.
qstringFree-text search.
rows_limitintegerRows to return, 1-100 (default 25).
rows_offsetintegerRows to skip (default 0). Use next_offset from the previous reply.
sortstringSort: column~asc or column~desc, several joined by | (for example date_created~desc|number~asc).
telstringPhone 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}/.

ParameterTypeDescription
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/.

ParameterTypeDescription
DICstringDIC (VAT id).
ICstringICO (company id).
citystringCity.
companystringCompany name.
country_codestringISO 3166 country code, e.g. CZ, SK, DE.
days_dueintegerDefault days until due for this contact.
firstnamestringFirst name.
lastnamestringLast name.
mail_tostringE-mail where invoices and reminders go.
namestringAddress-book name (how it is listed).
notestringYour note about the contact.
streetstringStreet.
telstringPhone.
webstringWeb.
zipstringPostal 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}/.

ParameterTypeDescription
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/.