Read bank accounts
Read a list of bank accounts with details. Each bank account includes information such as account number, BIC, type, name, owner details, creation timestamp, modification timestamp, and the latest balance information, should there be one available.
Query parameters
-
before string(date)
The date to get the balance from. The balance returned will be the last balance before this date. If omitted, the current date is used. The date format here is YYYY-MM-DD.
GET
/bankaccounts
curl \
-X GET https://rest.api.24sevenoffice.com/v1/bankaccounts \
-H "Authorization: string"
Response examples (200)
[
{
"id": "123-456-789",
"bic": "DNBANOKKXXX",
"name": "ABC bank account",
"type": "bban",
"owner": {
"name": "ABC Corporation",
"contact": {
"name": "John Doe",
"email": "doe@example.com"
},
"organizationNumber": "123456789"
},
"number": "90000000001",
"balance": {
"amount": 1100,
"currency": {
"code": "NOK"
},
"timestamp": "2024-06-02T12:00:00.000Z"
},
"createdAt": "2022-01-01T18:00:00.000Z",
"modifiedAt": "2023-12-31T18:00:00.000Z"
},
{
"id": "456-789-012",
"bic": "DNBANOKKYYY",
"name": "XYZ bank account",
"type": "iban",
"owner": {
"name": "XYZ Corporation",
"contact": {
"name": "Jane Doe",
"email": "jane@example.com"
},
"organizationNumber": "987654321"
},
"number": "90000000002",
"balance": {
"amount": 1500,
"currency": {
"code": "USD"
},
"timestamp": "2024-07-01T12:00:00.000Z"
},
"createdAt": "2023-01-01T18:00:00.000Z",
"modifiedAt": "2024-01-01T18:00:00.000Z"
},
{
"id": "789-012-345",
"bic": "DNBANOKKZZZ",
"name": "DEF bank account",
"type": "bban",
"owner": {
"name": "DEF Corporation",
"contact": {
"name": "Alice Smith",
"email": "alice@example.com"
},
"organizationNumber": "987654321"
},
"number": "90000000003",
"createdAt": "2023-02-01T18:00:00.000Z",
"modifiedAt": "2024-02-01T18:00:00.000Z"
}
]