Reading bank data

Bank accounts, balances and transactions, and how to keep them in sync.

This guide uses the direct endpoints. For a customer's data, use the same paths under /v2/indirect/ (see Indirect integration).

Bank accounts

curl https://api.mybanx.io/v2/companies/bankaccounts -H "Authorization: Bearer <bearer>"
[
  {
    "id": "6b0f3c2e-9a41-4d6e-8f25-3c7d1e9a0b12",
    "account": "BE68539007547034",
    "currency": "EUR",
    "name": "Business account",
    "ownerName": "ACME SRL",
    "bankName": "KBC",
    "bic": "KREDBEBB",
    "countryId": "BE",
    "cashAccountType": "CACC",
    "balance": 12450.32,
    "validUntil": "2027-03-01T00:00:00Z",
    "connectorId": 30,
    "companyName": "ACME SRL",
    "dateCreated": "2026-03-01T09:12:44Z"
  }
]
  • id is the bankAccountId used by every other endpoint.
  • validUntil is the end of the bank consent. Past that date, mybanx can no longer refresh the account: renew the consent (see below).
  • 204 No Content means no bank account is connected or shared.

Balances

EndpointReturns
GET /v2/bankaccounts/{bankAccountId}/balancesThe most recent balance, or 204 if none was received yet.
GET /v2/bankaccounts/{bankAccountId}/balances/allThe most recent balance of each type.
{
  "id": "b5c1e0a7-2f3d-4c8e-9a61-7d2e4f0b3c91",
  "bankAccountId": "6b0f3c2e-9a41-4d6e-8f25-3c7d1e9a0b12",
  "amount": 12450.32,
  "dateReference": "2026-12-04T00:00:00Z",
  "balanceType": 3
}

The amount is in the account's currency. balanceType is a number: 3 is ITAV (interim available). See Balance types.

Transactions

curl "https://api.mybanx.io/v2/bankaccounts/<bankAccountId>/transactions/pages/0?pageSize=200" \
  -H "Authorization: Bearer <bearer>"

Transactions come newest first, up to 200 per page.

ParameterMeaning
pageId (path)Page number, from 0 (most recent) to 999.
pageSize1 to 200. Default and maximum: 200.
sequenceOnly return transactions newer than this sequence (see below).
forceRefreshtrue asks the bank for new transactions before answering. Slower: use it on user demand, not in loops.
[
  {
    "id": "3e9c7a10-5b2d-4f8e-a1c6-9d0e2b7f4a35",
    "sequence": 79740128999995,
    "bankAccountId": "6b0f3c2e-9a41-4d6e-8f25-3c7d1e9a0b12",
    "amount": -125.50,
    "currency": "EUR",
    "counterpartName": "Office Supplies SA",
    "counterpartReference": "BE71096123456769",
    "remittanceUnstructured": "Invoice 2026-0042",
    "remittanceStructuredRef": null,
    "end2EndId": "INV-2026-0042",
    "dateExecution": "2026-12-04T00:00:00Z",
    "dateValue": "2026-12-04T00:00:00Z",
    "balanceAfter": 12450.32,
    "statementNumber": 236
  }
]

amount is signed: negative for money leaving the account, positive for money coming in.

StatusMeaning
200A page of transactions.
206A page of transactions, but the account has no active bank consent: the data is no longer refreshed. Renew the consent.
204No transaction on this page: you reached the end of the list.

Reading the full history

Request pages 0, 1, 2... until you get 204.

Keeping in sync

sequence identifies a transaction within its bank account and decreases over time: a lower sequence is a newer transaction.

  1. On the first run, read the full history and remember the lowest sequence you received (the newest transaction).
  2. On each next run, call page 0 with sequence=<that value>: you only receive transactions newer than it.
  3. If the result fills a whole page, request the next pages with the same sequence until you get 204.
  4. Remember the new lowest sequence.

Use id and sequence together as the transaction's key in your system. mybanx's id may change over time; sequence is unique within a bank account.

First transaction

GET /v2/bankaccounts/{bankAccountId}/first returns the date of the oldest transaction mybanx holds, which tells you how far back you can read or export.

Renewing a bank consent

Banks grant access for a limited time (usually 90 or 180 days). When validUntil is near or past:

curl -X POST https://api.mybanx.io/v2/bankaccounts/<bankAccountId>/renew \
  -H "Authorization: Bearer <bearer>" \
  -H "Content-Type: application/json" \
  -d '{"url": "https://yourapp.example.com/bank/consent-done"}'

The response holds the bank url. Send the account holder there: they approve the new consent with their bank and are then redirected to the url you supplied.

Statement exports

To get transactions as a bank statement file, see Export formats, dates and types.


Did this page help you?