Notifications
Announcements
No record found.
Hi Community,
I'm facing an issue while creating a purchase invoice with a G/L Account selected in the purchase invoice line. When I use the GET API for the purchase invoice, the following properties return a value of 0:
totalAmountExcludingTax
totalTaxAmount
totalAmountIncludingTax
Could you please let me know if I need to set up any changes or if there is another way to get the correct values for these properties through the API?
Thank you!
Your file is currently under scan for potential threats. Please wait while we review it for any viruses or malicious content.
I'm using the standard API: https://{businesscentralPrefix}/api/v2.0/companies({id})/purchaseInvoices({id}).
https://{businesscentralPrefix}/api/v2.0/companies({id})/purchaseInvoices({id})
My purchase invoice line contains values. The API returns the accurate value when the purchase invoice line is an item. However, when the purchase invoice line is a G/L Account, it returns 0.
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 Neeraj Kumar as our Community Spotlight honoree for…
These are the community rock stars!
Stay up to date on forum activity by subscribing.
OussamaSabbouh 2,238
YUN ZHU 773 Super User 2025 Season 2
Sumit Singh 630