I am trying to create an purchase invoice for a purchase order. I am able to achieve this through business central UI. However, through API's, I am not able to link the invoice with the PO.
https://learn.microsoft.com/en-us/dynamics365/business-central/dev-itpro/api-reference/v2.0/api/dynamics_purchaseinvoice_create
Is it not possible to create a purchase invoice for a given purchase order through the API?
As far as I know, this is not a standard feature.You may consider customizing a new API to perform this conversion process.
Hope the following can give you some hints.
https://learn.microsoft.com/en-us/dynamics365/business-central/dev-itpro/developer/devenv-creating-and-interacting-with-odatav4-bound-action
https://yzhums.com/20111/
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.
As AI tools become more common, we’re introducing a Responsible AI Use…
We are honored to recognize Mansi Soni as our August 2025 Community…
These are the community rock stars!
Stay up to date on forum activity by subscribing.
Sohail Ahmed 2,899 Super User 2025 Season 2
Sumit Singh 2,444
Jeffrey Bulanadi 2,304