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

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

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

API - GET and POST Item by Location

(0) ShareShare
ReportReport
Posted on by 5

I have an inventory replenishment app that is live on other platforms and now building integration into Dynamics 365. I am trying to GET and POST Item details i.e. Inventory on hand, Sales Quantities, On Orders by Location/Site. I am only managing to get this data as Total Quantities i.e all Location/Sites. Does anyone know how to get out via API's details of Items at a Location/Site level?

These are the links I've been using to find API info, but I can't see any API for this level of detail.

https://docs.microsoft.com/en-us/dynamics365/business-central/dev-itpro/api-reference/v2.0/resources/dynamics_item

https://docs.microsoft.com/en-us/dynamics365/business-central/dev-itpro/api-reference/v2.0/api/dynamics_salesorderline_get

https://docs.microsoft.com/en-us/dynamics365/business-central/dev-itpro/api-reference/v2.0/api/dynamics_purchaseorder_create

https://docs.microsoft.com/en-us/dynamics365/business-central/dev-itpro/api-reference/v2.0/api/dynamics_location_get

Thanks

  • Suggested answer
    Marco Mels Profile Picture
    Microsoft Employee on at

    Hello,

    What about creating your own API? Your partner can assist you with this development effort.

    Thanks.

  • Vince ReplenishMe Profile Picture
    5 on at

    Thanks Marco. Are you able to send a link from Microsoft resources that explains how to create your own API?

  • Suggested answer
    Marco Mels Profile Picture
    Microsoft Employee on at
  • Community Member Profile Picture
    on at

    This custom api need to install in all business center account which used my PHP app.?

    Or my custom API works in all account which used my PHP app.

    because of when customer installed our APP in business center this custom API worked or not in their business center account? .

  • Suggested answer
    YUN ZHU Profile Picture
    103,712 Super User 2026 Season 2 on at

    Hi, BC has a standard Query that can be used.

    Items By Location (2554)

    pastedimage1661993728203v1.png

    pastedimage1661993743601v2.png

    For example,

    pastedimage1661993814078v3.png

    pastedimage1661993876382v4.png

    Hope this helps.

    Thanks.

    ZHU

  • Community Member Profile Picture
    on at

    I need get and post purchase order by location using API , But purchase order api does not give location parameter that's why need to develop custom API for purchase order,
    For custom purchase order i need to develop in AL language , My concern is this custom api works in all business center account which use our APP. Or need any other stuff.?

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 August Top 10 Community Leaders

These are the community rock stars!

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

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 740 Super User 2026 Season 2

#2
YUN ZHU Profile Picture

YUN ZHU 570 Super User 2026 Season 2

#3
Grigorios Mavrogeorgis Profile Picture

Grigorios Mavrogeorgis 291 Super User 2026 Season 2

Last 30 days Overall leaderboard

Featured topics

Microsoft Training Manuals

Product updates

Dynamics 365 release plans