account balances

GET /companies/{companySlug}/accountBalances

Changed on

Retrieves the bookkeeping accounts and closing balances for a given date. An account is a string with either four digits, or four digits, a colon and five digits ("reskontro"). Examples: 3020 and 1500:10001

Request

  • Base URL
    https://api.fiken.no/api/v2
  • URL
    https://api.fiken.no/api/v2/companies/{companySlug}/accountBalances
  • 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.

datestring date required

Dates are represented as strings formatted as YYYY-MM-DD. Example: January 1st, 1970: "1970-01-01"

Response

OK

codestring
namestring
balanceinteger

Balance of account for a given date given in cents (5050 = 50.50)

Example response

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

Changes