API of Charts of Accounts

18 views
Skip to first unread message

Ahmad Yaseen Khamosh

unread,
Aug 15, 2025, 2:44:44 PMAug 15
to bk...@googlegroups.com

Hello Jacob,

I hope this message finds you well.

We are planning to integrate the Chart of Accounts from Bkper into our system. However, we have not been able to find a suitable API endpoint for retrieving all Chart of Accounts. Could you please guide us to the correct API for this?

Additionally, we would like the API to support filtering by year, similar to the functionality available in Bkper itself.

Looking forward to your guidance.

Best regards,
Khamosh

LaCorey White

unread,
Aug 15, 2025, 3:03:47 PMAug 15
to bk...@googlegroups.com
This isn't Jacob 

--
You received this message because you are subscribed to the Google Groups "Bkper" group.
To unsubscribe from this group and stop receiving emails from it, send an email to bkper+un...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/bkper/CAL2RdWjcuZ4gDJ5_Qv%2BOWWGo0gijfQLUxmhxQpQn0FhM7DC8BQ%40mail.gmail.com.

Ahmad Yaseen Khamosh

unread,
Aug 15, 2025, 3:48:46 PMAug 15
to bk...@googlegroups.com

Pedro Celso Nunes da Costa

unread,
Aug 15, 2025, 4:21:54 PMAug 15
to bk...@googlegroups.com
You're in the right place - this is a Google group used as a channel to discuss usage of bkper - every now and then Jacob answers questions posted on this group.

[]s,
Pedro Costa

Wyrd bið ful aræd


Jacob van den Berg

unread,
Aug 18, 2025, 1:45:57 PMAug 18
to Bkper
Hi Khamosh,

Can you help us understand a bit more about how you are trying to retrieve the Chart of Accounts? 
Are you using  the rest API,  bkper-js or bkper-gs library?

Jacob 
Message has been deleted

Ahmad Yaseen Khamosh

unread,
Aug 20, 2025, 2:17:35 PMAug 20
to bk...@googlegroups.com
Thank you for your response, 
I am using Rest API of bkper v5, so you see we have chart of accounts in bkper, where we have groups and accounts whit in them, the same way i want to have in my system as well, even though I did some work around but i faced with two major issues, one is I am getting asset values as negative while in bkper its positive, second filter by year is not working, so I was wondering if we have any api that returns chart of accounts the same way as it dose in bkper that will help a lot.

Ahmad Yaseen Khamosh

unread,
Aug 20, 2025, 2:17:46 PMAug 20
to bk...@googlegroups.com
Thank you for your email
But It dose not return the hierarchy i just returns group name but I don't see any child of that group and accounts of the groups 

On Tue, 19 Aug 2025 at 16:50, 'Jacob van den Berg' via Bkper <bk...@googlegroups.com> wrote:
Using the Rest API

GET .../api/bkper/v5/books?query=on:2024&fields=items(accounts,groups)

This returns the books with all Accounts and Groups.

Screenshot 2025-08-19 at 09.08.07.png

Please let us know if this is what you were looking for, okay?



Jacob van den Berg

unread,
Aug 20, 2025, 3:27:47 PMAug 20
to Bkper
Hi Khamosh

Actually the suggestion I gave was not the best one. 

I believe that what you are looking for is this 
 GET /bkper/v5/books/{bookId}?loadAccounts=true&key={yourkey}

It returns the book information plus the complete Chart of Accounts with:
  - All accounts with their properties, groups, types, and balances
  - All groups with their hierarchical structure
  - Account classifications (ASSET, LIABILITY, INCOMING, OUTGOING)

For the data range there's no built-in parameter, so you can try to work with:
1. hasTransactionPosted: true/false
2. createdAt timestamps

Apologies for the previous idea, I believe that with this endpoint you get what you need. 

Please let us know how this works! 

Jacob
Reply all
Reply to author
Forward
0 new messages