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

How would I update the bin on a purchase order line in Business Central from an API?

(8) ShareShare
ReportReport
Posted on by 64
It was suggested here that the Business Central APIs do not expose the bins on Purchase Order Lines, but that I could make a custom API to store and get bins. However, I still need to be able to update the bin on a purchase order during the receiving process somehow. Is this even currently possible?



Alternatively, we decided an inventory/bin transfer for the item might also work, which I've found some solutions such as creating a codeunit or something else custom. I was just wondering if there was a built-in away to do this programmatically/via an API call. If not, what is the simplest way to implement that?
 
Lastly, and slightly unrelated, but I can use the /receiveAndInvoice API call, which seems to work. However, we want to know if there is a way to only receive via an API call. I haven't been able to find anything on this other than the possibility of creating a custom API to only receive. However, I have no idea where to start on any of the custom stuff in AL. I'm willing to learn, but don't know what will work, what the best solution, or what needs to be called to perform just a receive operation (or the rest of the functionality that apparently has to be custom). There's not much information out there and Copilot doesn't seem to know what calls exist and which don't. Any help would be greatly appreciated.
 
Thank you!
I have the same question (0)
  • Suggested answer
    OussamaSabbouh Profile Picture
    12,878 Super User 2026 Season 1 on at
    Hello,
     
    You can’t set or update bins on Purchase Order lines via standard BC APIs. Bin handling happens at the warehouse or journal level, not on the PO line. During receiving, this is normally handled through Warehouse Receipts/Put-aways, which are not fully supported by standard APIs, so that requires a custom API if you want to control bins there. The simplest built-in, API-friendly option is to receive the PO normally and then move stock using an Item Reclass Journal (bin-to-bin transfer), which is supported via standard APIs. For “receive only” (without invoicing), there is no standard API action—this also requires a small AL customization.
     
    Regards,
    Oussama Sabbouh 
  • Suggested answer
    YUN ZHU Profile Picture
    99,084 Super User 2026 Season 1 on at
    Hi, hope the following can give you some hints.
    Dynamics 365 Business Central: Can we extend standard APIs? – Download Standard Source Code for APIs
     
    PS: Dynamics 365 Business Central Blog Series: REST API web services (APIs)
     
    Thanks.
    ZHU
  • Suggested answer
    Khushbu Rajvi. Profile Picture
    22,128 Super User 2026 Season 1 on at
  • Suggested answer
    Aman Kakkar Profile Picture
    2,977 Super User 2026 Season 1 on at
    Hi,
     
    You should go ahead with creating a custom API, rather than using a standard API.
     
    Thanks,
    Aman K

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Congratulations to our 2025 Community Spotlights

Thanks to all of our 2025 Community Spotlight stars!

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

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 1,946 Super User 2026 Season 1

#2
YUN ZHU Profile Picture

YUN ZHU 1,177 Super User 2026 Season 1

#3
Khushbu Rajvi. Profile Picture

Khushbu Rajvi. 555 Super User 2026 Season 1

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans