Bokio MCP by usefulapi
v1.12.0Read Bokio accounts, invoices and customers; create drafts and journal entries.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
bokio_get_company_information Get company information
The connected Bokio company: name, organisation number, company type, address, contact details.
bokio_list_fiscal_years List fiscal years
Fiscal years (id, start and end date, cash or accrual accounting method, open or closed).
| Parameter | Type | Description |
|---|---|---|
page | integer | Page number, starting at 1 (default 1). |
pageSize | integer | Items per page, 1-100 (default 25). |
query | string | Optional Bokio filter: property, operator, value, joined with && (operators ==, !=, <, <=, >, >=, ~ for contains). Filterable fields: startDate, endDate, accountingMethod, status. Example: status==ope… |
bokio_get_fiscal_year Get a fiscal year
One fiscal year by id.
| Parameter | Type | Description |
|---|---|---|
fiscalYearId * | string | The fiscal year id (a GUID). |
bokio_list_chart_of_accounts List chart of accounts
The company's complete chart of accounts (account number, name, base-plan or custom). Not paginated.
| Parameter | Type | Description |
|---|---|---|
query | string | Optional Bokio filter: property, operator, value, joined with && (operators ==, !=, <, <=, >, >=, ~ for contains). Filterable fields: account, name, accountType. Example: account>=3000&&account<4000 |
bokio_get_account Get an account
One account of the chart of accounts by its number (for example 1930).
| Parameter | Type | Description |
|---|---|---|
account * | integer | The account number, for example 1930. |
bokio_list_journal_entries List journal entries
Bookkeeping journal entries (verifications) with their debit/credit lines. Filter by date or number.
| Parameter | Type | Description |
|---|---|---|
page | integer | Page number, starting at 1 (default 1). |
pageSize | integer | Items per page, 1-100 (default 25). |
query | string | Optional Bokio filter: property, operator, value, joined with && (operators ==, !=, <, <=, >, >=, ~ for contains). Filterable fields: date, journalEntryNumber, title, reversedByJournalEntryId, reversi… |
bokio_get_journal_entry Get a journal entry
One journal entry (verification) with its lines.
| Parameter | Type | Description |
|---|---|---|
journalEntryId * | string | The journal entry id (a GUID). |
bokio_list_customers List customers
Customers of the company, highest customer number first.
| Parameter | Type | Description |
|---|---|---|
page | integer | Page number, starting at 1 (default 1). |
pageSize | integer | Items per page, 1-100 (default 25). |
query | string | Optional Bokio filter: property, operator, value, joined with && (operators ==, !=, <, <=, >, >=, ~ for contains). Filterable fields: name, customerNumber, type, vatNumber, orgNumber, modifiedDateTime… |
bokio_get_customer Get a customer
One customer by id.
| Parameter | Type | Description |
|---|---|---|
customerId * | string | The customer id (a GUID). |
bokio_list_invoices List invoices
Sales invoices (draft, published, paid, overdue, credited) with line items and totals.
| Parameter | Type | Description |
|---|---|---|
page | integer | Page number, starting at 1 (default 1). |
pageSize | integer | Items per page, 1-100 (default 25). |
projectId | string | The project id (a GUID). |
query | string | Optional Bokio filter: property, operator, value, joined with && (operators ==, !=, <, <=, >, >=, ~ for contains). Filterable fields: type, status, invoiceDate, dueDate, customerRef.id, customerRef.cu… |
bokio_get_invoice Get an invoice
One sales invoice by id, with line items.
| Parameter | Type | Description |
|---|---|---|
invoiceId * | string | The invoice id (a GUID). |
bokio_list_invoice_payments List invoice payments
Payments registered against one sales invoice.
| Parameter | Type | Description |
|---|---|---|
invoiceId * | string | The invoice id (a GUID). |
page | integer | Page number, starting at 1 (default 1). |
pageSize | integer | Items per page, 1-100 (default 25). |
bokio_list_credit_notes List credit notes
Credit notes (draft or published).
| Parameter | Type | Description |
|---|---|---|
page | integer | Page number, starting at 1 (default 1). |
pageSize | integer | Items per page, 1-100 (default 25). |
query | string | Optional Bokio filter: property, operator, value, joined with && (operators ==, !=, <, <=, >, >=, ~ for contains). Filterable fields: type, status, creditDate, dueDate, customerRef, orderNumberReferen… |
bokio_get_credit_note Get a credit note
One credit note by id, with line items.
| Parameter | Type | Description |
|---|---|---|
creditNoteId * | string | The credit note id (a GUID). |
bokio_list_items List items (products and services)
Reusable invoice items: description, product type, unit price, tax rate, bookkeeping account.
| Parameter | Type | Description |
|---|---|---|
page | integer | Page number, starting at 1 (default 1). |
pageSize | integer | Items per page, 1-100 (default 25). |
query | string | Optional Bokio filter: property, operator, value, joined with && (operators ==, !=, <, <=, >, >=, ~ for contains). Filterable fields: description, itemType, productType, unitType, unitPrice, taxRate.… |
bokio_list_suppliers List suppliers
Suppliers of the company with payment details.
| Parameter | Type | Description |
|---|---|---|
page | integer | Page number, starting at 1 (default 1). |
pageSize | integer | Items per page, 1-100 (default 25). |
query | string | Optional Bokio filter: property, operator, value, joined with && (operators ==, !=, <, <=, >, >=, ~ for contains). Filterable fields: name, vatNumber, orgNumber. Example: name~Telia |
bokio_list_supplier_invoices List supplier invoices
Supplier (purchase) invoices with remaining amounts and their journal entry.
| Parameter | Type | Description |
|---|---|---|
page | integer | Page number, starting at 1 (default 1). |
pageSize | integer | Items per page, 1-100 (default 25). |
projectId | string | The project id (a GUID). |
query | string | Optional Bokio filter: property, operator, value, joined with && (operators ==, !=, <, <=, >, >=, ~ for contains). Filterable fields: supplierRef.id, invoiceNumber, invoiceDate, dueDate, totalAmount,… |
bokio_create_customer Create a customer
Create a customer in the company's Bokio. If customerNumber is omitted Bokio picks the next number. Not idempotent: calling twice creates two customers; check bokio_list_customers first.
| Parameter | Type | Description |
|---|---|---|
name * | string | |
type * | string | |
address | object | Postal address. |
customerNumber | string | |
email | string | Default contact e-mail. |
language | string | |
orgNumber | string | Organisation number (companies) or personal number (private). |
paymentTerms | string | Payment terms in days, as Bokio expects, for example 30. |
phone | string | Default contact phone. |
vatNumber | string |
bokio_create_invoice_draft Create an invoice draft
Create a DRAFT sales invoice. Nothing is bookkept and nothing is sent until bokio_publish_invoice. Not idempotent: calling twice creates two drafts.
| Parameter | Type | Description |
|---|---|---|
customerId * | string | The customer id from bokio_list_customers (a GUID). |
invoiceDate * | string | Invoice date (YYYY-MM-DD). |
lineItems * | array | |
buyerReference | string | |
currency | string | ISO 4217 code, default SEK. |
currencyRate | number | Rate to SEK when the currency is not SEK. |
dueDate | string | Due date (YYYY-MM-DD). |
orderNumberReference | string |
bokio_publish_invoice Publish an invoice (IRREVERSIBLE)
IRREVERSIBLE: publish a draft invoice. It becomes official and immutable and gets its invoice number. This does NOT bookkeep it (use bokio_record_invoice for that) and Bokio does NOT e-mail it to the customer through the API. Only call when the user has confirmed this exact invoice.
| Parameter | Type | Description |
|---|---|---|
invoiceId * | string | The draft invoice id (a GUID). |
bokio_record_invoice Bookkeep an invoice (IRREVERSIBLE)
IRREVERSIBLE: record (bookkeep) a published invoice: Bokio posts it to the ledger using the accounts of its line items. Call after bokio_publish_invoice, only when the user has confirmed.
| Parameter | Type | Description |
|---|---|---|
invoiceId * | string | The published invoice id (a GUID). |
bokio_create_journal_entry Create a journal entry (IRREVERSIBLE)
IRREVERSIBLE bookkeeping: post a journal entry (verification) to the ledger. Debits must equal credits. It can only be undone by reversing it with bokio_reverse_journal_entry, which posts a counter-entry. Not idempotent: calling twice posts two entries. Only call when the user has confirmed the exact lines.
| Parameter | Type | Description |
|---|---|---|
date * | string | Booking date, inside an open fiscal year (YYYY-MM-DD). |
items * | array | |
title * | string |
bokio_reverse_journal_entry Reverse a journal entry (IRREVERSIBLE)
IRREVERSIBLE: post a counter-entry that cancels a journal entry. Only entries created through the API can be reversed; the original stays in the ledger. Only call when the user has confirmed.
| Parameter | Type | Description |
|---|---|---|
journalEntryId * | string | The journal entry id (a GUID). |