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

Community site session details

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

customerPayments endpoint does not return expected data?

(0) ShareShare
ReportReport
Posted on by 5

Hello! 

I'm working on setting up a payments webhook for an integration with Business Central. I received a notification of an updated payment with this body

{"value"=>[{"resource"=>"https://api.businesscentral.dynamics.com/v2.0/production/api/v2.0/companies(690400bd-27f5-ec11-82ec-000d3a29997f)/customerPayments(93ec736e-e32a-ed11-97e8-0022481cbde5)", "changeType"=>"updated", "clientState"=>"bob", "subscriptionId"=>"ed3ba66f2a7c4c90a5b77897e1df4c71", "expirationDateTime"=>"2022-09-05T15:13:07Z", "lastModifiedDateTime"=>"2022-09-02T17:20:24.287Z"}]}

But then when I requested the data I received an error. The endpoint I tried is

companies(690400bd-27f5-ec11-82ec-000d3a29997f)/customerPayments(93ec736e-e32a-ed11-97e8-0022481cbde5)

And the response I received is BadRequest_ResourceNotFound\n  message: 'Resource not found for the segment ''customerPayments''

Additionally, if I did

companies(690400bd-27f5-ec11-82ec-000d3a29997f)/customerPayments

I would receive this response

{"@odata.context"=>"">api.businesscentral.dynamics.com/.../$metadata, "value"=>[]}

Am I doing something wrong? I'd appreciate any help you can provide!

Thanks-

-Andrew

I have the same question (0)
  • Marco Mels Profile Picture
    on at
    RE: customerPayments endpoint does not return expected data?

    Hello,

    If you do not get further traction from the community, feel free to raise this issue to Microsoft via your partner or CSP.

    Thanks.

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…

Abhilash Warrier – Community Spotlight

We are honored to recognize Abhilash Warrier as our Community Spotlight honoree for…

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

#1
Rishabh Kanaskar Profile Picture

Rishabh Kanaskar 2,568

#2
Sumit Singh Profile Picture

Sumit Singh 2,536

#3
YUN ZHU Profile Picture

YUN ZHU 2,015 Super User 2025 Season 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans