web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Small and medium business | Business Central, N...
Answered

Business Central API question

(0) ShareShare
ReportReport
Posted on by 30
Hi
I'm looking for some assistance with the Business Central API. Currently I'm making calls to BC using the api v2.0 https://docs.microsoft.com/en-us/dynamics365/business-central/dev-itpro/api-reference/v2.0/ which is working well but I'm now trying to get the posted creditor and debtor transaction data. On the debtor side I want the data from the 'Cust. Ledger Entry' table but there is no api endpoint for that table. (Nor the creditor side)
Have anyone got any idea how to query this data from the api?
BC-Tables.png
I have the same question (0)
  • Suggested answer
    Inge M. Bruvik Profile Picture
    1,111 Moderator on at

    There is no standard API avalible for the Custom Ledger Entries or the Vendor Ledger entries. 

    So you would either have to use the Odata V4 webservice or create a custom API.

    Best practice these days is to create a custom API for this.

    docs.microsoft.com/.../devenv-develop-custom-api

  • Verified answer
    YUN ZHU Profile Picture
    95,729 Super User 2025 Season 2 on at

    Hi, for 'Cust. Ledger Entry', there is a standard OData V4 URL in BC. You can try this first.

    For example: https://api.businesscentral.dynamics.com/v2.0/d8f36038-1f93-4543-affc-5dc92b6ee871/Sandbox02/ODataV4/Company('My%20Company')/Cust_LedgerEntries

    pastedimage1643165098328v2.png

    If it's not available, as Igne said, you need to customize the new API.

    Hope this will help.

    Thanks.

    ZHU

  • Suggested answer
    aksmith Profile Picture
    30 on at

    Thanks for your help - I have had a look through the OData V4 web services and I can get the data I required

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > Small and medium business | Business Central, NAV, RMS

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 2,238

#2
YUN ZHU Profile Picture

YUN ZHU 773 Super User 2025 Season 2

#3
Sumit Singh Profile Picture

Sumit Singh 630

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans