F-sąskaita MCP by usefulapi
v1.6.1Read 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.
| Parameter | Type | Description |
|---|---|---|
page | integer | Page 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}.
| Parameter | Type | Description |
|---|---|---|
invoice_id * | string | The 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.
| Parameter | Type | Description |
|---|---|---|
invoice_id * | string | The 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.
| Parameter | Type | Description |
|---|---|---|
page | integer | Page 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}.
| Parameter | Type | Description |
|---|---|---|
expense_id * | string | The 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.
| Parameter | Type | Description |
|---|---|---|
expense_id * | string | The 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.
| Parameter | Type | Description |
|---|---|---|
buyer * | object | |
currency * | string | Currency code from fsaskaita_list_currencies, e.g. EUR. |
invoice_date * | string | Issue date, yyyy-mm-dd. |
products * | array | Invoice lines, at least one. |
series * | string | Series code. A new code starts its own number counter. |
type * | string | Invoice type. The *vat_invoice types need vat_percentage on every line. |
invoice_number | Number within the series, unique there. Omit on create to auto-number. | |
language | Language of the PDF and share page. Defaults to lt. | |
notes | Free text printed under the lines. | |
pay_until_date | Due date, yyyy-mm-dd. | |
payment_options | Payment details printed on the invoice. | |
payment_status | Defaults to not_paid on create. | |
seller | Required unless use_default_seller_info is true. | |
use_default_seller_info | boolean | null | true 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}.
| Parameter | Type | Description |
|---|---|---|
buyer * | object | |
currency * | string | Currency code from fsaskaita_list_currencies, e.g. EUR. |
invoice_date * | string | Issue date, yyyy-mm-dd. |
invoice_id * | string | The UUID from a list or get tool. |
invoice_number * | string | The current number of the invoice, e.g. 007 or 7. Always resend it. |
products * | array | Invoice lines, at least one. |
series * | string | Series code. A new code starts its own number counter. |
type * | string | Invoice type. The *vat_invoice types need vat_percentage on every line. |
language | Language of the PDF and share page. Defaults to lt. | |
notes | Free text printed under the lines. | |
pay_until_date | Due date, yyyy-mm-dd. | |
payment_options | Payment details printed on the invoice. | |
payment_status | Defaults to not_paid on create. | |
seller | Required unless use_default_seller_info is true. | |
use_default_seller_info | boolean | null | true 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).
| Parameter | Type | Description |
|---|---|---|
currency * | string | Currency code from fsaskaita_list_currencies, e.g. EUR. |
date * | string | Document date, yyyy-mm-dd. |
file_base64 * | string | The document as standard base64, up to about 3 MB of file bytes. |
filename * | string | File name with its extension. Allowed: jpeg, jpg, bmp, gif, pdf, png, tiff, xlsx, xls, doc, docx, odf. |
seller * | string | Supplier name. |
total * | number | Amount including VAT. |
invoice_number | Supplier's document number. Stored but not returned. | |
vat | number | null | VAT 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).
| Parameter | Type | Description |
|---|---|---|
currency * | string | Currency code from fsaskaita_list_currencies, e.g. EUR. |
date * | string | Document date, yyyy-mm-dd. |
expense_id * | string | The UUID from a list or get tool. |
seller * | string | Supplier name. |
total * | number | Amount including VAT. |
file_base64 | string | The document as standard base64, up to about 3 MB of file bytes. |
filename | string | File name with extension. Needed with file_base64. |
invoice_number | Supplier's document number. Stored but not returned. | |
vat | number | null | VAT amount inside total. Stored but not returned. |