Skip to main content
Business Central forum
Suggested answer

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

editSubscribe (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

Categories:
  • Suggested answer
    JAngle Profile Picture
    JAngle 33,131 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 33,131 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.

Helpful resources

Quick Links

What Motivates a Super User?

We know many of you visit the Dynamics 365 Community and Power Platform…

Demystifying Copilot with Sundar…

Industry experts answer burning questions directly from our amazing Community…

Enabling Copilot Case and Conversation…

Agents can easily recap an ongoing chat, transcribe a voice conversation…

Leaderboard

#1
Andre Arnaud de Calavon Profile Picture

Andre Arnaud de Cal... 283,030 Super User

#2
Martin Dráb Profile Picture

Martin Dráb 222,562 Super User

#3
nmaenpaa Profile Picture

nmaenpaa 101,138

Product updates

Dynamics 365 release plans