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

Announcements

No record found.

News and Announcements icon
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
    98,758 Super User 2026 Season 1 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
    32,137 Super User 2026 Season 1 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,269 Super User 2026 Season 1 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,302 Super User 2026 Season 1 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
    98,758 Super User 2026 Season 1 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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Congratulations to our 2025 Community Spotlights

Thanks to all of our 2025 Community Spotlight stars!

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

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 1,747 Super User 2026 Season 1

#2
YUN ZHU Profile Picture

YUN ZHU 1,016 Super User 2026 Season 1

#3
Dhiren Nagar Profile Picture

Dhiren Nagar 506 Super User 2026 Season 1

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans