Skip to main content

Notifications

Announcements

No record found.

Business Central forum
Unanswered

customerPayments endpoint does not return expected data?

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

Categories:
  • 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

Quick Links

Anton Venter – Community Spotlight

Kudos to our October Community Star of the month!

Announcing Our 2024 Season 2 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Dynamics 365 Community Newsletter - September 2024

Check out the latest community news

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 290,532 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 228,501 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,148

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans