Skip to content

Developers

Treasury

Bank account balances by IBAN and currency.

GET /tesoreria/accounts

Bank 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.

Parameters

NameInTypeDescription
currencyquerystring
ibanquerystring
fromquerystring (date)
toquerystring (date)

Responses

200 Treasury accounts · application/json

NameTypeDescription
accountsobject[]
accounts[].companyIdstring
accounts[].ibanstring
accounts[].currencystring
accounts[].balancenumberSum of movements in native currency (2 decimals)
accounts[].movementCountinteger
accounts[].latestMovementstring (date)
nullable

401 Missing or invalid Bearer token. · application/json

NameTypeDescription
errorstringHuman-readable error message
required_permissionstringPresent 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

NameTypeDescription
errorstringHuman-readable error message
required_permissionstringPresent on 403 - the missing permission (area:resource.action)

429 Rate limit exceeded. · application/json

NameTypeDescription
errorstringHuman-readable error message
required_permissionstringPresent on 403 - the missing permission (area:resource.action)

Examples

curl
curl -X GET "https://app.bm.consulting/api/v1/tesoreria/accounts" \
  -H "Authorization: Bearer $BMC_TOKEN"
TypeScript (fetch)
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();
Python (requests)
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()
Email
Contact