bank_transactions
In short
Bank transactions accessible on Pennylane. This table includes basic transaction information, such as the amount, execution date, transaction state.
This table is suited for incremental ingestion with an ETL tool. For standard data analysis, use schema
pennylane.
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 transaction.
created_at
DateTime64(6, 'UTC')
Creation time of this record in Pennylane.
execution_date
Date
Execution date of the transaction.
company_id
Int64
Unique ID of the company on Pennylane, referring to companies.id.
firm_group_id
Int64
Identifier of the firm group the company belongs to.
company_name
String
Name of the company on Pennylane.
account_name
String
Name of the bank account.
thirdparty_name
Nullable(String)
A thirdparty represents a supplier or a customer of the company managed on Pennylane. Third parties can be both legal entities or individuals. The thirdparty_name is the name of the third party on Pennylane.
thirdparty_id
Nullable(Int64)
A thirdparty represents a supplier or a customer of the company managed on Pennylane. Third parties can be both legal entities or individuals. The thirdparty_id is the unique identifier of the third party on Pennylane, and refers to suppliers.id or customers.id depending on the type of third party.
If the bookkeeping entry is associated with a third party, thirdparty_id is its ID.
Otherwise, thirdparty_id is inherited from the document associated with the bookkeeping entry in case of 4xx (invoices) and 5xx (bank transactions) accounts.
label
String
Label of the transaction, as provided by the bank.
amount_eur
Decimal(15, 2)
Amount of the transaction in EUR.
outstanding_balance
Nullable(Decimal(15, 2))
Current amount yet to be paid for the invoice linked with this transaction.
currency
LowCardinality(String)
Currency of the transaction.
currency_amount
Decimal(17, 4)
Amount of the transaction in the currency of the transaction.
source
LowCardinality(String)
Source of the transaction.
Examples: "Fintecture", "Connectors", "Bridge", "Stripe"
is_potential_duplicate
Bool
This flag indicates if a transaction was detected as being a potential duplicate, I.E it has the same amount, same account and execution date as another transaction. In the transactions view, they are outlined when filtering on "duplicates".
type_code
String
Bank transaction type code.
type_label
Nullable(String)
Label of the bank transaction type.
sftp_ebics_files_filename
Nullable(String)
Filename of the SFTP EBICS file. Applicable only to transactions extracted from EBICS connectors.
sftp_ebics_files_created_at
Nullable(DateTime64(6, 'UTC'))
Creation date of the SFTP EBICS file.
accountants_view_status
String
Status of the transactions as visible in the accountants' view. Warning the status may not be the same on the SME side. Status are the following:
- "Waiting details"
- "Pre-processed"
- "To be processed"
- "Processed"
- "Deleted"
proof_status
String
Proof status of the transaction. Depends on whether a proof is required for the transaction, marked as lost, and on the number of supporting documents attached Status are the following:
- "available"
- "missing" (Proof not marked as lost or optional)
- "optional"
- "lost"
grouped_at
Nullable(DateTime64(6, 'UTC'))
Time this record was matched into a group.
updated_at
DateTime64(6, 'UTC')
Date and time when the bank transaction was last updated in Pennylane.
group_uuid
Nullable(UUID)
Identifier of the group this record was matched into.
bridge_category_id
Nullable(Int64)
Category identifier assigned by the bank connection.
transaction_type
LowCardinality(Nullable(String))
Type of bank transaction.
fee
Nullable(Decimal(15, 2))
Bank fee amount.
currency_fee
Nullable(Decimal(15, 2))
Bank fee in the account currency.
fec_pieceref
String
Piece reference used in the FEC export.
processing_status
LowCardinality(String)
Processing status of the bank transaction.
external_id
Nullable(String)
Identifier of the record in the source system.
synchronized_at
DateTime64(6, 'UTC')
Timestamp of the last time this row version was written in ClickHouse.
deleted_at
Nullable(DateTime64(6, 'UTC'))
When the record was deleted. Empty when the record is still live. A row dropped by a company-level filter (draft, archived, unknown or deleted company) disappears with no deleted_at. Cascade those from etl.companies.