accounts

GET /companies/{companySlug}/accounts

Changed on

Retrieves the bookkeeping accounts for the current year

Request

  • Base URL
    https://api.fiken.no/api/v2
  • URL
    https://api.fiken.no/api/v2/companies/{companySlug}/accounts
  • Auth
    OAuth 2
    Authorization code: https://fiken.no/oauth/authorize
    Token URL: https://fiken.no/oauth/token

Query parameters

fromAccountinteger

Filter parameter specifying which account numbers to return. Specify using the from and to parameters (excluding subaccount).

toAccountinteger

Filter parameter specifying which account numbers to return. Specify using the from and to parameters (excluding subaccount).

pageinteger

Returns the number of the page to return. Valid page values are integers from 0 to the total number of pages. Default value is 0.

pageSizeinteger

Defines the number of entries to return on each page. Maximum number of results that can be returned at one time are 100. Default value is 25.

rangestring

Comma-separated list of account numbers or ranges of account numbers (e.g. "1000-1500, 1580-1999, 2000, 2061, 7000-7004")

Response

OK

codestring
namestring

Example response

[
  {
    "code": "1500:10029",
    "name": "John Lewis"
  }
]

Changes