Announcements
To fetch posted payments via API, you're looking in the right place by checking the Customer Ledger Entries. While I'm not familiar with the exact data on that page, I can share my experience with custom API pages for similar data.
If you need more details about the Customer and Invoice for each payment, you have a couple of options:
Request Ledger Entries and Loop Through: You can request the Ledger Entries and then loop through them, making separate API calls to fetch the customer and invoice details. While this method works, it can be somewhat heavy and less efficient.
Create a Custom API Page: A better approach would be to expand the custom API page for the Customer Ledger Entries to include the necessary fields from the Customer and Invoice tables. Once you've created this custom page in BC, you can publish it as a Web Service.
By creating a custom API page, you can directly get the posted payments with the proper contact and invoice platform unique IDs.
André Arnaud de Cal...
293,533
Super User 2025 Season 1
Martin Dráb
232,619
Most Valuable Professional
nmaenpaa
101,158
Moderator