Skip to main content

Notifications

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

  • Marco Mels Profile Picture
    Marco Mels 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

News and Announcements

Announcing Category Subscriptions!

Quick Links

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Verified Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 230,370 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans