Bokio MCP by usefulapi

v1.12.0
io.usefulapi/bokio Checked 1 day ago Published 11 hours ago

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

ParameterTypeDescription
pageintegerPage number, starting at 1 (default 1).
pageSizeintegerItems per page, 1-100 (default 25).
querystringOptional 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.

ParameterTypeDescription
fiscalYearId *stringThe 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.

ParameterTypeDescription
querystringOptional 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).

ParameterTypeDescription
account *integerThe 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.

ParameterTypeDescription
pageintegerPage number, starting at 1 (default 1).
pageSizeintegerItems per page, 1-100 (default 25).
querystringOptional 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.

ParameterTypeDescription
journalEntryId *stringThe journal entry id (a GUID).

bokio_list_customers List customers

Customers of the company, highest customer number first.

ParameterTypeDescription
pageintegerPage number, starting at 1 (default 1).
pageSizeintegerItems per page, 1-100 (default 25).
querystringOptional 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.

ParameterTypeDescription
customerId *stringThe customer id (a GUID).

bokio_list_invoices List invoices

Sales invoices (draft, published, paid, overdue, credited) with line items and totals.

ParameterTypeDescription
pageintegerPage number, starting at 1 (default 1).
pageSizeintegerItems per page, 1-100 (default 25).
projectIdstringThe project id (a GUID).
querystringOptional 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.

ParameterTypeDescription
invoiceId *stringThe invoice id (a GUID).

bokio_list_invoice_payments List invoice payments

Payments registered against one sales invoice.

ParameterTypeDescription
invoiceId *stringThe invoice id (a GUID).
pageintegerPage number, starting at 1 (default 1).
pageSizeintegerItems per page, 1-100 (default 25).

bokio_list_credit_notes List credit notes

Credit notes (draft or published).

ParameterTypeDescription
pageintegerPage number, starting at 1 (default 1).
pageSizeintegerItems per page, 1-100 (default 25).
querystringOptional 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.

ParameterTypeDescription
creditNoteId *stringThe 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.

ParameterTypeDescription
pageintegerPage number, starting at 1 (default 1).
pageSizeintegerItems per page, 1-100 (default 25).
querystringOptional 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.

ParameterTypeDescription
pageintegerPage number, starting at 1 (default 1).
pageSizeintegerItems per page, 1-100 (default 25).
querystringOptional 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.

ParameterTypeDescription
pageintegerPage number, starting at 1 (default 1).
pageSizeintegerItems per page, 1-100 (default 25).
projectIdstringThe project id (a GUID).
querystringOptional 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.

ParameterTypeDescription
name *string
type *string
addressobjectPostal address.
customerNumberstring
emailstringDefault contact e-mail.
languagestring
orgNumberstringOrganisation number (companies) or personal number (private).
paymentTermsstringPayment terms in days, as Bokio expects, for example 30.
phonestringDefault contact phone.
vatNumberstring

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.

ParameterTypeDescription
customerId *stringThe customer id from bokio_list_customers (a GUID).
invoiceDate *stringInvoice date (YYYY-MM-DD).
lineItems *array
buyerReferencestring
currencystringISO 4217 code, default SEK.
currencyRatenumberRate to SEK when the currency is not SEK.
dueDatestringDue date (YYYY-MM-DD).
orderNumberReferencestring

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.

ParameterTypeDescription
invoiceId *stringThe 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.

ParameterTypeDescription
invoiceId *stringThe 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.

ParameterTypeDescription
date *stringBooking 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.

ParameterTypeDescription
journalEntryId *stringThe journal entry id (a GUID).