Developers
Bank account balances by IBAN and currency.
GET /tesoreria/accounts Bank balances by IBAN and currency/tesoreria/accountsBank balances by IBAN and currency
Aggregated balance per IBAN + currency pair for your account.
Required permission:
treasury:bank_accounts.read (Treasury › Bank accounts › Read)
Pagination: Not paginated: returns the full set.
| Name | In | Type | Description |
|---|---|---|---|
currency | query | string | |
iban | query | string | |
from | query | string (date) | |
to | query | string (date) |
200 Treasury accounts · application/json
| Name | Type | Description |
|---|---|---|
accounts | object[] | |
accounts[].companyId | string | |
accounts[].iban | string | |
accounts[].currency | string | |
accounts[].balance | number | Sum of movements in native currency (2 decimals) |
accounts[].movementCount | integer | |
accounts[].latestMovement | string (date)nullable |
401 Missing or invalid Bearer token. · application/json
| Name | Type | Description |
|---|---|---|
error | string | Human-readable error message |
required_permission | string | Present on 403 - the missing permission (area:resource.action) |
403 Token lacks the required permission, or the resource is outside the token's tenant. · application/json
| Name | Type | Description |
|---|---|---|
error | string | Human-readable error message |
required_permission | string | Present on 403 - the missing permission (area:resource.action) |
429 Rate limit exceeded. · application/json
| Name | Type | Description |
|---|---|---|
error | string | Human-readable error message |
required_permission | string | Present on 403 - the missing permission (area:resource.action) |
curl -X GET "https://app.bm.consulting/api/v1/tesoreria/accounts" \
-H "Authorization: Bearer $BMC_TOKEN" const res = await fetch("https://app.bm.consulting/api/v1/tesoreria/accounts", {
method: "GET",
headers: {
Authorization: `Bearer ${process.env.BMC_TOKEN}`,
},
});
if (!res.ok) throw new Error(`${res.status} ${await res.text()}`);
const data = await res.json(); import os
import requests
res = requests.get(
"https://app.bm.consulting/api/v1/tesoreria/accounts",
headers={"Authorization": f"Bearer {os.environ['BMC_TOKEN']}"},
timeout=30,
)
res.raise_for_status()
data = res.json()