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

Announcements

News and Announcements icon
Community site session details

Community site session details

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

Issue with ReceiveAndInvoice api of D365 v2.0

(0) ShareShare
ReportReport
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.

I have the same question (0)
  • Suggested answer
    YUN ZHU Profile Picture
    102,447 Super User 2026 Season 1 on at
    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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

Congratulations to the June Top 10 Community Leaders

These are the community rock stars!

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

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 686 Super User 2026 Season 1

#2
YUN ZHU Profile Picture

YUN ZHU 447 Super User 2026 Season 1

#3
Khushbu Rajvi. Profile Picture

Khushbu Rajvi. 328 Super User 2026 Season 1

Last 30 days Overall leaderboard

Featured topics

Microsoft Training Manuals

Product updates

Dynamics 365 release plans