Skip to main content

Notifications

Announcements

No record found.

Small and medium business | Business Central, N...
Suggested answer

No response from Business Central REST API for customer payments and vendor payments

(0) ShareShare
ReportReport
Posted on by 5

Hi,

While sending request to GET the customer payments & vendor payments, receiving a blank response. Please advise how can Get the data, currently I am using the below API request for customer payments:

api/v1.0/companies(7ae38f27-11a8-eb11-bb60-00155df3a615)/customerPaymentJournals(b1574e9e-15a8-eb11-bb60-00155df3a615)/customerPayments

I've also attached the blank response from above API request.

pastedimage1648639015475v1.png

  • Suggested answer
    JAngle Profile Picture
    JAngle 46 on at
    RE: No response from Business Central REST API for customer payments and vendor payments

    Not best practice but the quickest none development route is web services. Publish the customer ledger entries page and use the url it produces. Ensure you get the filters right to limit poor performance. Other choice is to develop a custom api page - if you don’t have the in house skills for that check out the simple object designer on appsource

  • Vishal Kamboj Profile Picture
    Vishal Kamboj 5 on at
    RE: No response from Business Central REST API for customer payments and vendor payments

    It seems that you are correct, is there any way to get the data from REST API for payments and Credit Notes.

  • Suggested answer
    JAngle Profile Picture
    JAngle 46 on at
    RE: No response from Business Central REST API for customer payments and vendor payments

    The confusion may stem from where you think this is grabbing data from. Here is the code of the page: github.com/.../APIV2CustomerPayments.Page.al

    It is not looking at customer ledger entries. It is for payments logged as journal lines. Difference between this endpoint and the customerPaymentJournals is that you are only querying the batch level of a journal.

    I would suggest reviewing whether this endpoint actually does what you require.

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

Congratulations 2024 Spotlight Honorees

Kudos to all of our 2024 community stars! 🎉

Meet the Top 10 leaders for December

Congratulations to our December super stars! 🥳

Start Your Super User Journey Pt 2

Join the ranks of our community heros! 🦹

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,885 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,569 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans