Fiken MCP by usefulapi

v1.9.1
io.usefulapi/fiken Checked 2 days ago Published 1 day ago

Read invoices, bills, contacts, ledger and bank balances; create drafts and contacts in Fiken.

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

fiken_get_user Get the signed-in user

The Fiken user this connection acts as (name and email). A cheap check that the sign-in works. Fiken: GET /user.

fiken_list_companies List companies

The Fiken companies this connection can access, with their slug (needed as companySlug in every other tool), organization number and VAT type. Companies created after you approved access must be added under Fiken > Rediger konto > Sikkerhet > Apper du har gitt tilgang til. Fiken: GET /companies.

ParameterTypeDescription
pageintegerPage number, starting at 0 (default 0).
pageSizeintegerItems per page, 1-100 (default 25).
sortBystringSort order (default name asc).

fiken_get_company Get a company

One company: name, organization number, VAT type, address, accounting start date and whether the API module is active. Fiken: GET /companies/{companySlug}.

ParameterTypeDescription
companySlug *stringThe company's slug: the `slug` field from fiken_list_companies (for example swagger-test-company).

fiken_list_accounts List chart-of-accounts accounts

The bookkeeping accounts (kontoplan) of the current year. Filter with range, e.g. "3000-3999, 1920". Fiken: GET /companies/{companySlug}/accounts.

ParameterTypeDescription
companySlug *stringThe company's slug: the `slug` field from fiken_list_companies (for example swagger-test-company).
fromAccountintegerFirst account number to include, e.g. 3000.
pageintegerPage number, starting at 0 (default 0).
pageSizeintegerItems per page, 1-100 (default 25).
rangestringComma-separated account numbers or ranges, e.g. "1000-1500, 2000, 7000-7004".
toAccountintegerLast account number to include, e.g. 3999.

fiken_get_account_balances Get account balances on a date

Closing balance of every bookkeeping account on a date (amounts in cents). Fiken: GET /companies/{companySlug}/accountBalances.

ParameterTypeDescription
companySlug *stringThe company's slug: the `slug` field from fiken_list_companies (for example swagger-test-company).
date *stringThe balance date (YYYY-MM-DD).
fromAccountintegerFirst account number to include.
pageintegerPage number, starting at 0 (default 0).
pageSizeintegerItems per page, 1-100 (default 25).
toAccountintegerLast account number to include.

fiken_list_bank_accounts List bank accounts

The company's bank accounts as registered in Fiken. Fiken: GET /companies/{companySlug}/bankAccounts.

ParameterTypeDescription
companySlug *stringThe company's slug: the `slug` field from fiken_list_companies (for example swagger-test-company).
inactivebooleantrue = only inactive bank accounts, false = only active ones.
pageintegerPage number, starting at 0 (default 0).
pageSizeintegerItems per page, 1-100 (default 25).

fiken_get_bank_balances Get bank balances

Bank account balances, optionally on a given date (amounts in cents). Fiken: GET /companies/{companySlug}/bankBalances.

ParameterTypeDescription
companySlug *stringThe company's slug: the `slug` field from fiken_list_companies (for example swagger-test-company).
datestringBalance date (YYYY-MM-DD).
pageintegerPage number, starting at 0 (default 0).
pageSizeintegerItems per page, 1-100 (default 25).

fiken_list_contacts List contacts (customers and suppliers)

Customers and suppliers. Filter by name, organization number, email, customer/supplier flag or modification date. contactId in the result is the id other tools take as customerId/contactId. Fiken: GET /companies/{companySlug}/contacts.

ParameterTypeDescription
companySlug *stringThe company's slug: the `slug` field from fiken_list_companies (for example swagger-test-company).
customerbooleantrue = only customers.
customerNumberintegerCustomer number.
emailstringExact email.
groupstringCustomer group, exact match.
inactivebooleantrue = only inactive contacts, false = only active.
lastModifiedGestringModified on or after (YYYY-MM-DD).
namestringExact name.
organizationNumberstringExact organization number.
pageintegerPage number, starting at 0 (default 0).
pageSizeintegerItems per page, 1-100 (default 25).
sortBystringSort order.
supplierbooleantrue = only suppliers.
supplierNumberintegerSupplier number.

fiken_get_contact Get a contact

One customer or supplier with address, contact persons, notes and account codes. Fiken: GET /companies/{companySlug}/contacts/{contactId}.

ParameterTypeDescription
companySlug *stringThe company's slug: the `slug` field from fiken_list_companies (for example swagger-test-company).
contactId *integerThe contactId from fiken_list_contacts.

fiken_list_invoices List issued invoices

Issued (final) invoices with sale lines, amounts in cents and settled status. Filter by issue date, due date, customer and whether settled. Fiken: GET /companies/{companySlug}/invoices.

ParameterTypeDescription
companySlug *stringThe company's slug: the `slug` field from fiken_list_companies (for example swagger-test-company).
customerIdintegerOnly invoices to this contactId.
dueDateGestringDue on or after (YYYY-MM-DD).
dueDateLestringDue on or before (YYYY-MM-DD).
issueDateGestringIssued on or after (YYYY-MM-DD).
issueDateLestringIssued on or before (YYYY-MM-DD).
lastModifiedGestringModified on or after (YYYY-MM-DD).
orderReferencestringOrder reference.
pageintegerPage number, starting at 0 (default 0).
pageSizeintegerItems per page, 1-100 (default 25).
settledbooleantrue = only settled (paid) invoices, false = only unsettled ones.

fiken_get_invoice Get an invoice

One issued invoice with lines, customer, amounts in cents, settled status and payment/credit-note links. Fiken: GET /companies/{companySlug}/invoices/{invoiceId}.

ParameterTypeDescription
companySlug *stringThe company's slug: the `slug` field from fiken_list_companies (for example swagger-test-company).
invoiceId *integerThe invoiceId from fiken_list_invoices.

fiken_list_invoice_drafts List invoice drafts

Drafts of invoices, offers, order confirmations and credit notes that are not issued yet (a draft has a draftId, an invoice has an invoiceId). Fiken: GET /companies/{companySlug}/invoices/drafts.

ParameterTypeDescription
companySlug *stringThe company's slug: the `slug` field from fiken_list_companies (for example swagger-test-company).
orderReferencestringOrder reference.
pageintegerPage number, starting at 0 (default 0).
pageSizeintegerItems per page, 1-100 (default 25).
uuidstringThe draft's UUID.

fiken_list_credit_notes List credit notes

Issued credit notes. Fiken: GET /companies/{companySlug}/creditNotes.

ParameterTypeDescription
companySlug *stringThe company's slug: the `slug` field from fiken_list_companies (for example swagger-test-company).
customerIdintegerOnly credit notes to this contactId.
issueDateGestringIssued on or after (YYYY-MM-DD).
issueDateLestringIssued on or before (YYYY-MM-DD).
lastModifiedGestringModified on or after (YYYY-MM-DD).
pageintegerPage number, starting at 0 (default 0).
pageSizeintegerItems per page, 1-100 (default 25).
settledbooleantrue = only settled, false = only unsettled.

fiken_list_offers List offers

Issued offers (tilbud). Fiken: GET /companies/{companySlug}/offers.

ParameterTypeDescription
companySlug *stringThe company's slug: the `slug` field from fiken_list_companies (for example swagger-test-company).
pageintegerPage number, starting at 0 (default 0).
pageSizeintegerItems per page, 1-100 (default 25).

fiken_list_order_confirmations List order confirmations

Issued order confirmations. Fiken: GET /companies/{companySlug}/orderConfirmations.

ParameterTypeDescription
companySlug *stringThe company's slug: the `slug` field from fiken_list_companies (for example swagger-test-company).
pageintegerPage number, starting at 0 (default 0).
pageSizeintegerItems per page, 1-100 (default 25).

fiken_list_products List products

The product register with unit price in cents, income account and VAT type. productId is what an invoice-draft line takes. Fiken: GET /companies/{companySlug}/products.

ParameterTypeDescription
companySlug *stringThe company's slug: the `slug` field from fiken_list_companies (for example swagger-test-company).
activebooleantrue = only active products, false = only inactive.
lastModifiedGestringModified on or after (YYYY-MM-DD).
namestringExact product name.
pageintegerPage number, starting at 0 (default 0).
pageSizeintegerItems per page, 1-100 (default 25).
productNumberstringExact product number (varenummer).

fiken_get_product Get a product

One product. Fiken: GET /companies/{companySlug}/products/{productId}.

ParameterTypeDescription
companySlug *stringThe company's slug: the `slug` field from fiken_list_companies (for example swagger-test-company).
productId *integerThe productId from fiken_list_products.

fiken_list_sales List sales

Sales registered without an invoice (cash, card, Vipps and other direct sales), with amounts in cents. Fiken: GET /companies/{companySlug}/sales.

ParameterTypeDescription
companySlug *stringThe company's slug: the `slug` field from fiken_list_companies (for example swagger-test-company).
contactIdintegerOnly sales to this contactId.
dateGestringSale date on or after (YYYY-MM-DD).
dateLestringSale date on or before (YYYY-MM-DD).
lastModifiedGestringModified on or after (YYYY-MM-DD).
pageintegerPage number, starting at 0 (default 0).
pageSizeintegerItems per page, 1-100 (default 25).
saleNumberstringSale number.
settledbooleantrue = only settled sales, false = only unsettled.

fiken_get_sale Get a sale

One sale with lines, payments and settlement status. Fiken: GET /companies/{companySlug}/sales/{saleId}.

ParameterTypeDescription
companySlug *stringThe company's slug: the `slug` field from fiken_list_companies (for example swagger-test-company).
saleId *integerThe saleId from fiken_list_sales.

fiken_list_purchases List purchases (supplier bills and expenses)

Purchases and supplier bills with amounts in cents and paid status. Fiken: GET /companies/{companySlug}/purchases.

ParameterTypeDescription
companySlug *stringThe company's slug: the `slug` field from fiken_list_companies (for example swagger-test-company).
contactIdintegerOnly purchases from this supplier contactId.
dateGestringPurchase date on or after (YYYY-MM-DD).
dateLestringPurchase date on or before (YYYY-MM-DD).
lastModifiedGestringModified on or after (YYYY-MM-DD).
pageintegerPage number, starting at 0 (default 0).
pageSizeintegerItems per page, 1-100 (default 25).
paidbooleantrue = only paid purchases, false = only unpaid.
sortBystringSort order.

fiken_get_purchase Get a purchase

One purchase with lines, payments and attachments list. Fiken: GET /companies/{companySlug}/purchases/{purchaseId}.

ParameterTypeDescription
companySlug *stringThe company's slug: the `slug` field from fiken_list_companies (for example swagger-test-company).
purchaseId *integerThe purchaseId from fiken_list_purchases.

fiken_list_journal_entries List journal entries

General-ledger journal entries (bilag) with their postings. Fiken: GET /companies/{companySlug}/journalEntries.

ParameterTypeDescription
companySlug *stringThe company's slug: the `slug` field from fiken_list_companies (for example swagger-test-company).
dateGestringEntry date on or after (YYYY-MM-DD).
dateLestringEntry date on or before (YYYY-MM-DD).
lastModifiedGestringModified on or after (YYYY-MM-DD).
pageintegerPage number, starting at 0 (default 0).
pageSizeintegerItems per page, 1-100 (default 25).

fiken_list_transactions List transactions

Ledger transactions (one per bookkeeping event) with their entries. Fiken: GET /companies/{companySlug}/transactions.

ParameterTypeDescription
companySlug *stringThe company's slug: the `slug` field from fiken_list_companies (for example swagger-test-company).
createdDateGestringCreated on or after (YYYY-MM-DD).
createdDateLestringCreated on or before (YYYY-MM-DD).
lastModifiedGestringModified on or after (YYYY-MM-DD).
pageintegerPage number, starting at 0 (default 0).
pageSizeintegerItems per page, 1-100 (default 25).

fiken_list_projects List projects

Projects with number, name and completion status. Fiken: GET /companies/{companySlug}/projects.

ParameterTypeDescription
companySlug *stringThe company's slug: the `slug` field from fiken_list_companies (for example swagger-test-company).
completedbooleantrue = only completed projects, false = only open ones.
namestringProject name.
pageintegerPage number, starting at 0 (default 0).
pageSizeintegerItems per page, 1-100 (default 25).

fiken_list_time_entries List time entries

Registered hours (Fiken Timeføring). Fiken: GET /companies/{companySlug}/timeEntries.

ParameterTypeDescription
companySlug *stringThe company's slug: the `slug` field from fiken_list_companies (for example swagger-test-company).
dateGestringDate on or after (YYYY-MM-DD).
dateLestringDate on or before (YYYY-MM-DD).
invoicedbooleantrue = only invoiced hours, false = only uninvoiced.
pageintegerPage number, starting at 0 (default 0).
pageSizeintegerItems per page, 1-100 (default 25).
projectIdintegerOnly this project.
timeUserIdintegerOnly this time-tracking user.

fiken_list_inbox_documents List inbox documents

Documents waiting in the company's inbox (receipts and bills uploaded for bookkeeping). Fiken: GET /companies/{companySlug}/inbox.

ParameterTypeDescription
companySlug *stringThe company's slug: the `slug` field from fiken_list_companies (for example swagger-test-company).
namestringFile name.
pageintegerPage number, starting at 0 (default 0).
pageSizeintegerItems per page, 1-100 (default 25).
sortBystringSort order.
statusstringWhether the document is already used for a posting.

fiken_create_contact Create a contact

Create a customer and/or supplier contact. Set customer=true to invoice it later. The new contactId comes back in `id`. Fiken: POST /companies/{companySlug}/contacts.

ParameterTypeDescription
companySlug *stringThe company's slug: the `slug` field from fiken_list_companies (for example swagger-test-company).
name *stringContact name.
addressobjectPostal address.
bankAccountNumberstringBank account number (11 digits).
currencystringDefault invoice currency, ISO 4217 (NOK, EUR, ...).
customerbooleantrue if the contact is a customer (needed before you can invoice it).
daysUntilInvoicingDueDateintegerDefault days until the due date.
discountnumberDefault discount in percent.
emailstringEmail address.
languagestringLanguage of documents sent to this contact.
organizationNumberstringBrreg organization number.
phoneNumberstringPhone number.
supplierbooleantrue if the contact is a supplier.

fiken_create_product Create a product

Add a product or service to the product register, for use on invoice lines. incomeAccount is a revenue account such as 3000 (see fiken_list_accounts). Fiken: POST /companies/{companySlug}/products.

ParameterTypeDescription
companySlug *stringThe company's slug: the `slug` field from fiken_list_companies (for example swagger-test-company).
incomeAccount *stringRevenue account that receives the income, e.g. 3000.
name *stringProduct name.
vatType *stringVAT type, HIGH (25 %) is the most common.
activebooleanWhether the product is in use.
notestringNote.
productNumberstringYour product number (varenummer).
stocknumberStock count.
unitPriceintegerNet unit price (excl. VAT), an integer in cents (100000 = 1000.00 kr).

fiken_create_invoice_draft Create an invoice draft

Create a DRAFT of an invoice, offer or order confirmation. A draft is not issued, not booked and not sent; it can be edited or deleted in Fiken. The draft's id comes back in `id`. To issue it use fiken_issue_invoice_from_draft (type invoice only). Amounts are integers in cents. Fiken: POST /companies/{companySlug}/invoices/drafts.

ParameterTypeDescription
companySlug *stringThe company's slug: the `slug` field from fiken_list_companies (for example swagger-test-company).
customerId *integerThe contactId of the customer (a contact with customer=true).
daysUntilDueDate *integerDays from the issue date until the invoice is due.
lines *arrayThe document lines.
bankAccountNumberstringBank account number to pay into.
contactPersonIdintegerContact person id of the customer.
currencystringISO 4217 currency (default NOK).
invoiceTextstringText printed above the lines.
issueDatestringIssue date, default today (YYYY-MM-DD).
orderReferencestringOrder reference, needed for EHF.
ourReferencestringYour reference.
paymentAccountstringPayment account code, e.g. 1920:10001.
projectIdintegerProject id.
typestringKind of document the draft becomes.
yourReferencestringThe customer's reference.

fiken_issue_invoice_from_draft Issue an invoice from a draft (IRREVERSIBLE)

IRREVERSIBLE. Turns an invoice draft into a real invoice: it gets the next invoice number and is booked in the ledger (accounts receivable and revenue, VAT). An issued invoice cannot be deleted, only corrected with a credit note. It is NOT sent to the customer: use fiken_send_invoice for that. Only call this when the user has clearly asked to issue this exact draft. Fiken: POST /companies/{companySlug}/invoices/drafts/{draftId}/createInvoice.

ParameterTypeDescription
companySlug *stringThe company's slug: the `slug` field from fiken_list_companies (for example swagger-test-company).
draftId *integerThe draftId from fiken_list_invoice_drafts or fiken_create_invoice_draft.

fiken_send_invoice Send an invoice to the customer (IRREVERSIBLE)

IRREVERSIBLE. Delivers an issued invoice to the customer by email, EHF, eFaktura, SMS or physical letter (a letter costs extra and goes to Norwegian addresses only). A sent message cannot be recalled and Fiken records the invoice as sent. Only call this when the user has clearly asked to send this exact invoice to this recipient. method lists delivery channels in priority order; Fiken uses the first one that works. Fiken: POST /companies/{companySlug}/invoices/send.

ParameterTypeDescription
companySlug *stringThe company's slug: the `slug` field from fiken_list_companies (for example swagger-test-company).
invoiceId *integerThe invoiceId of an ISSUED invoice (from fiken_list_invoices).
method *arrayDelivery channels in priority order, e.g. ["email"]. "auto" picks from what the customer has registered.
emailSendOptionstringHow an email carries the invoice.
includeDocumentAttachmentsbooleanInclude the invoice's attachments (not for letters).
mergeInvoiceAndAttachmentsbooleanMerge invoice and attachments into one PDF (with emailSendOption=attachment).
messagestringMessage sent along with the invoice.
mobileNumberstringRecipient mobile number (SMS); defaults to the customer's.
organizationNumberstringRecipient organization number (EHF); defaults to the customer's.
recipientEmailstringRecipient email (defaults to the customer's).
recipientNamestringRecipient name.

fiken_create_purchase_draft Create a purchase draft

WRITE: Create a DRAFT purchase (supplier bill or cash purchase). It is saved UNPAID, because this server registers no payments. The draft is not booked; fiken_create_purchase books it. The draft id comes back in `id`. Ask the user before creating or booking. Fiken: POST /companies/{companySlug}/purchases/drafts.

ParameterTypeDescription
companySlug *stringThe company's slug: the `slug` field from fiken_list_companies (for example swagger-test-company).
lines *arrayThe purchase lines.
cashbooleantrue = a cash purchase (bought and paid at once), false = a supplier bill.
contactIdintegercontactId of the supplier (from fiken_list_contacts).
currencystringISO 4217 currency (default NOK).
dueDatestringDue date (YYYY-MM-DD).
idempotencyKeystringOptional. Reuse the same key when you retry this exact call, so Fiken does not create it twice (kept one year).
invoiceIssueDatestringIssue date of the supplier's invoice (YYYY-MM-DD).
invoiceNumberstringThe supplier's invoice number.
kidstringNorwegian KID number.
projectIdintegerProject id for the whole purchase.

fiken_create_purchase Book a purchase draft

WRITE: Book a purchase draft as a purchase in the ledger (supplier debt and expense, with VAT). Ask the user before booking. This server cannot delete a booked purchase; Fiken can. The new purchase id comes back in `id`. Fiken: POST /companies/{companySlug}/purchases/drafts/{draftId}/createPurchase.

ParameterTypeDescription
companySlug *stringThe company's slug: the `slug` field from fiken_list_companies (for example swagger-test-company).
draftId *The draftId from fiken_create_purchase_draft (its `id`).
idempotencyKeystringOptional. Reuse the same key when you retry this exact call, so Fiken does not create it twice (kept one year).

fiken_create_sale_draft Create a sale draft

WRITE: Create a DRAFT sale without an invoice. It is saved UNPAID, because this server registers no payments. The draft is not booked; fiken_create_sale books it. The draft id comes back in `id`. Ask the user before creating or booking. Fiken: POST /companies/{companySlug}/sales/drafts.

ParameterTypeDescription
companySlug *stringThe company's slug: the `slug` field from fiken_list_companies (for example swagger-test-company).
lines *arrayThe sale lines.
cashbooleantrue = a cash sale (sold and paid at once), false = a sale on account.
contactIdintegercontactId of the customer (from fiken_list_contacts).
currencystringISO 4217 currency (default NOK).
dueDatestringDue date (YYYY-MM-DD).
idempotencyKeystringOptional. Reuse the same key when you retry this exact call, so Fiken does not create it twice (kept one year).
invoiceIssueDatestringSale date (YYYY-MM-DD).
invoiceNumberstringSale or invoice number.
kidstringNorwegian KID number.
projectIdintegerProject id for the whole sale.

fiken_create_sale Book a sale draft

WRITE: Book a sale draft as a sale in the ledger (revenue, with VAT). Ask the user before booking. This server cannot delete a booked sale; Fiken can. The new sale id comes back in `id`. Fiken: POST /companies/{companySlug}/sales/drafts/{draftId}/createSale.

ParameterTypeDescription
companySlug *stringThe company's slug: the `slug` field from fiken_list_companies (for example swagger-test-company).
draftId *The draftId from fiken_create_sale_draft (its `id`).
idempotencyKeystringOptional. Reuse the same key when you retry this exact call, so Fiken does not create it twice (kept one year).