bank_accounts

In short

Bank accounts connected to Pennylane. This table includes basic account information, balances and data synchronization status.

Query this table as practice_management.bank_accounts.

Filter key(s)

company_id

Sorting key

ClickHouse skips blocks only when the filter starts with this key, in this order. When the first column is `company_id`, put `company_id` in every query. Read a fleet one company at a time, or in batches of `company_id`. Do not run one query with no company filter. List only the columns you need. `SELECT *` reads columns you will not use.

company_id, id

Available columns

id

Int64

Unique identifier of the bank account.

company_id

Int64

Unique ID of the company on Pennylane, referring to companies.id.

company_name

Nullable(String)

Name of the company on Pennylane.

establishment_id

Nullable(Int64)

Unique ID of banking establishment holding the account.

establishment_name

Nullable(String)

Name of the banking establishment holding the account.

name

Nullable(String)

Name of the bank account on Pennylane.

connection

Nullable(String)

"Connection" of the account (e.g.: EBICs, JeDeclare, ...). NULL connections correspond to manual accounts (no automatic sync).

accounting_plan_item_id

Nullable(Int64)

Unique identifier of the bookkeeping account associated with the bank account.

accounting_plan_item_number

Nullable(String)

Bookkeeping account number associated with the bank account (starting with 512).
Examples: "5121008", "512000002"

accounting_plan_item_label

Nullable(String)

Label of the bookkeeping account associated with the bank account.
Examples: "Banque Nationale de Paris", "CREDIT AGRICOLE"

currency

Nullable(String)

Currency of the bank account.
Examples: "EUR", "USD"

is_visible

Bool

This flag indicates if the bank account is marked as visible in the Pennylane interface.

is_synchronized

Bool

This flag indicates if the bank account is set to be synchronized automatically with Pennylane.

balance

Decimal(15, 2)

Current balance of the bank account, as provided by the bank.

last_sync_success

Nullable(Bool)

This flag indicates if the last synchronization of the bank account was successful. The value can be NULL in case the bank account has never been synchronized.

last_sync_at

Nullable(DateTime64(6))

Date and time of the last synchronization of the bank account in Pennylane. This value can be NULL in case the bank account has never been synchronized.

created_at

DateTime64(6)

Date and time of the creation of the bank account in Pennylane.

updated_at

DateTime64(6)

Date and time of the last update of the bank account in Pennylane.

synchronized_at

DateTime64(6, 'UTC')

Timestamp of the last time this row version was written in ClickHouse.


Back to top

Page last modified: Nov 23 2026 at 06:10 PM.