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

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics 365 | Integration, Dataverse...
Unanswered

How do I get the bins from a purchase order line item from the Business Central APIs?

(0) ShareShare
ReportReport
Posted on by

I have a C# app that calls Business Central APIs. I can use https://api.businesscentral.dynamics.com/v2.0/{{tenantId}}/Sandbox/api/v2.0/companies({{company_id}})/purchaseOrders({{PO}})/purchaseOrderLines?$expand=location to get more data about the purchase order lines and the locations, but it doesn't give the bin code. I've looked everywhere and asked Copilot, but I can't seem to find more information on this.

 

To give further information, I made a purchase order for the sandbox company, Cronus, in a TEST warehouse, in a TESTZONE, in a TESTBIN that I
made. I finally managed to set the location code and bin code of an item, but this is not returned from the /purchaseOrderLines API call.
The $expand=location gives me more detail about the location, but still doesn't include the bin. It doesn't work for the default sandbox POs either.

At this point, I've tried companies({{co_id})/locations({loc_id})/bins?tenant={{tenantId}} and different variations of that to try to get anything relating to bin codes and I can't get anything returned. These were invalid requests.

 

Any steer in the right direction would be greatly appreciated.

I have the same question (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.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > Microsoft Dynamics 365 | Integration, Dataverse, and general topics

#1
#ManoVerse Profile Picture

#ManoVerse 101

#2
Siv Sagar Profile Picture

Siv Sagar 93 Super User 2025 Season 2

#3
Martin Dráb Profile Picture

Martin Dráb 62 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans