Read account balances
GET
/accountbalances
Read a list of account balances with monthly changes for a defined period.
Query parameters
-
dateFrom string(date) Required
The starting date from which balances will be retrieved.
-
dateTo string(date) Required
The ending date until which balances will be retrieved.
-
periods string
Specifies the periods for which the balances will be retrieved.
Format should match the following pattern:
^\d{4}-\d{2}-\d{2}Z?(,\d{4}-\d{2}-\d{2}Z?)*$
. -
type string
Specifies the type of data to be retrieved.
Values are
Date
orPeriod
. Default value isDate
. -
keepIncoming boolean
Indicates whether to include incoming amounts in the response. Default is false.
Default value is
false
.
GET /accountbalances
curl \
-X GET https://rest.api.24sevenoffice.com/v1/accountbalances?dateFrom=2024-05-04&dateTo=2024-05-04 \
-H "Authorization: string"
Response examples (200)
# Headers
Access-Control-Allow-Origin: string
Access-Control-Allow-Credentials: string
X-Trace-Id: string
# Payload
[
{
"account": {
"id": 1000001,
"number": 1900,
"name": "Cash, NOK"
},
"balances": [
{
"date": "2024-01-01",
"opening": 50000,
"closing": 55000,
"change": 5000
},
{
"date": "2024-02-01",
"opening": 55000,
"closing": 60000,
"change": 5000
}
]
},
{
"account": {
"id": 1000002,
"number": 1920,
"name": "Bank Account"
},
"balances": [
{
"date": "2024-01-01",
"opening": 80000,
"closing": 85000,
"change": 5000
},
{
"date": "2024-02-01",
"opening": 85000,
"closing": 90000,
"change": 5000
}
]
},
{
"account": {
"id": 2000001,
"number": 1500,
"name": "Accounts Receivable"
},
"balances": [
{
"date": "2024-01-01",
"opening": 100000,
"closing": 110000,
"change": 10000
},
{
"date": "2024-02-01",
"opening": 110000,
"closing": 120000,
"change": 10000
}
]
}
]