Fiken MCP by usefulapi is an MCP server published by io.usefulapi, hosted at fiken.usefulapi.io. When last checked on 2026-11-21 it was working: it answers and lists its tools. It declares 31 tools, including fiken_get_user, fiken_list_companies, fiken_get_company, fiken_list_accounts, fiken_get_account_balances.
Read invoices, bills, contacts, ledger and bank balances; create drafts and contacts in Fiken.
4,406 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.
The Fiken user this connection acts as (name and email). A cheap check that the sign-in works. Fiken: GET /user.
No parameters.
{
"name": "fiken_get_user",
"title": "Get the signed-in user",
"description": "The Fiken user this connection acts as (name and email). A cheap check that the sign-in works. Fiken: GET /user.",
"inputSchema": {
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"properties": {}
},
"annotations": {
"title": "Get the signed-in user",
"readOnlyHint": true
}
}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). |
| sortBy | string | Sort order (default name asc). |
| pageSize | integer | Items per page, 1-100 (default 25). |
{
"name": "fiken_list_companies",
"title": "List companies",
"description": "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.",
"inputSchema": {
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"properties": {
"page": {
"type": "integer",
"maximum": 9007199254740991,
"minimum": 0,
"description": "Page number, starting at 0 (default 0)."
},
"sortBy": {
"enum": [
"createdDate asc",
"createdDate desc",
"name asc",
"name desc",
"organizationNumber asc",
"organizationNumber desc"
],
"type": "string",
"description": "Sort order (default name asc)."
},
"pageSize": {
"type": "integer",
"maximum": 100,
"minimum": 1,
"description": "Items per page, 1-100 (default 25)."
}
}
},
"annotations": {
"title": "List companies",
"readOnlyHint": true
}
}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). |
{
"name": "fiken_get_company",
"title": "Get a company",
"description": "One company: name, organization number, VAT type, address, accounting start date and whether the API module is active. Fiken: GET /companies/{companySlug}.",
"inputSchema": {
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"required": [
"companySlug"
],
"properties": {
"companySlug": {
"type": "string",
"minLength": 1,
"description": "The company's slug: the `slug` field from fiken_list_companies (for example swagger-test-company)."
}
}
},
"annotations": {
"title": "Get a company",
"readOnlyHint": true
}
}The bookkeeping accounts (kontoplan) of the current year. Filter with range, e.g. "3000-3999, 1920". Fiken: GET /companies/{companySlug}/accounts.
| Parameter | Type | Description |
|---|---|---|
| page | integer | Page number, starting at 0 (default 0). |
| range | string | Comma-separated account numbers or ranges, e.g. "1000-1500, 2000, 7000-7004". |
| pageSize | integer | Items per page, 1-100 (default 25). |
| toAccount | integer | Last account number to include, e.g. 3999. |
| 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. |
{
"name": "fiken_list_accounts",
"title": "List chart-of-accounts accounts",
"description": "The bookkeeping accounts (kontoplan) of the current year. Filter with range, e.g. \"3000-3999, 1920\". Fiken: GET /companies/{companySlug}/accounts.",
"inputSchema": {
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"required": [
"companySlug"
],
"properties": {
"page": {
"type": "integer",
"maximum": 9007199254740991,
"minimum": 0,
"description": "Page number, starting at 0 (default 0)."
},
"range": {
"type": "string",
"description": "Comma-separated account numbers or ranges, e.g. \"1000-1500, 2000, 7000-7004\"."
},
"pageSize": {
"type": "integer",
"maximum": 100,
"minimum": 1,
"description": "Items per page, 1-100 (default 25)."
},
"toAccount": {
"type": "integer",
"maximum": 9007199254740991,
"minimum": -9007199254740991,
"description": "Last account number to include, e.g. 3999."
},
"companySlug": {
"type": "string",
"minLength": 1,
"description": "The company's slug: the `slug` field from fiken_list_companies (for example swagger-test-company)."
},
"fromAccount": {
"type": "integer",
"maximum": 9007199254740991,
"minimum": -9007199254740991,
"description": "First account number to include, e.g. 3000."
}
}
},
"annotations": {
"title": "List chart-of-accounts accounts",
"readOnlyHint": true
}
}Closing balance of every bookkeeping account on a date (amounts in cents). Fiken: GET /companies/{companySlug}/accountBalances.
| Parameter | Type | Description |
|---|---|---|
| date * | string | The balance date (YYYY-MM-DD). |
| 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. |
| 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. |
{
"name": "fiken_get_account_balances",
"title": "Get account balances on a date",
"description": "Closing balance of every bookkeeping account on a date (amounts in cents). Fiken: GET /companies/{companySlug}/accountBalances.",
"inputSchema": {
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"required": [
"companySlug",
"date"
],
"properties": {
"date": {
"type": "string",
"pattern": "^\\d{4}-\\d{2}-\\d{2}$",
"description": "The balance date (YYYY-MM-DD)."
},
"page": {
"type": "integer",
"maximum": 9007199254740991,
"minimum": 0,
"description": "Page number, starting at 0 (default 0)."
},
"pageSize": {
"type": "integer",
"maximum": 100,
"minimum": 1,
"description": "Items per page, 1-100 (default 25)."
},
"toAccount": {
"type": "integer",
"maximum": 9007199254740991,
"minimum": -9007199254740991,
"description": "Last account number to include."
},
"companySlug": {
"type": "string",
"minLength": 1,
"description": "The company's slug: the `slug` field from fiken_list_companies (for example swagger-test-company)."
},
"fromAccount": {
"type": "integer",
"maximum": 9007199254740991,
"minimum": -9007199254740991,
"description": "First account number to include."
}
}
},
"annotations": {
"title": "Get account balances on a date",
"readOnlyHint": true
}
}The company's bank accounts as registered in Fiken. Fiken: GET /companies/{companySlug}/bankAccounts.
| Parameter | Type | Description |
|---|---|---|
| page | integer | Page number, starting at 0 (default 0). |
| inactive | boolean | true = only inactive bank accounts, false = only active ones. |
| pageSize | integer | Items per page, 1-100 (default 25). |
| companySlug * | string | The company's slug: the `slug` field from fiken_list_companies (for example swagger-test-company). |
{
"name": "fiken_list_bank_accounts",
"title": "List bank accounts",
"description": "The company's bank accounts as registered in Fiken. Fiken: GET /companies/{companySlug}/bankAccounts.",
"inputSchema": {
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"required": [
"companySlug"
],
"properties": {
"page": {
"type": "integer",
"maximum": 9007199254740991,
"minimum": 0,
"description": "Page number, starting at 0 (default 0)."
},
"inactive": {
"type": "boolean",
"description": "true = only inactive bank accounts, false = only active ones."
},
"pageSize": {
"type": "integer",
"maximum": 100,
"minimum": 1,
"description": "Items per page, 1-100 (default 25)."
},
"companySlug": {
"type": "string",
"minLength": 1,
"description": "The company's slug: the `slug` field from fiken_list_companies (for example swagger-test-company)."
}
}
},
"annotations": {
"title": "List bank accounts",
"readOnlyHint": true
}
}Bank account balances, optionally on a given date (amounts in cents). Fiken: GET /companies/{companySlug}/bankBalances.
| Parameter | Type | Description |
|---|---|---|
| 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). |
| companySlug * | string | The company's slug: the `slug` field from fiken_list_companies (for example swagger-test-company). |
{
"name": "fiken_get_bank_balances",
"title": "Get bank balances",
"description": "Bank account balances, optionally on a given date (amounts in cents). Fiken: GET /companies/{companySlug}/bankBalances.",
"inputSchema": {
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"required": [
"companySlug"
],
"properties": {
"date": {
"type": "string",
"pattern": "^\\d{4}-\\d{2}-\\d{2}$",
"description": "Balance date (YYYY-MM-DD)."
},
"page": {
"type": "integer",
"maximum": 9007199254740991,
"minimum": 0,
"description": "Page number, starting at 0 (default 0)."
},
"pageSize": {
"type": "integer",
"maximum": 100,
"minimum": 1,
"description": "Items per page, 1-100 (default 25)."
},
"companySlug": {
"type": "string",
"minLength": 1,
"description": "The company's slug: the `slug` field from fiken_list_companies (for example swagger-test-company)."
}
}
},
"annotations": {
"title": "Get bank balances",
"readOnlyHint": true
}
}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 |
|---|---|---|
| name | string | Exact name. |
| page | integer | Page number, starting at 0 (default 0). |
| string | Exact email. | |
| group | string | Customer group, exact match. |
| sortBy | string | Sort order. |
| customer | boolean | true = only customers. |
| inactive | boolean | true = only inactive contacts, false = only active. |
| pageSize | integer | Items per page, 1-100 (default 25). |
| supplier | boolean | true = only suppliers. |
| companySlug * | string | The company's slug: the `slug` field from fiken_list_companies (for example swagger-test-company). |
| customerNumber |
One customer or supplier with address, contact persons, notes and account codes. Fiken: GET /companies/{companySlug}/contacts/{contactId}.
| Parameter | Type | Description |
|---|---|---|
| contactId * | integer | The contactId from fiken_list_contacts. |
| companySlug * | string | The company's slug: the `slug` field from fiken_list_companies (for example swagger-test-company). |
{
"name": "fiken_get_contact",
"title": "Get a contact",
"description": "One customer or supplier with address, contact persons, notes and account codes. Fiken: GET /companies/{companySlug}/contacts/{contactId}.",
"inputSchema": {
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"required": [
"companySlug",
"contactId"
],
"properties": {
"contactId": {
"type": "integer",
"maximum": 9007199254740991,
"description": "The contactId from fiken_list_contacts.",
"exclusiveMinimum": 0
},
"companySlug": {
"type": "string",
"minLength": 1,
"description": "The company's slug: the `slug` field from fiken_list_companies (for example swagger-test-company)."
}
}
},
"annotations": {
"title": "Get a contact",
"readOnlyHint": true
}
}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 |
|---|---|---|
| page | integer | Page number, starting at 0 (default 0). |
| settled | boolean | true = only settled (paid) invoices, false = only unsettled ones. |
| pageSize | integer | Items per page, 1-100 (default 25). |
| dueDateGe | string | Due on or after (YYYY-MM-DD). |
| dueDateLe | string | Due on or before (YYYY-MM-DD). |
| customerId | integer | Only invoices to this contactId. |
| companySlug * | string | The company's slug: the `slug` field from fiken_list_companies (for example swagger-test-company). |
| 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). |
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 |
|---|---|---|
| invoiceId * | integer | The invoiceId from fiken_list_invoices. |
| companySlug * | string | The company's slug: the `slug` field from fiken_list_companies (for example swagger-test-company). |
{
"name": "fiken_get_invoice",
"title": "Get an invoice",
"description": "One issued invoice with lines, customer, amounts in cents, settled status and payment/credit-note links. Fiken: GET /companies/{companySlug}/invoices/{invoiceId}.",
"inputSchema": {
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"required": [
"companySlug",
"invoiceId"
],
"properties": {
"invoiceId": {
"type": "integer",
"maximum": 9007199254740991,
"description": "The invoiceId from fiken_list_invoices.",
"exclusiveMinimum": 0
},
"companySlug": {
"type": "string",
"minLength": 1,
"description": "The company's slug: the `slug` field from fiken_list_companies (for example swagger-test-company)."
}
}
},
"annotations": {
"title": "Get an invoice",
"readOnlyHint": true
}
}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 |
|---|---|---|
| page | integer | Page number, starting at 0 (default 0). |
| uuid | string | The draft's UUID. |
| pageSize | integer | Items per page, 1-100 (default 25). |
| companySlug * | string | The company's slug: the `slug` field from fiken_list_companies (for example swagger-test-company). |
| orderReference | string | Order reference. |
{
"name": "fiken_list_invoice_drafts",
"title": "List invoice drafts",
"description": "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.",
"inputSchema": {
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"required": [
"companySlug"
],
"properties": {
"page": {
"type": "integer",
"maximum": 9007199254740991,
"minimum": 0,
"description": "Page number, starting at 0 (default 0)."
},
"uuid": {
"type": "string",
"description": "The draft's UUID."
},
"pageSize": {
"type": "integer",
"maximum": 100,
"minimum": 1,
"description": "Items per page, 1-100 (default 25)."
},
"companySlug": {
"type": "string",
"minLength": 1,
"description": "The company's slug: the `slug` field from fiken_list_companies (for example swagger-test-company)."
},
"orderReference": {
"type": "string",
"description": "Order reference."
}
}
},
"annotations": {
"title": "List invoice drafts",
"readOnlyHint": true
}
}Issued credit notes. Fiken: GET /companies/{companySlug}/creditNotes.
| Parameter | Type | Description |
|---|---|---|
| page | integer | Page number, starting at 0 (default 0). |
| settled | boolean | true = only settled, false = only unsettled. |
| pageSize | integer | Items per page, 1-100 (default 25). |
| customerId | integer | Only credit notes to this contactId. |
| companySlug * | string | The company's slug: the `slug` field from fiken_list_companies (for example swagger-test-company). |
| 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). |
{
"name": "fiken_list_credit_notes",
"title": "List credit notes",
"description": "Issued credit notes. Fiken: GET /companies/{companySlug}/creditNotes.",
"inputSchema": {
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"required": [
"companySlug"
],
"properties": {
"page": {
"type": "integer",
"maximum": 9007199254740991,
"minimum": 0,
"description": "Page number, starting at 0 (default 0)."
},
"settled": {
"type": "boolean",
"description": "true = only settled, false = only unsettled."
},
"pageSize": {
"type": "integer",
"maximum": 100,
"minimum": 1,
"description": "Items per page, 1-100 (default 25)."
},
"customerId": {
"type": "integer",
"maximum": 9007199254740991,
"minimum": -9007199254740991,
"description": "Only credit notes to this contactId."
},
"companySlug": {
"type": "string",
"minLength": 1,
"description": "The company's slug: the `slug` field from fiken_list_companies (for example swagger-test-company)."
},
"issueDateGe": {
"type": "string",
"pattern": "^\\d{4}-\\d{2}-\\d{2}$",
"description": "Issued on or after (YYYY-MM-DD)."
},
"issueDateLe": {
"type": "string",
"pattern": "^\\d{4}-\\d{2}-\\d{2}$",
"description": "Issued on or before (YYYY-MM-DD)."
},
"lastModifiedGe": {
"type": "string",
"pattern": "^\\d{4}-\\d{2}-\\d{2}$",
"description": "Modified on or after (YYYY-MM-DD)."
}
}
},
"annotations": {
"title": "List credit notes",
"readOnlyHint": true
}
}Issued offers (tilbud). Fiken: GET /companies/{companySlug}/offers.
| Parameter | Type | Description |
|---|---|---|
| page | integer | Page number, starting at 0 (default 0). |
| pageSize | integer | Items per page, 1-100 (default 25). |
| companySlug * | string | The company's slug: the `slug` field from fiken_list_companies (for example swagger-test-company). |
{
"name": "fiken_list_offers",
"title": "List offers",
"description": "Issued offers (tilbud). Fiken: GET /companies/{companySlug}/offers.",
"inputSchema": {
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"required": [
"companySlug"
],
"properties": {
"page": {
"type": "integer",
"maximum": 9007199254740991,
"minimum": 0,
"description": "Page number, starting at 0 (default 0)."
},
"pageSize": {
"type": "integer",
"maximum": 100,
"minimum": 1,
"description": "Items per page, 1-100 (default 25)."
},
"companySlug": {
"type": "string",
"minLength": 1,
"description": "The company's slug: the `slug` field from fiken_list_companies (for example swagger-test-company)."
}
}
},
"annotations": {
"title": "List offers",
"readOnlyHint": true
}
}Issued order confirmations. Fiken: GET /companies/{companySlug}/orderConfirmations.
| Parameter | Type | Description |
|---|---|---|
| page | integer | Page number, starting at 0 (default 0). |
| pageSize | integer | Items per page, 1-100 (default 25). |
| companySlug * | string | The company's slug: the `slug` field from fiken_list_companies (for example swagger-test-company). |
{
"name": "fiken_list_order_confirmations",
"title": "List order confirmations",
"description": "Issued order confirmations. Fiken: GET /companies/{companySlug}/orderConfirmations.",
"inputSchema": {
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"required": [
"companySlug"
],
"properties": {
"page": {
"type": "integer",
"maximum": 9007199254740991,
"minimum": 0,
"description": "Page number, starting at 0 (default 0)."
},
"pageSize": {
"type": "integer",
"maximum": 100,
"minimum": 1,
"description": "Items per page, 1-100 (default 25)."
},
"companySlug": {
"type": "string",
"minLength": 1,
"description": "The company's slug: the `slug` field from fiken_list_companies (for example swagger-test-company)."
}
}
},
"annotations": {
"title": "List order confirmations",
"readOnlyHint": true
}
}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 |
|---|---|---|
| name | string | Exact product name. |
| page | integer | Page number, starting at 0 (default 0). |
| active | boolean | true = only active products, false = only inactive. |
| pageSize | integer | Items per page, 1-100 (default 25). |
| companySlug * | string | The company's slug: the `slug` field from fiken_list_companies (for example swagger-test-company). |
| productNumber | string | Exact product number (varenummer). |
| lastModifiedGe | string | Modified on or after (YYYY-MM-DD). |
{
"name": "fiken_list_products",
"title": "List products",
"description": "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.",
"inputSchema": {
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"required": [
"companySlug"
],
"properties": {
"name": {
"type": "string",
"description": "Exact product name."
},
"page": {
"type": "integer",
"maximum": 9007199254740991,
"minimum": 0,
"description": "Page number, starting at 0 (default 0)."
},
"active": {
"type": "boolean",
"description": "true = only active products, false = only inactive."
},
"pageSize": {
"type": "integer",
"maximum": 100,
"minimum": 1,
"description": "Items per page, 1-100 (default 25)."
},
"companySlug": {
"type": "string",
"minLength": 1,
"description": "The company's slug: the `slug` field from fiken_list_companies (for example swagger-test-company)."
},
"productNumber": {
"type": "string",
"description": "Exact product number (varenummer)."
},
"lastModifiedGe": {
"type": "string",
"pattern": "^\\d{4}-\\d{2}-\\d{2}$",
"description": "Modified on or after (YYYY-MM-DD)."
}
}
},
"annotations": {
"title": "List products",
"readOnlyHint": true
}
}One product. Fiken: GET /companies/{companySlug}/products/{productId}.
| Parameter | Type | Description |
|---|---|---|
| productId * | integer | The productId from fiken_list_products. |
| companySlug * | string | The company's slug: the `slug` field from fiken_list_companies (for example swagger-test-company). |
{
"name": "fiken_get_product",
"title": "Get a product",
"description": "One product. Fiken: GET /companies/{companySlug}/products/{productId}.",
"inputSchema": {
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"required": [
"companySlug",
"productId"
],
"properties": {
"productId": {
"type": "integer",
"maximum": 9007199254740991,
"description": "The productId from fiken_list_products.",
"exclusiveMinimum": 0
},
"companySlug": {
"type": "string",
"minLength": 1,
"description": "The company's slug: the `slug` field from fiken_list_companies (for example swagger-test-company)."
}
}
},
"annotations": {
"title": "Get a product",
"readOnlyHint": true
}
}Sales registered without an invoice (cash, card, Vipps and other direct sales), with amounts in cents. Fiken: GET /companies/{companySlug}/sales.
| Parameter | Type | Description |
|---|---|---|
| page | integer | Page number, starting at 0 (default 0). |
| dateGe | string | Sale date on or after (YYYY-MM-DD). |
| dateLe | string | Sale date on or before (YYYY-MM-DD). |
| settled | boolean | true = only settled sales, false = only unsettled. |
| pageSize | integer | Items per page, 1-100 (default 25). |
| contactId | integer | Only sales to this contactId. |
| saleNumber | string | Sale number. |
| companySlug * | string | The company's slug: the `slug` field from fiken_list_companies (for example swagger-test-company). |
| lastModifiedGe | string | Modified on or after (YYYY-MM-DD). |
One sale with lines, payments and settlement status. Fiken: GET /companies/{companySlug}/sales/{saleId}.
| Parameter | Type | Description |
|---|---|---|
| saleId * | integer | The saleId from fiken_list_sales. |
| companySlug * | string | The company's slug: the `slug` field from fiken_list_companies (for example swagger-test-company). |
{
"name": "fiken_get_sale",
"title": "Get a sale",
"description": "One sale with lines, payments and settlement status. Fiken: GET /companies/{companySlug}/sales/{saleId}.",
"inputSchema": {
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"required": [
"companySlug",
"saleId"
],
"properties": {
"saleId": {
"type": "integer",
"maximum": 9007199254740991,
"description": "The saleId from fiken_list_sales.",
"exclusiveMinimum": 0
},
"companySlug": {
"type": "string",
"minLength": 1,
"description": "The company's slug: the `slug` field from fiken_list_companies (for example swagger-test-company)."
}
}
},
"annotations": {
"title": "Get a sale",
"readOnlyHint": true
}
}Purchases and supplier bills with amounts in cents and paid status. Fiken: GET /companies/{companySlug}/purchases.
| Parameter | Type | Description |
|---|---|---|
| page | integer | Page number, starting at 0 (default 0). |
| paid | boolean | true = only paid purchases, false = only unpaid. |
| dateGe | string | Purchase date on or after (YYYY-MM-DD). |
| dateLe | string | Purchase date on or before (YYYY-MM-DD). |
| sortBy | string | Sort order. |
| pageSize | integer | Items per page, 1-100 (default 25). |
| contactId | integer | Only purchases from this supplier contactId. |
| companySlug * | string | The company's slug: the `slug` field from fiken_list_companies (for example swagger-test-company). |
| lastModifiedGe | string | Modified on or after (YYYY-MM-DD). |
One purchase with lines, payments and attachments list. Fiken: GET /companies/{companySlug}/purchases/{purchaseId}.
| Parameter | Type | Description |
|---|---|---|
| purchaseId * | integer | The purchaseId from fiken_list_purchases. |
| companySlug * | string | The company's slug: the `slug` field from fiken_list_companies (for example swagger-test-company). |
{
"name": "fiken_get_purchase",
"title": "Get a purchase",
"description": "One purchase with lines, payments and attachments list. Fiken: GET /companies/{companySlug}/purchases/{purchaseId}.",
"inputSchema": {
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"required": [
"companySlug",
"purchaseId"
],
"properties": {
"purchaseId": {
"type": "integer",
"maximum": 9007199254740991,
"description": "The purchaseId from fiken_list_purchases.",
"exclusiveMinimum": 0
},
"companySlug": {
"type": "string",
"minLength": 1,
"description": "The company's slug: the `slug` field from fiken_list_companies (for example swagger-test-company)."
}
}
},
"annotations": {
"title": "Get a purchase",
"readOnlyHint": true
}
}General-ledger journal entries (bilag) with their postings. Fiken: GET /companies/{companySlug}/journalEntries.
| Parameter | Type | Description |
|---|---|---|
| page | integer | Page number, starting at 0 (default 0). |
| dateGe | string | Entry date on or after (YYYY-MM-DD). |
| dateLe | string | Entry date on or before (YYYY-MM-DD). |
| pageSize | integer | Items per page, 1-100 (default 25). |
| companySlug * | string | The company's slug: the `slug` field from fiken_list_companies (for example swagger-test-company). |
| lastModifiedGe | string | Modified on or after (YYYY-MM-DD). |
{
"name": "fiken_list_journal_entries",
"title": "List journal entries",
"description": "General-ledger journal entries (bilag) with their postings. Fiken: GET /companies/{companySlug}/journalEntries.",
"inputSchema": {
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"required": [
"companySlug"
],
"properties": {
"page": {
"type": "integer",
"maximum": 9007199254740991,
"minimum": 0,
"description": "Page number, starting at 0 (default 0)."
},
"dateGe": {
"type": "string",
"pattern": "^\\d{4}-\\d{2}-\\d{2}$",
"description": "Entry date on or after (YYYY-MM-DD)."
},
"dateLe": {
"type": "string",
"pattern": "^\\d{4}-\\d{2}-\\d{2}$",
"description": "Entry date on or before (YYYY-MM-DD)."
},
"pageSize": {
"type": "integer",
"maximum": 100,
"minimum": 1,
"description": "Items per page, 1-100 (default 25)."
},
"companySlug": {
"type": "string",
"minLength": 1,
"description": "The company's slug: the `slug` field from fiken_list_companies (for example swagger-test-company)."
},
"lastModifiedGe": {
"type": "string",
"pattern": "^\\d{4}-\\d{2}-\\d{2}$",
"description": "Modified on or after (YYYY-MM-DD)."
}
}
},
"annotations": {
"title": "List journal entries",
"readOnlyHint": true
}
}Ledger transactions (one per bookkeeping event) with their entries. Fiken: GET /companies/{companySlug}/transactions.
| Parameter | Type | Description |
|---|---|---|
| page | integer | Page number, starting at 0 (default 0). |
| pageSize | integer | Items per page, 1-100 (default 25). |
| 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). |
{
"name": "fiken_list_transactions",
"title": "List transactions",
"description": "Ledger transactions (one per bookkeeping event) with their entries. Fiken: GET /companies/{companySlug}/transactions.",
"inputSchema": {
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"required": [
"companySlug"
],
"properties": {
"page": {
"type": "integer",
"maximum": 9007199254740991,
"minimum": 0,
"description": "Page number, starting at 0 (default 0)."
},
"pageSize": {
"type": "integer",
"maximum": 100,
"minimum": 1,
"description": "Items per page, 1-100 (default 25)."
},
"companySlug": {
"type": "string",
"minLength": 1,
"description": "The company's slug: the `slug` field from fiken_list_companies (for example swagger-test-company)."
},
"createdDateGe": {
"type": "string",
"pattern": "^\\d{4}-\\d{2}-\\d{2}$",
"description": "Created on or after (YYYY-MM-DD)."
},
"createdDateLe": {
"type": "string",
"pattern": "^\\d{4}-\\d{2}-\\d{2}$",
"description": "Created on or before (YYYY-MM-DD)."
},
"lastModifiedGe": {
"type": "string",
"pattern": "^\\d{4}-\\d{2}-\\d{2}$",
"description": "Modified on or after (YYYY-MM-DD)."
}
}
},
"annotations": {
"title": "List transactions",
"readOnlyHint": true
}
}Projects with number, name and completion status. Fiken: GET /companies/{companySlug}/projects.
| Parameter | Type | Description |
|---|---|---|
| name | string | Project name. |
| page | integer | Page number, starting at 0 (default 0). |
| pageSize | integer | Items per page, 1-100 (default 25). |
| completed | boolean | true = only completed projects, false = only open ones. |
| companySlug * | string | The company's slug: the `slug` field from fiken_list_companies (for example swagger-test-company). |
{
"name": "fiken_list_projects",
"title": "List projects",
"description": "Projects with number, name and completion status. Fiken: GET /companies/{companySlug}/projects.",
"inputSchema": {
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"required": [
"companySlug"
],
"properties": {
"name": {
"type": "string",
"description": "Project name."
},
"page": {
"type": "integer",
"maximum": 9007199254740991,
"minimum": 0,
"description": "Page number, starting at 0 (default 0)."
},
"pageSize": {
"type": "integer",
"maximum": 100,
"minimum": 1,
"description": "Items per page, 1-100 (default 25)."
},
"completed": {
"type": "boolean",
"description": "true = only completed projects, false = only open ones."
},
"companySlug": {
"type": "string",
"minLength": 1,
"description": "The company's slug: the `slug` field from fiken_list_companies (for example swagger-test-company)."
}
}
},
"annotations": {
"title": "List projects",
"readOnlyHint": true
}
}Registered hours (Fiken Timeføring). Fiken: GET /companies/{companySlug}/timeEntries.
| Parameter | Type | Description |
|---|---|---|
| page | integer | Page number, starting at 0 (default 0). |
| 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. |
| pageSize | integer | Items per page, 1-100 (default 25). |
| projectId | integer | Only this project. |
| timeUserId | integer | Only this time-tracking user. |
| companySlug * | string | The company's slug: the `slug` field from fiken_list_companies (for example swagger-test-company). |
{
"name": "fiken_list_time_entries",
"title": "List time entries",
"description": "Registered hours (Fiken Timeføring). Fiken: GET /companies/{companySlug}/timeEntries.",
"inputSchema": {
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"required": [
"companySlug"
],
"properties": {
"page": {
"type": "integer",
"maximum": 9007199254740991,
"minimum": 0,
"description": "Page number, starting at 0 (default 0)."
},
"dateGe": {
"type": "string",
"pattern": "^\\d{4}-\\d{2}-\\d{2}$",
"description": "Date on or after (YYYY-MM-DD)."
},
"dateLe": {
"type": "string",
"pattern": "^\\d{4}-\\d{2}-\\d{2}$",
"description": "Date on or before (YYYY-MM-DD)."
},
"invoiced": {
"type": "boolean",
"description": "true = only invoiced hours, false = only uninvoiced."
},
"pageSize": {
"type": "integer",
"maximum": 100,
"minimum": 1,
"description": "Items per page, 1-100 (default 25)."
},
"projectId": {
"type": "integer",
"maximum": 9007199254740991,
"minimum": -9007199254740991,
"description": "Only this project."
},
"timeUserId": {
"type": "integer",
"maximum": 9007199254740991,
"minimum": -9007199254740991,
"description": "Only this time-tracking user."
},
"companySlug": {
"type": "string",
"minLength": 1,
"description": "The company's slug: the `slug` field from fiken_list_companies (for example swagger-test-company)."
}
}
},
"annotations": {
"title": "List time entries",
"readOnlyHint": true
}
}Documents waiting in the company's inbox (receipts and bills uploaded for bookkeeping). Fiken: GET /companies/{companySlug}/inbox.
| Parameter | Type | Description |
|---|---|---|
| name | string | File name. |
| page | integer | Page number, starting at 0 (default 0). |
| sortBy | string | Sort order. |
| status | string | Whether the document is already used for a posting. |
| pageSize | integer | Items per page, 1-100 (default 25). |
| companySlug * | string | The company's slug: the `slug` field from fiken_list_companies (for example swagger-test-company). |
{
"name": "fiken_list_inbox_documents",
"title": "List inbox documents",
"description": "Documents waiting in the company's inbox (receipts and bills uploaded for bookkeeping). Fiken: GET /companies/{companySlug}/inbox.",
"inputSchema": {
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"required": [
"companySlug"
],
"properties": {
"name": {
"type": "string",
"description": "File name."
},
"page": {
"type": "integer",
"maximum": 9007199254740991,
"minimum": 0,
"description": "Page number, starting at 0 (default 0)."
},
"sortBy": {
"enum": [
"createdDate asc",
"createdDate desc",
"name asc",
"name desc"
],
"type": "string",
"description": "Sort order."
},
"status": {
"enum": [
"all",
"unused",
"used"
],
"type": "string",
"description": "Whether the document is already used for a posting."
},
"pageSize": {
"type": "integer",
"maximum": 100,
"minimum": 1,
"description": "Items per page, 1-100 (default 25)."
},
"companySlug": {
"type": "string",
"minLength": 1,
"description": "The company's slug: the `slug` field from fiken_list_companies (for example swagger-test-company)."
}
}
},
"annotations": {
"title": "List inbox documents",
"readOnlyHint": true
}
}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 |
|---|---|---|
| name * | string | Contact name. |
| string | Email address. | |
| address | object | Postal address. |
| currency | string | Default invoice currency, ISO 4217 (NOK, EUR, ...). |
| customer | boolean | true if the contact is a customer (needed before you can invoice it). |
| discount | number | Default discount in percent. |
| language | string | Language of documents sent to this contact. |
| supplier | boolean | true if the contact is a supplier. |
| companySlug * | string | The company's slug: the `slug` field from fiken_list_companies (for example swagger-test-company). |
| phoneNumber | string | Phone number. |
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 |
|---|---|---|
| name * | string | Product name. |
| note | string | Note. |
| stock | number | Stock count. |
| active | boolean | Whether the product is in use. |
| vatType * | string | VAT type, HIGH (25 %) is the most common. |
| unitPrice | integer | Net unit price (excl. VAT), an integer in cents (100000 = 1000.00 kr). |
| 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. |
| productNumber | string | Your product number (varenummer). |
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 |
|---|---|---|
| type | string | Kind of document the draft becomes. |
| lines * | array | The document lines. |
| currency | string | ISO 4217 currency (default NOK). |
| issueDate | string | Issue date, default today (YYYY-MM-DD). |
| projectId | integer | Project id. |
| customerId * | integer | The contactId of the customer (a contact with customer=true). |
| companySlug * | string | The company's slug: the `slug` field from fiken_list_companies (for example swagger-test-company). |
| invoiceText | string | Text printed above the lines. |
| ourReference | string | Your reference. |
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 |
|---|---|---|
| draftId * | integer | The draftId from fiken_list_invoice_drafts or fiken_create_invoice_draft. |
| companySlug * | string | The company's slug: the `slug` field from fiken_list_companies (for example swagger-test-company). |
{
"name": "fiken_issue_invoice_from_draft",
"title": "Issue an invoice from a draft (IRREVERSIBLE)",
"description": "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.",
"inputSchema": {
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"required": [
"companySlug",
"draftId"
],
"properties": {
"draftId": {
"type": "integer",
"maximum": 9007199254740991,
"description": "The draftId from fiken_list_invoice_drafts or fiken_create_invoice_draft.",
"exclusiveMinimum": 0
},
"companySlug": {
"type": "string",
"minLength": 1,
"description": "The company's slug: the `slug` field from fiken_list_companies (for example swagger-test-company)."
}
}
},
"annotations": {
"title": "Issue an invoice from a draft (IRREVERSIBLE)",
"destructiveHint": true
}
}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 |
|---|---|---|
| method * | array | Delivery channels in priority order, e.g. ["email"]. "auto" picks from what the customer has registered. |
| message | string | Message sent along with the invoice. |
| invoiceId * | integer | The invoiceId of an ISSUED invoice (from fiken_list_invoices). |
| companySlug * | string | The company's slug: the `slug` field from fiken_list_companies (for example swagger-test-company). |
| mobileNumber | string | Recipient mobile number (SMS); defaults to the customer's. |
| recipientName | string | Recipient name. |
| recipientEmail | string | Recipient email (defaults to the customer's). |
| emailSendOption | string |
Tools for Fiken, hosted by usefulapi.io. If the user is new or asks what this server can do, suggest requests such as: "Which invoices are past due and not yet paid?"; "Which supplier bills are still unpaid?"; "What are my bank balances today?". Read-only tools never change data; ask the user before a tool that creates, changes or deletes Fiken data. Free plan: 50 tool calls per month. Run fiken_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 fiken_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 fiken_upgrade without a plan: it returns both plans, each with a payment link for the user to open. fiken_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.
| integer |
| Customer number. |
| lastModifiedGe | string | Modified on or after (YYYY-MM-DD). |
| supplierNumber | integer | Supplier number. |
| organizationNumber | string | Exact organization number. |
{
"name": "fiken_list_contacts",
"title": "List contacts (customers and suppliers)",
"description": "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.",
"inputSchema": {
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"required": [
"companySlug"
],
"properties": {
"name": {
"type": "string",
"description": "Exact name."
},
"page": {
"type": "integer",
"maximum": 9007199254740991,
"minimum": 0,
"description": "Page number, starting at 0 (default 0)."
},
"email": {
"type": "string",
"description": "Exact email."
},
"group": {
"type": "string",
"description": "Customer group, exact match."
},
"sortBy": {
"enum": [
"lastModified asc",
"lastModified desc",
"createdDate asc",
"createdDate desc"
],
"type": "string",
"description": "Sort order."
},
"customer": {
"type": "boolean",
"description": "true = only customers."
},
"inactive": {
"type": "boolean",
"description": "true = only inactive contacts, false = only active."
},
"pageSize": {
"type": "integer",
"maximum": 100,
"minimum": 1,
"description": "Items per page, 1-100 (default 25)."
},
"supplier": {
"type": "boolean",
"description": "true = only suppliers."
},
"companySlug": {
"type": "string",
"minLength": 1,
"description": "The company's slug: the `slug` field from fiken_list_companies (for example swagger-test-company)."
},
"customerNumber": {
"type": "integer",
"maximum": 9007199254740991,
"minimum": -9007199254740991,
"description": "Customer number."
},
"lastModifiedGe": {
"type": "string",
"pattern": "^\\d{4}-\\d{2}-\\d{2}$",
"description": "Modified on or after (YYYY-MM-DD)."
},
"supplierNumber": {
"type": "integer",
"maximum": 9007199254740991,
"minimum": -9007199254740991,
"description": "Supplier number."
},
"organizationNumber": {
"type": "string",
"description": "Exact organization number."
}
}
},
"annotations": {
"title": "List contacts (customers and suppliers)",
"readOnlyHint": true
}
}| orderReference | string | Order reference. |
{
"name": "fiken_list_invoices",
"title": "List issued invoices",
"description": "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.",
"inputSchema": {
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"required": [
"companySlug"
],
"properties": {
"page": {
"type": "integer",
"maximum": 9007199254740991,
"minimum": 0,
"description": "Page number, starting at 0 (default 0)."
},
"settled": {
"type": "boolean",
"description": "true = only settled (paid) invoices, false = only unsettled ones."
},
"pageSize": {
"type": "integer",
"maximum": 100,
"minimum": 1,
"description": "Items per page, 1-100 (default 25)."
},
"dueDateGe": {
"type": "string",
"pattern": "^\\d{4}-\\d{2}-\\d{2}$",
"description": "Due on or after (YYYY-MM-DD)."
},
"dueDateLe": {
"type": "string",
"pattern": "^\\d{4}-\\d{2}-\\d{2}$",
"description": "Due on or before (YYYY-MM-DD)."
},
"customerId": {
"type": "integer",
"maximum": 9007199254740991,
"minimum": -9007199254740991,
"description": "Only invoices to this contactId."
},
"companySlug": {
"type": "string",
"minLength": 1,
"description": "The company's slug: the `slug` field from fiken_list_companies (for example swagger-test-company)."
},
"issueDateGe": {
"type": "string",
"pattern": "^\\d{4}-\\d{2}-\\d{2}$",
"description": "Issued on or after (YYYY-MM-DD)."
},
"issueDateLe": {
"type": "string",
"pattern": "^\\d{4}-\\d{2}-\\d{2}$",
"description": "Issued on or before (YYYY-MM-DD)."
},
"lastModifiedGe": {
"type": "string",
"pattern": "^\\d{4}-\\d{2}-\\d{2}$",
"description": "Modified on or after (YYYY-MM-DD)."
},
"orderReference": {
"type": "string",
"description": "Order reference."
}
}
},
"annotations": {
"title": "List issued invoices",
"readOnlyHint": true
}
}{
"name": "fiken_list_sales",
"title": "List sales",
"description": "Sales registered without an invoice (cash, card, Vipps and other direct sales), with amounts in cents. Fiken: GET /companies/{companySlug}/sales.",
"inputSchema": {
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"required": [
"companySlug"
],
"properties": {
"page": {
"type": "integer",
"maximum": 9007199254740991,
"minimum": 0,
"description": "Page number, starting at 0 (default 0)."
},
"dateGe": {
"type": "string",
"pattern": "^\\d{4}-\\d{2}-\\d{2}$",
"description": "Sale date on or after (YYYY-MM-DD)."
},
"dateLe": {
"type": "string",
"pattern": "^\\d{4}-\\d{2}-\\d{2}$",
"description": "Sale date on or before (YYYY-MM-DD)."
},
"settled": {
"type": "boolean",
"description": "true = only settled sales, false = only unsettled."
},
"pageSize": {
"type": "integer",
"maximum": 100,
"minimum": 1,
"description": "Items per page, 1-100 (default 25)."
},
"contactId": {
"type": "integer",
"maximum": 9007199254740991,
"minimum": -9007199254740991,
"description": "Only sales to this contactId."
},
"saleNumber": {
"type": "string",
"description": "Sale number."
},
"companySlug": {
"type": "string",
"minLength": 1,
"description": "The company's slug: the `slug` field from fiken_list_companies (for example swagger-test-company)."
},
"lastModifiedGe": {
"type": "string",
"pattern": "^\\d{4}-\\d{2}-\\d{2}$",
"description": "Modified on or after (YYYY-MM-DD)."
}
}
},
"annotations": {
"title": "List sales",
"readOnlyHint": true
}
}{
"name": "fiken_list_purchases",
"title": "List purchases (supplier bills and expenses)",
"description": "Purchases and supplier bills with amounts in cents and paid status. Fiken: GET /companies/{companySlug}/purchases.",
"inputSchema": {
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"required": [
"companySlug"
],
"properties": {
"page": {
"type": "integer",
"maximum": 9007199254740991,
"minimum": 0,
"description": "Page number, starting at 0 (default 0)."
},
"paid": {
"type": "boolean",
"description": "true = only paid purchases, false = only unpaid."
},
"dateGe": {
"type": "string",
"pattern": "^\\d{4}-\\d{2}-\\d{2}$",
"description": "Purchase date on or after (YYYY-MM-DD)."
},
"dateLe": {
"type": "string",
"pattern": "^\\d{4}-\\d{2}-\\d{2}$",
"description": "Purchase date on or before (YYYY-MM-DD)."
},
"sortBy": {
"enum": [
"date asc",
"date desc"
],
"type": "string",
"description": "Sort order."
},
"pageSize": {
"type": "integer",
"maximum": 100,
"minimum": 1,
"description": "Items per page, 1-100 (default 25)."
},
"contactId": {
"type": "integer",
"maximum": 9007199254740991,
"minimum": -9007199254740991,
"description": "Only purchases from this supplier contactId."
},
"companySlug": {
"type": "string",
"minLength": 1,
"description": "The company's slug: the `slug` field from fiken_list_companies (for example swagger-test-company)."
},
"lastModifiedGe": {
"type": "string",
"pattern": "^\\d{4}-\\d{2}-\\d{2}$",
"description": "Modified on or after (YYYY-MM-DD)."
}
}
},
"annotations": {
"title": "List purchases (supplier bills and expenses)",
"readOnlyHint": true
}
}| bankAccountNumber |
| string |
| Bank account number (11 digits). |
| organizationNumber | string | Brreg organization number. |
| daysUntilInvoicingDueDate | integer | Default days until the due date. |
{
"name": "fiken_create_contact",
"title": "Create a contact",
"description": "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.",
"inputSchema": {
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"required": [
"companySlug",
"name"
],
"properties": {
"name": {
"type": "string",
"maxLength": 200,
"minLength": 1,
"description": "Contact name."
},
"email": {
"type": "string",
"maxLength": 200,
"description": "Email address."
},
"address": {
"type": "object",
"required": [
"country"
],
"properties": {
"city": {
"type": "string"
},
"country": {
"type": "string",
"description": "Country name as Fiken expects it, e.g. Norway (required in an address)."
},
"postCode": {
"type": "string"
},
"streetAddress": {
"type": "string"
},
"streetAddressLine2": {
"type": "string"
}
},
"description": "Postal address."
},
"currency": {
"type": "string",
"pattern": "^[A-Z]{3}$",
"description": "Default invoice currency, ISO 4217 (NOK, EUR, ...)."
},
"customer": {
"type": "boolean",
"description": "true if the contact is a customer (needed before you can invoice it)."
},
"discount": {
"type": "number",
"maximum": 100,
"minimum": 0,
"description": "Default discount in percent."
},
"language": {
"enum": [
"NORWEGIAN",
"ENGLISH"
],
"type": "string",
"description": "Language of documents sent to this contact."
},
"supplier": {
"type": "boolean",
"description": "true if the contact is a supplier."
},
"companySlug": {
"type": "string",
"minLength": 1,
"description": "The company's slug: the `slug` field from fiken_list_companies (for example swagger-test-company)."
},
"phoneNumber": {
"type": "string",
"maxLength": 20,
"description": "Phone number."
},
"bankAccountNumber": {
"type": "string",
"maxLength": 11,
"description": "Bank account number (11 digits)."
},
"organizationNumber": {
"type": "string",
"maxLength": 200,
"description": "Brreg organization number."
},
"daysUntilInvoicingDueDate": {
"type": "integer",
"maximum": 9007199254740991,
"minimum": 0,
"description": "Default days until the due date."
}
}
},
"annotations": {
"title": "Create a contact",
"destructiveHint": true
}
}{
"name": "fiken_create_product",
"title": "Create a product",
"description": "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.",
"inputSchema": {
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"required": [
"companySlug",
"name",
"incomeAccount",
"vatType"
],
"properties": {
"name": {
"type": "string",
"minLength": 1,
"description": "Product name."
},
"note": {
"type": "string",
"maxLength": 200,
"description": "Note."
},
"stock": {
"type": "number",
"description": "Stock count."
},
"active": {
"type": "boolean",
"default": true,
"description": "Whether the product is in use."
},
"vatType": {
"enum": [
"NONE",
"HIGH",
"MEDIUM",
"RAW_FISH",
"LOW",
"EXEMPT_IMPORT_EXPORT",
"EXEMPT",
"OUTSIDE",
"EXEMPT_REVERSE"
],
"type": "string",
"description": "VAT type, HIGH (25 %) is the most common."
},
"unitPrice": {
"type": "integer",
"maximum": 9007199254740991,
"minimum": -9007199254740991,
"description": "Net unit price (excl. VAT), an integer in cents (100000 = 1000.00 kr)."
},
"companySlug": {
"type": "string",
"minLength": 1,
"description": "The company's slug: the `slug` field from fiken_list_companies (for example swagger-test-company)."
},
"incomeAccount": {
"type": "string",
"pattern": "^\\d{4}(:\\d{5})?$",
"description": "Revenue account that receives the income, e.g. 3000."
},
"productNumber": {
"type": "string",
"description": "Your product number (varenummer)."
}
}
},
"annotations": {
"title": "Create a product",
"destructiveHint": true
}
}| yourReference | string | The customer's reference. |
| orderReference | string | Order reference, needed for EHF. |
| paymentAccount | string | Payment account code, e.g. 1920:10001. |
| contactPersonId | integer | Contact person id of the customer. |
| daysUntilDueDate * | integer | Days from the issue date until the invoice is due. |
| bankAccountNumber | string | Bank account number to pay into. |
{
"name": "fiken_create_invoice_draft",
"title": "Create an invoice draft",
"description": "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.",
"inputSchema": {
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"required": [
"companySlug",
"customerId",
"daysUntilDueDate",
"lines"
],
"properties": {
"type": {
"enum": [
"invoice",
"cash_invoice",
"offer",
"order_confirmation"
],
"type": "string",
"default": "invoice",
"description": "Kind of document the draft becomes."
},
"lines": {
"type": "array",
"items": {
"type": "object",
"required": [
"quantity"
],
"properties": {
"comment": {
"type": "string",
"maxLength": 200,
"description": "Comment printed on the line."
},
"vatType": {
"enum": [
"NONE",
"HIGH",
"MEDIUM",
"RAW_FISH",
"LOW",
"EXEMPT_IMPORT_EXPORT",
"EXEMPT",
"OUTSIDE",
"EXEMPT_REVERSE"
],
"type": "string",
"description": "VAT type (defaults from the product)."
},
"discount": {
"type": "number",
"maximum": 100,
"minimum": 0,
"description": "Line discount in percent."
},
"quantity": {
"type": "number",
"description": "Number of units."
},
"productId": {
"type": "integer",
"maximum": 9007199254740991,
"minimum": -9007199254740991,
"description": "productId from fiken_list_products (supplies price, VAT and income account)."
},
"unitPrice": {
"type": "integer",
"maximum": 9007199254740991,
"minimum": -9007199254740991,
"description": "Net price per unit, an integer in cents (100000 = 1000.00 kr)."
},
"description": {
"type": "string",
"maxLength": 200,
"description": "Line description."
},
"incomeAccount": {
"type": "string",
"description": "Income account, if the line has no product."
}
}
},
"minItems": 1,
"description": "The document lines."
},
"currency": {
"type": "string",
"pattern": "^[A-Z]{3}$",
"description": "ISO 4217 currency (default NOK)."
},
"issueDate": {
"type": "string",
"pattern": "^\\d{4}-\\d{2}-\\d{2}$",
"description": "Issue date, default today (YYYY-MM-DD)."
},
"projectId": {
"type": "integer",
"maximum": 9007199254740991,
"minimum": -9007199254740991,
"description": "Project id."
},
"customerId": {
"type": "integer",
"maximum": 9007199254740991,
"description": "The contactId of the customer (a contact with customer=true).",
"exclusiveMinimum": 0
},
"companySlug": {
"type": "string",
"minLength": 1,
"description": "The company's slug: the `slug` field from fiken_list_companies (for example swagger-test-company)."
},
"invoiceText": {
"type": "string",
"description": "Text printed above the lines."
},
"ourReference": {
"type": "string",
"description": "Your reference."
},
"yourReference": {
"type": "string",
"description": "The customer's reference."
},
"orderReference": {
"type": "string",
"description": "Order reference, needed for EHF."
},
"paymentAccount": {
"type": "string",
"description": "Payment account code, e.g. 1920:10001."
},
"contactPersonId": {
"type": "integer",
"maximum": 9007199254740991,
"minimum": -9007199254740991,
"description": "Contact person id of the customer."
},
"daysUntilDueDate": {
"type": "integer",
"maximum": 9007199254740991,
"minimum": 0,
"description": "Days from the issue date until the invoice is due."
},
"bankAccountNumber": {
"type": "string",
"description": "Bank account number to pay into."
}
}
},
"annotations": {
"title": "Create an invoice draft",
"destructiveHint": true
}
}| How an email carries the invoice. |
| organizationNumber | string | Recipient organization number (EHF); defaults to the customer's. |
| includeDocumentAttachments | boolean | Include the invoice's attachments (not for letters). |
| mergeInvoiceAndAttachments | boolean | Merge invoice and attachments into one PDF (with emailSendOption=attachment). |
{
"name": "fiken_send_invoice",
"title": "Send an invoice to the customer (IRREVERSIBLE)",
"description": "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.",
"inputSchema": {
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"required": [
"companySlug",
"invoiceId",
"method"
],
"properties": {
"method": {
"type": "array",
"items": {
"enum": [
"email",
"ehf",
"efaktura",
"sms",
"letter",
"auto"
],
"type": "string"
},
"minItems": 1,
"description": "Delivery channels in priority order, e.g. [\"email\"]. \"auto\" picks from what the customer has registered."
},
"message": {
"type": "string",
"description": "Message sent along with the invoice."
},
"invoiceId": {
"type": "integer",
"maximum": 9007199254740991,
"description": "The invoiceId of an ISSUED invoice (from fiken_list_invoices).",
"exclusiveMinimum": 0
},
"companySlug": {
"type": "string",
"minLength": 1,
"description": "The company's slug: the `slug` field from fiken_list_companies (for example swagger-test-company)."
},
"mobileNumber": {
"type": "string",
"description": "Recipient mobile number (SMS); defaults to the customer's."
},
"recipientName": {
"type": "string",
"description": "Recipient name."
},
"recipientEmail": {
"type": "string",
"description": "Recipient email (defaults to the customer's)."
},
"emailSendOption": {
"enum": [
"document_link",
"attachment",
"auto"
],
"type": "string",
"description": "How an email carries the invoice."
},
"organizationNumber": {
"type": "string",
"description": "Recipient organization number (EHF); defaults to the customer's."
},
"includeDocumentAttachments": {
"type": "boolean",
"default": true,
"description": "Include the invoice's attachments (not for letters)."
},
"mergeInvoiceAndAttachments": {
"type": "boolean",
"description": "Merge invoice and attachments into one PDF (with emailSendOption=attachment)."
}
}
},
"annotations": {
"title": "Send an invoice to the customer (IRREVERSIBLE)",
"destructiveHint": true
}
}