Fiken MCP by usefulapi
v1.9.1Read 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.
| Parameter | Type | Description |
|---|---|---|
page | integer | Page number, starting at 0 (default 0). |
pageSize | integer | Items per page, 1-100 (default 25). |
sortBy | string | Sort 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}.
| Parameter | Type | Description |
|---|---|---|
companySlug * | string | The 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.
| Parameter | Type | Description |
|---|---|---|
companySlug * | string | The company's slug: the `slug` field from fiken_list_companies (for example swagger-test-company). |
fromAccount | integer | First account number to include, e.g. 3000. |
page | integer | Page number, starting at 0 (default 0). |
pageSize | integer | Items per page, 1-100 (default 25). |
range | string | Comma-separated account numbers or ranges, e.g. "1000-1500, 2000, 7000-7004". |
toAccount | integer | Last 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.
| Parameter | Type | Description |
|---|---|---|
companySlug * | string | The company's slug: the `slug` field from fiken_list_companies (for example swagger-test-company). |
date * | string | The balance date (YYYY-MM-DD). |
fromAccount | integer | First account number to include. |
page | integer | Page number, starting at 0 (default 0). |
pageSize | integer | Items per page, 1-100 (default 25). |
toAccount | integer | Last 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.
| Parameter | Type | Description |
|---|---|---|
companySlug * | string | The company's slug: the `slug` field from fiken_list_companies (for example swagger-test-company). |
inactive | boolean | true = only inactive bank accounts, false = only active ones. |
page | integer | Page number, starting at 0 (default 0). |
pageSize | integer | Items 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.
| Parameter | Type | Description |
|---|---|---|
companySlug * | string | The company's slug: the `slug` field from fiken_list_companies (for example swagger-test-company). |
date | string | Balance date (YYYY-MM-DD). |
page | integer | Page number, starting at 0 (default 0). |
pageSize | integer | Items 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.
| Parameter | Type | Description |
|---|---|---|
companySlug * | string | The company's slug: the `slug` field from fiken_list_companies (for example swagger-test-company). |
customer | boolean | true = only customers. |
customerNumber | integer | Customer number. |
email | string | Exact email. |
group | string | Customer group, exact match. |
inactive | boolean | true = only inactive contacts, false = only active. |
lastModifiedGe | string | Modified on or after (YYYY-MM-DD). |
name | string | Exact name. |
organizationNumber | string | Exact organization number. |
page | integer | Page number, starting at 0 (default 0). |
pageSize | integer | Items per page, 1-100 (default 25). |
sortBy | string | Sort order. |
supplier | boolean | true = only suppliers. |
supplierNumber | integer | Supplier 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}.
| Parameter | Type | Description |
|---|---|---|
companySlug * | string | The company's slug: the `slug` field from fiken_list_companies (for example swagger-test-company). |
contactId * | integer | The 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.
| Parameter | Type | Description |
|---|---|---|
companySlug * | string | The company's slug: the `slug` field from fiken_list_companies (for example swagger-test-company). |
customerId | integer | Only invoices to this contactId. |
dueDateGe | string | Due on or after (YYYY-MM-DD). |
dueDateLe | string | Due on or before (YYYY-MM-DD). |
issueDateGe | string | Issued on or after (YYYY-MM-DD). |
issueDateLe | string | Issued on or before (YYYY-MM-DD). |
lastModifiedGe | string | Modified on or after (YYYY-MM-DD). |
orderReference | string | Order reference. |
page | integer | Page number, starting at 0 (default 0). |
pageSize | integer | Items per page, 1-100 (default 25). |
settled | boolean | true = 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}.
| Parameter | Type | Description |
|---|---|---|
companySlug * | string | The company's slug: the `slug` field from fiken_list_companies (for example swagger-test-company). |
invoiceId * | integer | The 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.
| Parameter | Type | Description |
|---|---|---|
companySlug * | string | The company's slug: the `slug` field from fiken_list_companies (for example swagger-test-company). |
orderReference | string | Order reference. |
page | integer | Page number, starting at 0 (default 0). |
pageSize | integer | Items per page, 1-100 (default 25). |
uuid | string | The draft's UUID. |
fiken_list_credit_notes List credit notes
Issued credit notes. Fiken: GET /companies/{companySlug}/creditNotes.
| Parameter | Type | Description |
|---|---|---|
companySlug * | string | The company's slug: the `slug` field from fiken_list_companies (for example swagger-test-company). |
customerId | integer | Only credit notes to this contactId. |
issueDateGe | string | Issued on or after (YYYY-MM-DD). |
issueDateLe | string | Issued on or before (YYYY-MM-DD). |
lastModifiedGe | string | Modified on or after (YYYY-MM-DD). |
page | integer | Page number, starting at 0 (default 0). |
pageSize | integer | Items per page, 1-100 (default 25). |
settled | boolean | true = only settled, false = only unsettled. |
fiken_list_offers List offers
Issued offers (tilbud). Fiken: GET /companies/{companySlug}/offers.
| Parameter | Type | Description |
|---|---|---|
companySlug * | string | The company's slug: the `slug` field from fiken_list_companies (for example swagger-test-company). |
page | integer | Page number, starting at 0 (default 0). |
pageSize | integer | Items per page, 1-100 (default 25). |
fiken_list_order_confirmations List order confirmations
Issued order confirmations. Fiken: GET /companies/{companySlug}/orderConfirmations.
| Parameter | Type | Description |
|---|---|---|
companySlug * | string | The company's slug: the `slug` field from fiken_list_companies (for example swagger-test-company). |
page | integer | Page number, starting at 0 (default 0). |
pageSize | integer | Items 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.
| Parameter | Type | Description |
|---|---|---|
companySlug * | string | The company's slug: the `slug` field from fiken_list_companies (for example swagger-test-company). |
active | boolean | true = only active products, false = only inactive. |
lastModifiedGe | string | Modified on or after (YYYY-MM-DD). |
name | string | Exact product name. |
page | integer | Page number, starting at 0 (default 0). |
pageSize | integer | Items per page, 1-100 (default 25). |
productNumber | string | Exact product number (varenummer). |
fiken_get_product Get a product
One product. Fiken: GET /companies/{companySlug}/products/{productId}.
| Parameter | Type | Description |
|---|---|---|
companySlug * | string | The company's slug: the `slug` field from fiken_list_companies (for example swagger-test-company). |
productId * | integer | The 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.
| Parameter | Type | Description |
|---|---|---|
companySlug * | string | The company's slug: the `slug` field from fiken_list_companies (for example swagger-test-company). |
contactId | integer | Only sales to this contactId. |
dateGe | string | Sale date on or after (YYYY-MM-DD). |
dateLe | string | Sale date on or before (YYYY-MM-DD). |
lastModifiedGe | string | Modified on or after (YYYY-MM-DD). |
page | integer | Page number, starting at 0 (default 0). |
pageSize | integer | Items per page, 1-100 (default 25). |
saleNumber | string | Sale number. |
settled | boolean | true = 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}.
| Parameter | Type | Description |
|---|---|---|
companySlug * | string | The company's slug: the `slug` field from fiken_list_companies (for example swagger-test-company). |
saleId * | integer | The 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.
| Parameter | Type | Description |
|---|---|---|
companySlug * | string | The company's slug: the `slug` field from fiken_list_companies (for example swagger-test-company). |
contactId | integer | Only purchases from this supplier contactId. |
dateGe | string | Purchase date on or after (YYYY-MM-DD). |
dateLe | string | Purchase date on or before (YYYY-MM-DD). |
lastModifiedGe | string | Modified on or after (YYYY-MM-DD). |
page | integer | Page number, starting at 0 (default 0). |
pageSize | integer | Items per page, 1-100 (default 25). |
paid | boolean | true = only paid purchases, false = only unpaid. |
sortBy | string | Sort order. |
fiken_get_purchase Get a purchase
One purchase with lines, payments and attachments list. Fiken: GET /companies/{companySlug}/purchases/{purchaseId}.
| Parameter | Type | Description |
|---|---|---|
companySlug * | string | The company's slug: the `slug` field from fiken_list_companies (for example swagger-test-company). |
purchaseId * | integer | The 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.
| Parameter | Type | Description |
|---|---|---|
companySlug * | string | The company's slug: the `slug` field from fiken_list_companies (for example swagger-test-company). |
dateGe | string | Entry date on or after (YYYY-MM-DD). |
dateLe | string | Entry date on or before (YYYY-MM-DD). |
lastModifiedGe | string | Modified on or after (YYYY-MM-DD). |
page | integer | Page number, starting at 0 (default 0). |
pageSize | integer | Items 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.
| Parameter | Type | Description |
|---|---|---|
companySlug * | string | The company's slug: the `slug` field from fiken_list_companies (for example swagger-test-company). |
createdDateGe | string | Created on or after (YYYY-MM-DD). |
createdDateLe | string | Created on or before (YYYY-MM-DD). |
lastModifiedGe | string | Modified on or after (YYYY-MM-DD). |
page | integer | Page number, starting at 0 (default 0). |
pageSize | integer | Items per page, 1-100 (default 25). |
fiken_list_projects List projects
Projects with number, name and completion status. Fiken: GET /companies/{companySlug}/projects.
| Parameter | Type | Description |
|---|---|---|
companySlug * | string | The company's slug: the `slug` field from fiken_list_companies (for example swagger-test-company). |
completed | boolean | true = only completed projects, false = only open ones. |
name | string | Project name. |
page | integer | Page number, starting at 0 (default 0). |
pageSize | integer | Items per page, 1-100 (default 25). |
fiken_list_time_entries List time entries
Registered hours (Fiken Timeføring). Fiken: GET /companies/{companySlug}/timeEntries.
| Parameter | Type | Description |
|---|---|---|
companySlug * | string | The company's slug: the `slug` field from fiken_list_companies (for example swagger-test-company). |
dateGe | string | Date on or after (YYYY-MM-DD). |
dateLe | string | Date on or before (YYYY-MM-DD). |
invoiced | boolean | true = only invoiced hours, false = only uninvoiced. |
page | integer | Page number, starting at 0 (default 0). |
pageSize | integer | Items per page, 1-100 (default 25). |
projectId | integer | Only this project. |
timeUserId | integer | Only 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.
| Parameter | Type | Description |
|---|---|---|
companySlug * | string | The company's slug: the `slug` field from fiken_list_companies (for example swagger-test-company). |
name | string | File name. |
page | integer | Page number, starting at 0 (default 0). |
pageSize | integer | Items per page, 1-100 (default 25). |
sortBy | string | Sort order. |
status | string | Whether 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.
| Parameter | Type | Description |
|---|---|---|
companySlug * | string | The company's slug: the `slug` field from fiken_list_companies (for example swagger-test-company). |
name * | string | Contact name. |
address | object | Postal address. |
bankAccountNumber | string | Bank account number (11 digits). |
currency | string | Default invoice currency, ISO 4217 (NOK, EUR, ...). |
customer | boolean | true if the contact is a customer (needed before you can invoice it). |
daysUntilInvoicingDueDate | integer | Default days until the due date. |
discount | number | Default discount in percent. |
email | string | Email address. |
language | string | Language of documents sent to this contact. |
organizationNumber | string | Brreg organization number. |
phoneNumber | string | Phone number. |
supplier | boolean | true 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.
| Parameter | Type | Description |
|---|---|---|
companySlug * | string | The company's slug: the `slug` field from fiken_list_companies (for example swagger-test-company). |
incomeAccount * | string | Revenue account that receives the income, e.g. 3000. |
name * | string | Product name. |
vatType * | string | VAT type, HIGH (25 %) is the most common. |
active | boolean | Whether the product is in use. |
note | string | Note. |
productNumber | string | Your product number (varenummer). |
stock | number | Stock count. |
unitPrice | integer | Net 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.
| Parameter | Type | Description |
|---|---|---|
companySlug * | string | The company's slug: the `slug` field from fiken_list_companies (for example swagger-test-company). |
customerId * | integer | The contactId of the customer (a contact with customer=true). |
daysUntilDueDate * | integer | Days from the issue date until the invoice is due. |
lines * | array | The document lines. |
bankAccountNumber | string | Bank account number to pay into. |
contactPersonId | integer | Contact person id of the customer. |
currency | string | ISO 4217 currency (default NOK). |
invoiceText | string | Text printed above the lines. |
issueDate | string | Issue date, default today (YYYY-MM-DD). |
orderReference | string | Order reference, needed for EHF. |
ourReference | string | Your reference. |
paymentAccount | string | Payment account code, e.g. 1920:10001. |
projectId | integer | Project id. |
type | string | Kind of document the draft becomes. |
yourReference | string | The 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.
| Parameter | Type | Description |
|---|---|---|
companySlug * | string | The company's slug: the `slug` field from fiken_list_companies (for example swagger-test-company). |
draftId * | integer | The 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.
| Parameter | Type | Description |
|---|---|---|
companySlug * | string | The company's slug: the `slug` field from fiken_list_companies (for example swagger-test-company). |
invoiceId * | integer | The invoiceId of an ISSUED invoice (from fiken_list_invoices). |
method * | array | Delivery channels in priority order, e.g. ["email"]. "auto" picks from what the customer has registered. |
emailSendOption | string | How an email carries the invoice. |
includeDocumentAttachments | boolean | Include the invoice's attachments (not for letters). |
mergeInvoiceAndAttachments | boolean | Merge invoice and attachments into one PDF (with emailSendOption=attachment). |
message | string | Message sent along with the invoice. |
mobileNumber | string | Recipient mobile number (SMS); defaults to the customer's. |
organizationNumber | string | Recipient organization number (EHF); defaults to the customer's. |
recipientEmail | string | Recipient email (defaults to the customer's). |
recipientName | string | Recipient 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.
| Parameter | Type | Description |
|---|---|---|
companySlug * | string | The company's slug: the `slug` field from fiken_list_companies (for example swagger-test-company). |
lines * | array | The purchase lines. |
cash | boolean | true = a cash purchase (bought and paid at once), false = a supplier bill. |
contactId | integer | contactId of the supplier (from fiken_list_contacts). |
currency | string | ISO 4217 currency (default NOK). |
dueDate | string | Due date (YYYY-MM-DD). |
idempotencyKey | string | Optional. Reuse the same key when you retry this exact call, so Fiken does not create it twice (kept one year). |
invoiceIssueDate | string | Issue date of the supplier's invoice (YYYY-MM-DD). |
invoiceNumber | string | The supplier's invoice number. |
kid | string | Norwegian KID number. |
projectId | integer | Project 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.
| Parameter | Type | Description |
|---|---|---|
companySlug * | string | The 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`). | |
idempotencyKey | string | Optional. 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.
| Parameter | Type | Description |
|---|---|---|
companySlug * | string | The company's slug: the `slug` field from fiken_list_companies (for example swagger-test-company). |
lines * | array | The sale lines. |
cash | boolean | true = a cash sale (sold and paid at once), false = a sale on account. |
contactId | integer | contactId of the customer (from fiken_list_contacts). |
currency | string | ISO 4217 currency (default NOK). |
dueDate | string | Due date (YYYY-MM-DD). |
idempotencyKey | string | Optional. Reuse the same key when you retry this exact call, so Fiken does not create it twice (kept one year). |
invoiceIssueDate | string | Sale date (YYYY-MM-DD). |
invoiceNumber | string | Sale or invoice number. |
kid | string | Norwegian KID number. |
projectId | integer | Project 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.
| Parameter | Type | Description |
|---|---|---|
companySlug * | string | The 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`). | |
idempotencyKey | string | Optional. Reuse the same key when you retry this exact call, so Fiken does not create it twice (kept one year). |