web
You’re offline. This is a read only version of the page.
close
Skip to main content
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

I have the same question (0)
  • Suggested answer
    Marco Mels Profile Picture
    on at
    RE: API - GET and POST Item by Location

    Hello,

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

    Thanks.

  • Vince ReplenishMe Profile Picture
    5 on at
    RE: API - GET and POST Item by Location

    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
    on at
    RE: API - GET and POST Item by Location

    Hello,

    Here:

    docs.microsoft.com/.../devenv-develop-custom-api

    Hope it helps.

  • Community Member Profile Picture
    on at
    RE: API - GET and POST Item by Location

    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
    93,592 Super User 2025 Season 2 on at
    RE: API - GET and POST Item by Location

    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
    RE: API - GET and POST Item by Location

    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

Responsible AI policies

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

Pallavi Phade – Community Spotlight

We are honored to recognize Pallavi Phade as our Community Spotlight honoree for…

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

#1
Sumit Singh Profile Picture

Sumit Singh 2,106

#2
YUN ZHU Profile Picture

YUN ZHU 1,752 Super User 2025 Season 2

#3
OussamaSabbouh Profile Picture

OussamaSabbouh 1,670

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans