F-sąskaita MCP by usefulapi

v1.6.1
io.usefulapi/f-saskaita Checked 3 days ago Published 1 day ago

Read invoices, expenses and PDFs; create invoices and record expenses in F-sąskaita.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

fsaskaita_get_profile Get business profile

Get the business that the token belongs to: name, business type, address, VAT code and company code. A good first call. GET /profile.

fsaskaita_list_currencies List currencies

List the currency codes and titles that invoices and expenses accept. GET /currencies.

fsaskaita_list_invoices List invoices

List finalized invoices, newest first, 50 per page. Drafts made in the app are not included. The meta block gives current_page, last_page and total. GET /invoices.

ParameterTypeDescription
pageintegerPage number, starting at 1. Each page holds 50 items.

fsaskaita_get_invoice Get an invoice

Get one invoice with its seller, buyer, lines (products), payment options, totals and share_link. GET /invoices/{invoice}.

ParameterTypeDescription
invoice_id *stringThe UUID from a list or get tool.

fsaskaita_download_invoice_pdf Download invoice PDF

Download the PDF of one invoice. Returns the file as base64 with its content type and file name. Files over 3 MB are refused. GET /invoices/{invoice}/download.

ParameterTypeDescription
invoice_id *stringThe UUID from a list or get tool.

fsaskaita_list_expenses List expenses

List expenses, newest first, 50 per page. Each item has date, total, currency, seller and timestamps. GET /expenses.

ParameterTypeDescription
pageintegerPage number, starting at 1. Each page holds 50 items.

fsaskaita_get_expense Get an expense

Get one expense: date, total (with VAT), currency, seller and timestamps. The stored VAT and supplier invoice number are not returned. GET /expenses/{expense}.

ParameterTypeDescription
expense_id *stringThe UUID from a list or get tool.

fsaskaita_download_expense_file Download expense file

Download the document file (receipt or invoice) of one expense. Returns the file as base64 with its content type and file name. Files over 3 MB are refused. GET /expenses/{expense}/download.

ParameterTypeDescription
expense_id *stringThe UUID from a list or get tool.

fsaskaita_create_invoice Create an invoice

WRITE: create and finalize a new invoice in the business. It takes a number, queues its PDF and fires the invoice.created webhook. Omit invoice_number to take the next number of the series. The call is NOT repeatable: after a network error, list invoices before you retry. POST /invoices.

ParameterTypeDescription
buyer *object
currency *stringCurrency code from fsaskaita_list_currencies, e.g. EUR.
invoice_date *stringIssue date, yyyy-mm-dd.
products *arrayInvoice lines, at least one.
series *stringSeries code. A new code starts its own number counter.
type *stringInvoice type. The *vat_invoice types need vat_percentage on every line.
invoice_numberNumber within the series, unique there. Omit on create to auto-number.
languageLanguage of the PDF and share page. Defaults to lt.
notesFree text printed under the lines.
pay_until_dateDue date, yyyy-mm-dd.
payment_optionsPayment details printed on the invoice.
payment_statusDefaults to not_paid on create.
sellerRequired unless use_default_seller_info is true.
use_default_seller_infoboolean | nulltrue copies the seller block from the business profile. Then omit seller.

fsaskaita_update_invoice Replace an invoice

WRITE: replace EVERY field of an existing invoice with the values you send. Read the invoice first with fsaskaita_get_invoice and resend all of it. invoice_number is required: without it the invoice is renumbered. Lines, payment options and seller fields are rewritten and the PDF is regenerated. PUT /invoices/{invoice}.

ParameterTypeDescription
buyer *object
currency *stringCurrency code from fsaskaita_list_currencies, e.g. EUR.
invoice_date *stringIssue date, yyyy-mm-dd.
invoice_id *stringThe UUID from a list or get tool.
invoice_number *stringThe current number of the invoice, e.g. 007 or 7. Always resend it.
products *arrayInvoice lines, at least one.
series *stringSeries code. A new code starts its own number counter.
type *stringInvoice type. The *vat_invoice types need vat_percentage on every line.
languageLanguage of the PDF and share page. Defaults to lt.
notesFree text printed under the lines.
pay_until_dateDue date, yyyy-mm-dd.
payment_optionsPayment details printed on the invoice.
payment_statusDefaults to not_paid on create.
sellerRequired unless use_default_seller_info is true.
use_default_seller_infoboolean | nulltrue copies the seller block from the business profile. Then omit seller.

fsaskaita_create_expense Create an expense

WRITE: record a new expense with its document file (receipt or invoice from a supplier). The file is required. The call fires the expense.created webhook and is NOT repeatable: list expenses before you retry after a network error. POST /expenses (multipart).

ParameterTypeDescription
currency *stringCurrency code from fsaskaita_list_currencies, e.g. EUR.
date *stringDocument date, yyyy-mm-dd.
file_base64 *stringThe document as standard base64, up to about 3 MB of file bytes.
filename *stringFile name with its extension. Allowed: jpeg, jpg, bmp, gif, pdf, png, tiff, xlsx, xls, doc, docx, odf.
seller *stringSupplier name.
total *numberAmount including VAT.
invoice_numberSupplier's document number. Stored but not returned.
vatnumber | nullVAT amount inside total. Stored but not returned.

fsaskaita_update_expense Replace an expense

WRITE: replace EVERY field of an existing expense. Read it first with fsaskaita_get_expense and resend all of it. Stored VAT and supplier invoice number are not returned, so send them again if you need them. The file is optional: when you send one it replaces the stored file. PUT /expenses/{expense} (multipart).

ParameterTypeDescription
currency *stringCurrency code from fsaskaita_list_currencies, e.g. EUR.
date *stringDocument date, yyyy-mm-dd.
expense_id *stringThe UUID from a list or get tool.
seller *stringSupplier name.
total *numberAmount including VAT.
file_base64stringThe document as standard base64, up to about 3 MB of file bytes.
filenamestringFile name with extension. Needed with file_base64.
invoice_numberSupplier's document number. Stored but not returned.
vatnumber | nullVAT amount inside total. Stored but not returned.