Compute Account Balances by Dimension
compute_account_dimension_balancesBreaks down an account's balance by dimensions (e.g., bank sub-accounts), including opening balances, returning one row per dimension plus the total.
Instructions
Break an account's balance down per dimension (e.g. each bank sub-account of 1020 Arvelduskontod: LHV, Wise, Lightyear), including any stored opening balances. Returns one row per dimension plus a total that equals compute_account_balance for the same account.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| fresh | No | Clear cached API/reference data first. | |
| date_to | No | End date (YYYY-MM-DD) | |
| date_from | No | Start date (YYYY-MM-DD) | |
| account_id | Yes | Account id (e.g. 1020). Required. In the RIK chart the id is the account number. |