Skip to main content

Notifications

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

Issue with ReceiveAndInvoice api of D365 v2.0

Posted on by
Hello Dynamics 365 Team,
I need to notify an issue with the API we tried to use in our application. The issue is, in the Dynamics 365 Business Central, from D365 sandbox from the UI, from the Purchase Order, if we manually put details and perform /Receive And Invoice/ option, the purchase invoice gets created with the details. However, if we use the API for /ReceiveAndInvoice/ (i.e. https:/api.businesscentral.dynamics.com/v2.0/{myinstanceid}/api/v2.0/companies({mycompanyid})/purchaseOrders({purchaseorderguid)/Microsoft.NAV.receiveAndInvoice), it does not error out but even does not create the purchase invoice entry. See below... Looking forward for any solution.

  • Suggested answer
    YUN ZHU Profile Picture
    YUN ZHU 73,565 Super User 2024 Season 2 on at
    Issue with ReceiveAndInvoice api of D365 v2.0
    It looks like you're missing environment information from your Endpoint.
    Before you run the Post in api, can you try to get the information of this order?
    For example,
     
    Hope this helps.
    Thanks.
    ZHU

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Community AMA December 12th

Join us as we continue to demystify the Dynamics 365 Contact Center

Leaderboard

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 230,188 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans