F-sąskaita MCP by usefulapi is an MCP server published by io.usefulapi, hosted at f-saskaita.usefulapi.io. When last checked on 2026-11-21 it was working: it answers and lists its tools. It declares 12 tools, including fsaskaita_get_profile, fsaskaita_list_currencies, fsaskaita_list_invoices, fsaskaita_get_invoice, fsaskaita_download_invoice_pdf.
Read invoices, expenses and PDFs; create invoices and record expenses in F-sąskaita.
4,412 connections through 5 shared values. Tap any node.
Squares are this server's values; dots are other servers sharing them. A shared address or publisher is a lead, not proof of a common operator.
Inferred from the host name and headers: what a server runs on, not who runs it.
Get the business that the token belongs to: name, business type, address, VAT code and company code. A good first call. GET /profile.
No parameters.
{
"name": "fsaskaita_get_profile",
"title": "Get business profile",
"description": "Get the business that the token belongs to: name, business type, address, VAT code and company code. A good first call. GET /profile.",
"inputSchema": {
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"properties": {}
},
"annotations": {
"title": "Get business profile",
"readOnlyHint": true
}
}List the currency codes and titles that invoices and expenses accept. GET /currencies.
No parameters.
{
"name": "fsaskaita_list_currencies",
"title": "List currencies",
"description": "List the currency codes and titles that invoices and expenses accept. GET /currencies.",
"inputSchema": {
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"properties": {}
},
"annotations": {
"title": "List currencies",
"readOnlyHint": true
}
}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. |
{
"name": "fsaskaita_list_invoices",
"title": "List invoices",
"description": "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.",
"inputSchema": {
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"properties": {
"page": {
"type": "integer",
"maximum": 9007199254740991,
"description": "Page number, starting at 1. Each page holds 50 items.",
"exclusiveMinimum": 0
}
}
},
"annotations": {
"title": "List invoices",
"readOnlyHint": true
}
}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. |
{
"name": "fsaskaita_get_invoice",
"title": "Get an invoice",
"description": "Get one invoice with its seller, buyer, lines (products), payment options, totals and share_link. GET /invoices/{invoice}.",
"inputSchema": {
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"required": [
"invoice_id"
],
"properties": {
"invoice_id": {
"type": "string",
"minLength": 1,
"description": "The UUID from a list or get tool."
}
}
},
"annotations": {
"title": "Get an invoice",
"readOnlyHint": true
}
}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. |
{
"name": "fsaskaita_download_invoice_pdf",
"title": "Download invoice PDF",
"description": "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.",
"inputSchema": {
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"required": [
"invoice_id"
],
"properties": {
"invoice_id": {
"type": "string",
"minLength": 1,
"description": "The UUID from a list or get tool."
}
}
},
"annotations": {
"title": "Download invoice PDF",
"readOnlyHint": true
}
}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. |
{
"name": "fsaskaita_list_expenses",
"title": "List expenses",
"description": "List expenses, newest first, 50 per page. Each item has date, total, currency, seller and timestamps. GET /expenses.",
"inputSchema": {
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"properties": {
"page": {
"type": "integer",
"maximum": 9007199254740991,
"description": "Page number, starting at 1. Each page holds 50 items.",
"exclusiveMinimum": 0
}
}
},
"annotations": {
"title": "List expenses",
"readOnlyHint": true
}
}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. |
{
"name": "fsaskaita_get_expense",
"title": "Get an expense",
"description": "Get one expense: date, total (with VAT), currency, seller and timestamps. The stored VAT and supplier invoice number are not returned. GET /expenses/{expense}.",
"inputSchema": {
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"required": [
"expense_id"
],
"properties": {
"expense_id": {
"type": "string",
"minLength": 1,
"description": "The UUID from a list or get tool."
}
}
},
"annotations": {
"title": "Get an expense",
"readOnlyHint": true
}
}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. |
{
"name": "fsaskaita_download_expense_file",
"title": "Download expense file",
"description": "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.",
"inputSchema": {
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"required": [
"expense_id"
],
"properties": {
"expense_id": {
"type": "string",
"minLength": 1,
"description": "The UUID from a list or get tool."
}
}
},
"annotations": {
"title": "Download expense file",
"readOnlyHint": true
}
}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 |
|---|---|---|
| type * | string | Invoice type. The *vat_invoice types need vat_percentage on every line. |
| buyer * | object | |
| notes | any | Free text printed under the lines. |
| seller | any | Required unless use_default_seller_info is true. |
| series * | string | Series code. A new code starts its own number counter. |
| currency * | string | Currency code from fsaskaita_list_currencies, e.g. EUR. |
| language | any | Language of the PDF and share page. Defaults to lt. |
| products * | array | Invoice lines, at least one. |
| invoice_date * | string |
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 |
|---|---|---|
| type * | string | Invoice type. The *vat_invoice types need vat_percentage on every line. |
| buyer * | object | |
| notes | any | Free text printed under the lines. |
| seller | any | Required unless use_default_seller_info is true. |
| series * | string | Series code. A new code starts its own number counter. |
| currency * | string | Currency code from fsaskaita_list_currencies, e.g. EUR. |
| language | any | Language of the PDF and share page. Defaults to lt. |
| products * | array | Invoice lines, at least one. |
| invoice_id * |
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 |
|---|---|---|
| vat | ["number","null"] | VAT amount inside total. Stored but not returned. |
| date * | string | Document date, yyyy-mm-dd. |
| total * | number | Amount including VAT. |
| seller * | string | Supplier name. |
| currency * | string | Currency code from fsaskaita_list_currencies, e.g. EUR. |
| filename * | string | File name with its extension. Allowed: jpeg, jpg, bmp, gif, pdf, png, tiff, xlsx, xls, doc, docx, odf. |
| file_base64 * | string | The document as standard base64, up to about 3 MB of file bytes. |
| invoice_number | any | Supplier's document number. Stored but not returned. |
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 |
|---|---|---|
| vat | ["number","null"] | VAT amount inside total. Stored but not returned. |
| date * | string | Document date, yyyy-mm-dd. |
| total * | number | Amount including VAT. |
| seller * | string | Supplier name. |
| currency * | string | Currency code from fsaskaita_list_currencies, e.g. EUR. |
| filename | string | File name with extension. Needed with file_base64. |
| expense_id * | string | The UUID from a list or get tool. |
| file_base64 | string | The document as standard base64, up to about 3 MB of file bytes. |
| invoice_number | any |
Tools for F-sąskaita, hosted by usefulapi.io. If the user is new or asks what this server can do, suggest requests such as: "Which of our invoices are still unpaid, and how much is outstanding?"; "Create a VAT invoice for ACME UAB for 10 hours of consulting at 50 EUR per hour, due in 14 days."; "List the expenses from September and their totals by supplier.". Read-only tools never change data; ask the user before a tool that creates, changes or deletes F-sąskaita data. Free plan: 50 tool calls per month. Run fsaskaita_usage_status to see the calls used this month. If the user asks for something none of these tools can do, tell the user and, with their OK, run fsaskaita_request_feature to record the request. Paid plans: Pro (10,000 tool calls a month, $9/month or $90/year, for normal use) and Pro+ (100,000 tool calls a month, $39/month or $390/year, for automations and heavy use). A plan can be cancelled at any time and then runs to the end of the paid period, so it also suits a one-time job. When the user wants more calls or reaches the limit, run fsaskaita_upgrade without a plan: it returns both plans, each with a payment link for the user to open. fsaskaita_cancel_subscription cancels Pro at the end of the paid period.
Names, descriptions and schemas were written by the server and are shown as data.
Pattern matches on what the server declares. They show what it says it can do, not what it does.
None yet. Changes appear after a server's second daily check.
| Issue date, yyyy-mm-dd. |
| invoice_number | any | Number within the series, unique there. Omit on create to auto-number. |
| pay_until_date | any | Due date, yyyy-mm-dd. |
| payment_status | any | Defaults to not_paid on create. |
| payment_options | any | Payment details printed on the invoice. |
| use_default_seller_info | ["boolean","null"] | true copies the seller block from the business profile. Then omit seller. |
{
"name": "fsaskaita_create_invoice",
"title": "Create an invoice",
"description": "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.",
"inputSchema": {
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"required": [
"type",
"invoice_date",
"series",
"currency",
"buyer",
"products"
],
"properties": {
"type": {
"enum": [
"regular_invoice",
"vat_invoice",
"preliminary_invoice",
"preliminary_vat_invoice",
"credit_invoice",
"credit_vat_invoice"
],
"type": "string",
"description": "Invoice type. The *vat_invoice types need vat_percentage on every line."
},
"buyer": {
"type": "object",
"required": [
"type"
],
"properties": {
"type": {
"enum": [
"company",
"individual",
"person"
],
"type": "string",
"description": "company or individual. person is a legacy alias of individual."
},
"email": {
"anyOf": [
{
"type": "string",
"maxLength": 255
},
{
"type": "null"
}
]
},
"phone": {
"anyOf": [
{
"type": "string",
"maxLength": 255
},
{
"type": "null"
}
]
},
"address": {
"anyOf": [
{
"type": "string",
"maxLength": 255
},
{
"type": "null"
}
]
},
"vat_code": {
"anyOf": [
{
"type": "string",
"maxLength": 255
},
{
"type": "null"
}
]
},
"last_name": {
"anyOf": [
{
"type": "string",
"maxLength": 255
},
{
"type": "null"
}
],
"description": "Required for individuals; not allowed for companies."
},
"first_name": {
"anyOf": [
{
"type": "string",
"maxLength": 255
},
{
"type": "null"
}
],
"description": "Required for individuals; not allowed for companies."
},
"company_code": {
"anyOf": [
{
"type": "string",
"maxLength": 255
},
{
"type": "null"
}
],
"description": "Company registration code; not allowed for individuals."
},
"company_name": {
"anyOf": [
{
"type": "string",
"maxLength": 255
},
{
"type": "null"
}
],
"description": "Required for companies; not allowed for individuals."
},
"individual_activity_id": {
"anyOf": [
{
"type": "string",
"maxLength": 255
},
{
"type": "null"
}
],
"description": "Individual activity certificate number; not allowed for companies."
}
}
},
"notes": {
"anyOf": [
{
"type": "string",
"maxLength": 255
},
{
"type": "null"
}
],
"description": "Free text printed under the lines."
},
"seller": {
"anyOf": [
{
"type": "object",
"properties": {
"email": {
"anyOf": [
{
"type": "string",
"maxLength": 255
},
{
"type": "null"
}
]
},
"phone": {
"anyOf": [
{
"type": "string",
"maxLength": 255
},
{
"type": "null"
}
]
},
"address": {
"anyOf": [
{
"type": "string",
"maxLength": 255
},
{
"type": "null"
}
]
},
"vat_code": {
"anyOf": [
{
"type": "string",
"maxLength": 255
},
{
"type": "null"
}
],
"description": "Required for the *vat_invoice types."
},
"last_name": {
"anyOf": [
{
"type": "string",
"maxLength": 255
},
{
"type": "null"
}
],
"description": "Individual activities only."
},
"first_name": {
"anyOf": [
{
"type": "string",
"maxLength": 255
},
{
"type": "null"
}
],
"description": "Individual activities only."
},
"company_code": {
"anyOf": [
{
"type": "string",
"maxLength": 255
},
{
"type": "null"
}
],
"description": "Companies only."
},
"company_name": {
"anyOf": [
{
"type": "string",
"maxLength": 255
},
{
"type": "null"
}
],
"description": "Companies only."
},
"custom_fields": {
"anyOf": [
{
"type": "array",
"items": {
"type": "object",
"required": [
"label",
"value"
],
"properties": {
"label": {
"type": "string",
"maxLength": 255
},
"value": {
"type": "string",
"maxLength": 255
}
}
}
},
{
"type": "null"
}
],
"description": "Extra label/value pairs printed in the seller block."
},
"individual_activity_id": {
"anyOf": [
{
"type": "string",
"maxLength": 255
},
{
"type": "null"
}
],
"description": "Individual activities only."
}
}
},
{
"type": "null"
}
],
"description": "Required unless use_default_seller_info is true."
},
"series": {
"type": "string",
"maxLength": 255,
"minLength": 1,
"description": "Series code. A new code starts its own number counter."
},
"currency": {
"type": "string",
"minLength": 1,
"description": "Currency code from fsaskaita_list_currencies, e.g. EUR."
},
"language": {
"anyOf": [
{
"enum": [
"en",
"lt",
"es",
"de",
"fr",
"pl"
],
"type": "string"
},
{
"type": "null"
}
],
"description": "Language of the PDF and share page. Defaults to lt."
},
"products": {
"type": "array",
"items": {
"type": "object",
"required": [
"name",
"units",
"quantity"
],
"properties": {
"name": {
"type": "string",
"maxLength": 255,
"minLength": 1
},
"price": {
"type": [
"number",
"null"
],
"description": "Unit price excluding VAT. Give exactly one of price, total, total_incl_vat."
},
"total": {
"type": [
"number",
"null"
],
"description": "Line total excluding VAT. Give exactly one of price, total, total_incl_vat."
},
"units": {
"type": "string",
"maxLength": 255,
"minLength": 1,
"description": "Unit of measure, e.g. h, pcs."
},
"quantity": {
"type": "number"
},
"total_incl_vat": {
"type": [
"number",
"null"
],
"description": "Line total including VAT. Give exactly one of price, total, total_incl_vat."
},
"vat_percentage": {
"anyOf": [
{
"type": "number",
"maximum": 100,
"minimum": 0
},
{
"type": "null"
}
],
"description": "VAT rate 0-100. Required on every line for the *vat_invoice types."
}
}
},
"minItems": 1,
"description": "Invoice lines, at least one."
},
"invoice_date": {
"type": "string",
"pattern": "^\\d{4}-\\d{2}-\\d{2}$",
"description": "Issue date, yyyy-mm-dd."
},
"invoice_number": {
"anyOf": [
{
"type": "string",
"maxLength": 255
},
{
"type": "null"
}
],
"description": "Number within the series, unique there. Omit on create to auto-number."
},
"pay_until_date": {
"anyOf": [
{
"type": "string",
"pattern": "^\\d{4}-\\d{2}-\\d{2}$"
},
{
"type": "null"
}
],
"description": "Due date, yyyy-mm-dd."
},
"payment_status": {
"anyOf": [
{
"enum": [
"not_paid",
"paid"
],
"type": "string"
},
{
"type": "null"
}
],
"description": "Defaults to not_paid on create."
},
"payment_options": {
"anyOf": [
{
"type": "array",
"items": {
"type": "object",
"required": [
"type"
],
"properties": {
"type": {
"enum": [
"bank",
"other"
],
"type": "string",
"description": "bank takes the bank fields; other takes free-form fields."
},
"fields": {
"anyOf": [
{
"type": "array",
"items": {
"type": "object",
"required": [
"label",
"value"
],
"properties": {
"label": {
"type": "string",
"maxLength": 255
},
"value": {
"type": "string",
"maxLength": 255
}
}
}
},
{
"type": "null"
}
],
"description": "Required for other."
},
"bank_name": {
"anyOf": [
{
"type": "string",
"maxLength": 255
},
{
"type": "null"
}
],
"description": "Required for bank; not allowed for other."
},
"bank_account": {
"anyOf": [
{
"type": "string",
"maxLength": 255
},
{
"type": "null"
}
],
"description": "IBAN. Required for bank; not allowed for other."
},
"swift_bic_code": {
"anyOf": [
{
"type": "string",
"maxLength": 255
},
{
"type": "null"
}
]
},
"routing_or_sort_number": {
"anyOf": [
{
"type": "string",
"maxLength": 255
},
{
"type": "null"
}
]
}
}
}
},
{
"type": "null"
}
],
"description": "Payment details printed on the invoice."
},
"use_default_seller_info": {
"type": [
"boolean",
"null"
],
"description": "true copies the seller block from the business profile. Then omit seller."
}
}
},
"annotations": {
"title": "Create an invoice",
"destructiveHint": true
}
}| string |
| The UUID from a list or get tool. |
| invoice_date * | string | Issue date, yyyy-mm-dd. |
| invoice_number * | string | The current number of the invoice, e.g. 007 or 7. Always resend it. |
| pay_until_date | any | Due date, yyyy-mm-dd. |
| payment_status | any | Defaults to not_paid on create. |
| payment_options | any | Payment details printed on the invoice. |
| use_default_seller_info | ["boolean","null"] | true copies the seller block from the business profile. Then omit seller. |
{
"name": "fsaskaita_update_invoice",
"title": "Replace an invoice",
"description": "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}.",
"inputSchema": {
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"required": [
"invoice_id",
"type",
"invoice_date",
"series",
"invoice_number",
"currency",
"buyer",
"products"
],
"properties": {
"type": {
"enum": [
"regular_invoice",
"vat_invoice",
"preliminary_invoice",
"preliminary_vat_invoice",
"credit_invoice",
"credit_vat_invoice"
],
"type": "string",
"description": "Invoice type. The *vat_invoice types need vat_percentage on every line."
},
"buyer": {
"type": "object",
"required": [
"type"
],
"properties": {
"type": {
"enum": [
"company",
"individual",
"person"
],
"type": "string",
"description": "company or individual. person is a legacy alias of individual."
},
"email": {
"anyOf": [
{
"type": "string",
"maxLength": 255
},
{
"type": "null"
}
]
},
"phone": {
"anyOf": [
{
"type": "string",
"maxLength": 255
},
{
"type": "null"
}
]
},
"address": {
"anyOf": [
{
"type": "string",
"maxLength": 255
},
{
"type": "null"
}
]
},
"vat_code": {
"anyOf": [
{
"type": "string",
"maxLength": 255
},
{
"type": "null"
}
]
},
"last_name": {
"anyOf": [
{
"type": "string",
"maxLength": 255
},
{
"type": "null"
}
],
"description": "Required for individuals; not allowed for companies."
},
"first_name": {
"anyOf": [
{
"type": "string",
"maxLength": 255
},
{
"type": "null"
}
],
"description": "Required for individuals; not allowed for companies."
},
"company_code": {
"anyOf": [
{
"type": "string",
"maxLength": 255
},
{
"type": "null"
}
],
"description": "Company registration code; not allowed for individuals."
},
"company_name": {
"anyOf": [
{
"type": "string",
"maxLength": 255
},
{
"type": "null"
}
],
"description": "Required for companies; not allowed for individuals."
},
"individual_activity_id": {
"anyOf": [
{
"type": "string",
"maxLength": 255
},
{
"type": "null"
}
],
"description": "Individual activity certificate number; not allowed for companies."
}
}
},
"notes": {
"anyOf": [
{
"type": "string",
"maxLength": 255
},
{
"type": "null"
}
],
"description": "Free text printed under the lines."
},
"seller": {
"anyOf": [
{
"type": "object",
"properties": {
"email": {
"anyOf": [
{
"type": "string",
"maxLength": 255
},
{
"type": "null"
}
]
},
"phone": {
"anyOf": [
{
"type": "string",
"maxLength": 255
},
{
"type": "null"
}
]
},
"address": {
"anyOf": [
{
"type": "string",
"maxLength": 255
},
{
"type": "null"
}
]
},
"vat_code": {
"anyOf": [
{
"type": "string",
"maxLength": 255
},
{
"type": "null"
}
],
"description": "Required for the *vat_invoice types."
},
"last_name": {
"anyOf": [
{
"type": "string",
"maxLength": 255
},
{
"type": "null"
}
],
"description": "Individual activities only."
},
"first_name": {
"anyOf": [
{
"type": "string",
"maxLength": 255
},
{
"type": "null"
}
],
"description": "Individual activities only."
},
"company_code": {
"anyOf": [
{
"type": "string",
"maxLength": 255
},
{
"type": "null"
}
],
"description": "Companies only."
},
"company_name": {
"anyOf": [
{
"type": "string",
"maxLength": 255
},
{
"type": "null"
}
],
"description": "Companies only."
},
"custom_fields": {
"anyOf": [
{
"type": "array",
"items": {
"type": "object",
"required": [
"label",
"value"
],
"properties": {
"label": {
"type": "string",
"maxLength": 255
},
"value": {
"type": "string",
"maxLength": 255
}
}
}
},
{
"type": "null"
}
],
"description": "Extra label/value pairs printed in the seller block."
},
"individual_activity_id": {
"anyOf": [
{
"type": "string",
"maxLength": 255
},
{
"type": "null"
}
],
"description": "Individual activities only."
}
}
},
{
"type": "null"
}
],
"description": "Required unless use_default_seller_info is true."
},
"series": {
"type": "string",
"maxLength": 255,
"minLength": 1,
"description": "Series code. A new code starts its own number counter."
},
"currency": {
"type": "string",
"minLength": 1,
"description": "Currency code from fsaskaita_list_currencies, e.g. EUR."
},
"language": {
"anyOf": [
{
"enum": [
"en",
"lt",
"es",
"de",
"fr",
"pl"
],
"type": "string"
},
{
"type": "null"
}
],
"description": "Language of the PDF and share page. Defaults to lt."
},
"products": {
"type": "array",
"items": {
"type": "object",
"required": [
"name",
"units",
"quantity"
],
"properties": {
"name": {
"type": "string",
"maxLength": 255,
"minLength": 1
},
"price": {
"type": [
"number",
"null"
],
"description": "Unit price excluding VAT. Give exactly one of price, total, total_incl_vat."
},
"total": {
"type": [
"number",
"null"
],
"description": "Line total excluding VAT. Give exactly one of price, total, total_incl_vat."
},
"units": {
"type": "string",
"maxLength": 255,
"minLength": 1,
"description": "Unit of measure, e.g. h, pcs."
},
"quantity": {
"type": "number"
},
"total_incl_vat": {
"type": [
"number",
"null"
],
"description": "Line total including VAT. Give exactly one of price, total, total_incl_vat."
},
"vat_percentage": {
"anyOf": [
{
"type": "number",
"maximum": 100,
"minimum": 0
},
{
"type": "null"
}
],
"description": "VAT rate 0-100. Required on every line for the *vat_invoice types."
}
}
},
"minItems": 1,
"description": "Invoice lines, at least one."
},
"invoice_id": {
"type": "string",
"minLength": 1,
"description": "The UUID from a list or get tool."
},
"invoice_date": {
"type": "string",
"pattern": "^\\d{4}-\\d{2}-\\d{2}$",
"description": "Issue date, yyyy-mm-dd."
},
"invoice_number": {
"type": "string",
"maxLength": 255,
"minLength": 1,
"description": "The current number of the invoice, e.g. 007 or 7. Always resend it."
},
"pay_until_date": {
"anyOf": [
{
"type": "string",
"pattern": "^\\d{4}-\\d{2}-\\d{2}$"
},
{
"type": "null"
}
],
"description": "Due date, yyyy-mm-dd."
},
"payment_status": {
"anyOf": [
{
"enum": [
"not_paid",
"paid"
],
"type": "string"
},
{
"type": "null"
}
],
"description": "Defaults to not_paid on create."
},
"payment_options": {
"anyOf": [
{
"type": "array",
"items": {
"type": "object",
"required": [
"type"
],
"properties": {
"type": {
"enum": [
"bank",
"other"
],
"type": "string",
"description": "bank takes the bank fields; other takes free-form fields."
},
"fields": {
"anyOf": [
{
"type": "array",
"items": {
"type": "object",
"required": [
"label",
"value"
],
"properties": {
"label": {
"type": "string",
"maxLength": 255
},
"value": {
"type": "string",
"maxLength": 255
}
}
}
},
{
"type": "null"
}
],
"description": "Required for other."
},
"bank_name": {
"anyOf": [
{
"type": "string",
"maxLength": 255
},
{
"type": "null"
}
],
"description": "Required for bank; not allowed for other."
},
"bank_account": {
"anyOf": [
{
"type": "string",
"maxLength": 255
},
{
"type": "null"
}
],
"description": "IBAN. Required for bank; not allowed for other."
},
"swift_bic_code": {
"anyOf": [
{
"type": "string",
"maxLength": 255
},
{
"type": "null"
}
]
},
"routing_or_sort_number": {
"anyOf": [
{
"type": "string",
"maxLength": 255
},
{
"type": "null"
}
]
}
}
}
},
{
"type": "null"
}
],
"description": "Payment details printed on the invoice."
},
"use_default_seller_info": {
"type": [
"boolean",
"null"
],
"description": "true copies the seller block from the business profile. Then omit seller."
}
}
},
"annotations": {
"title": "Replace an invoice",
"idempotentHint": true,
"destructiveHint": true
}
}{
"name": "fsaskaita_create_expense",
"title": "Create an expense",
"description": "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).",
"inputSchema": {
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"required": [
"currency",
"total",
"seller",
"date",
"file_base64",
"filename"
],
"properties": {
"vat": {
"type": [
"number",
"null"
],
"description": "VAT amount inside total. Stored but not returned."
},
"date": {
"type": "string",
"pattern": "^\\d{4}-\\d{2}-\\d{2}$",
"description": "Document date, yyyy-mm-dd."
},
"total": {
"type": "number",
"description": "Amount including VAT."
},
"seller": {
"type": "string",
"maxLength": 255,
"minLength": 1,
"description": "Supplier name."
},
"currency": {
"type": "string",
"minLength": 1,
"description": "Currency code from fsaskaita_list_currencies, e.g. EUR."
},
"filename": {
"type": "string",
"maxLength": 255,
"minLength": 1,
"description": "File name with its extension. Allowed: jpeg, jpg, bmp, gif, pdf, png, tiff, xlsx, xls, doc, docx, odf."
},
"file_base64": {
"type": "string",
"maxLength": 4194304,
"minLength": 1,
"description": "The document as standard base64, up to about 3 MB of file bytes."
},
"invoice_number": {
"anyOf": [
{
"type": "string",
"maxLength": 255
},
{
"type": "null"
}
],
"description": "Supplier's document number. Stored but not returned."
}
}
},
"annotations": {
"title": "Create an expense",
"destructiveHint": true
}
}| Supplier's document number. Stored but not returned. |
{
"name": "fsaskaita_update_expense",
"title": "Replace an expense",
"description": "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).",
"inputSchema": {
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"required": [
"expense_id",
"currency",
"total",
"seller",
"date"
],
"properties": {
"vat": {
"type": [
"number",
"null"
],
"description": "VAT amount inside total. Stored but not returned."
},
"date": {
"type": "string",
"pattern": "^\\d{4}-\\d{2}-\\d{2}$",
"description": "Document date, yyyy-mm-dd."
},
"total": {
"type": "number",
"description": "Amount including VAT."
},
"seller": {
"type": "string",
"maxLength": 255,
"minLength": 1,
"description": "Supplier name."
},
"currency": {
"type": "string",
"minLength": 1,
"description": "Currency code from fsaskaita_list_currencies, e.g. EUR."
},
"filename": {
"type": "string",
"maxLength": 255,
"minLength": 1,
"description": "File name with extension. Needed with file_base64."
},
"expense_id": {
"type": "string",
"minLength": 1,
"description": "The UUID from a list or get tool."
},
"file_base64": {
"type": "string",
"maxLength": 4194304,
"minLength": 1,
"description": "The document as standard base64, up to about 3 MB of file bytes."
},
"invoice_number": {
"anyOf": [
{
"type": "string",
"maxLength": 255
},
{
"type": "null"
}
],
"description": "Supplier's document number. Stored but not returned."
}
}
},
"annotations": {
"title": "Replace an expense",
"idempotentHint": true,
"destructiveHint": true
}
}