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...
Suggested Answer

How can we get Customer Ledger Entries using API

(2) ShareShare
ReportReport
Posted on by 22
I am finding the solution to get customer ledger entry from BC. how can I get it using API.
I have the same question (0)
  • Suggested answer
    YUN ZHU Profile Picture
    95,597 Super User 2025 Season 2 on at
    Hi, as of now, Customer Ledger Entries does not have a standard API, but there is a standard Web Service, which you can access using the Odata URL below.
    https://api.businesscentral.dynamics.com/v2.0/c8558e71-6ad8-4fcd-9f29-3ca165b41bbe/Sandbox223/ODataV4/Company('My%20Company')/Cust_LedgerEntries
    Below is the standard code for all standard APIs V2.0.
     
    PS: Dynamics 365 Business Central: Can we extend standard APIs? – Download Standard Source Code for APIs
     
     
    Thanks.
    ZHU
  • CU03041415-1 Profile Picture
    3 on at
    Is it possible to POST or PUT to the Customer Ledger Entries?
  • Suggested answer
    Valentin Castravet Profile Picture
    31,435 Super User 2025 Season 2 on at
    You can't post directly to any ledger entries page in Business Central. This goes against how the system works. To post something, you need to use documents or a journal. So if you post documents such as sales orders, or journals where the entry is against a customer, you would be created customer ledger entries indirectly. You can do this using APIs
     
  • Suggested answer
    Suresh Kulla Profile Picture
    50,243 Super User 2025 Season 2 on at
    You don't have a standard API; you can use the OData Services, but you cannot create ledger entries directly by using API. You need to use Sales Documents or Journals to create ledger entries.
     
    Check the second blog, which describes how the entries are created.
     
     
  • Suggested answer
    Teddy Herryanto (That NAV Guy) Profile Picture
    14,284 Super User 2025 Season 2 on at
    You are not supposed to post directly to Customer Ledger Entries because there are a lot of tables related to this.
     
    You need to create and post through a document or journal.
  • Suggested answer
    YUN ZHU Profile Picture
    95,597 Super User 2025 Season 2 on at
    Hi, hope the following helps.
    Dynamics 365 Business Central: Can we insert/modify/delete posted data (Posted Documents & Posted Entries) via AL???
     
    Thanks.
    ZHU

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,917

#2
Jainam M. Kothari Profile Picture

Jainam M. Kothari 1,161 Super User 2025 Season 2

#3
YUN ZHU Profile Picture

YUN ZHU 1,025 Super User 2025 Season 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans