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.
Is it not possible to create a purchase invoice for a given purchase order through the API?