Summary:
(a) Is there an endpoint to show current balances for balance accounts (and also for profit-and-loss accounts)? Or some other way to retrieve that information through the api?
(b) Isn’t there a bug in that the endpoint balance-sheet-transactions actually shows only starting balances, whereas there is already an endpoint balance-sheet-account-starting-balance-list for exactly that?
Background:
I am trying to use the api2 to retrieve the current amount held in balance accounts.
I know that with the endpoint bank-and-cash-accounts I get a list of all bank and cash accounts with their balances, and I was hoping for something like balance-sheet-accounts to do the same for balance accounts, I could not find it. Does an endpoint like that exist?
Now about what seems to be a bug to me: In looking for a solution I tried balance-sheet-transactions and I found, not my answer, but a very strange result. This is the first part of the result in my case:
{
"business": {
"name": "my business”
},
"skip": 0,
"pageSize": 50,
"totalRecords": 26,
"balanceSheetTransactions": [
{
"edit": null,
"view": null,
"date": “”,
"transaction": "Starting balance”,
"account": null,
"bankOrCashAccount": null,
"expenseClaimPayer": null,
"customer": null,
"supplier": null,
"employee": null,
"inventoryKit": null,
"inventoryItem": null,
"investment": null,
"fixedAsset": null,
"intangibleAsset": null,
"capitalAccount": null,
"specialAccount": null,
"description": null,
"tax": null,
"qty": null,
"purchaseCost": null,
"unitCost": null,
"transactionAmount": null,
"currencyAmount": null,
"debit": {
"value": 23507.34,
"currency": “EUR”
},
"credit": null,
"balance": null
},
with more of the same to follow.
What seems to be a bug to me, is that it only shows “Starting Balance” transactions and no other. And indeed, the amounts shown are starting balances.
So, why would an endpoint labeled balance-sheet-transactions show starting balances, and nothing else? Whereas there is an explicit endpoint balance-sheet-account-starting-balance-list that gives what looks to be exactly the same result? Looks to me this endpoint is pointing to the wrong function.