Warehouse-Specific Inventory in Business Central for eCommerce

ERP
Warehouse-Specific Inventory in Business Central for eCommerce — APPSeCONNECT article banner
12 min read

Key Takeaways

  • Overall inventory in Business Central does not always represent what a specific warehouse can safely sell through eCommerce.
  • Accurate availability requires location-level stock, exclusion of non-sellable inventory, and deduction of quantities already committed to open orders.
  • APPSeCONNECT addressed this by calculating true sellable stock for each warehouse and publishing that figure to the eCommerce platform.
  • In this implementation, the client reported zero overselling after warehouse-aware availability went live.

Accurate stock visibility is everything when you sell products online. Customers expect availability that matches what you can actually ship, not a rough estimate.

One client needed warehouse-specific inventory from Microsoft Dynamics 365 Business Central to sync to their eCommerce platform. The roadblock was simple: standard Business Central availability endpoints return overall quantity, not availability by warehouse. APPSeCONNECT closed that gap by calculating sellable stock per location and publishing the accurate figure online.

Why Warehouse-Specific Stock Matters for Online Selling

Online buyers make decisions from the availability number they see. If that number is wrong, the order gets placed anyway, and the business has to deal with the mismatch later.

Warehouse-specific stock matters because fulfillment is not one big pool. Stock sits in specific locations, and each location has its own constraints. A single overall quantity does not tell you what any one warehouse can safely ship.

When you publish warehouse-aware availability, you align the store with how the business actually operates. The eCommerce platform shows the quantity tied to the fulfillment location, so the promise to the customer stays realistic.

The Roadblock in Business Central: APIs Don’t Filter by Warehouse

Business Central provides multiple OData endpoints for product availability. The catch is that they do not natively provide item availability filtered by a specific warehouse location.

Instead, stock comes back as overall quantity. That makes it difficult to show accurate availability per fulfillment location, especially when real operations add constraints. The client faced three specific complications that made overall quantity unreliable.

Overall Quantity Is Not Location Availability

Overall quantity is a total stock figure. It does not tell you how much stock is available at one warehouse.

When eCommerce needs a warehouse-specific number, the overall total becomes an unreliable indicator. It can show stock that exists somewhere, while the selected fulfillment location does not have enough to ship.

This is the core mismatch: the store needs availability for the warehouse that will fulfill the order. Business Central endpoints return a total that cannot be trusted for that purpose.

Multiple Warehouses Make Totals Misleading

The first complication is multiple warehouses. When stock is split across locations, a total quantity hides distribution.

A total can look healthy even when one warehouse is close to empty. If the eCommerce platform uses that total, it can accept orders that the chosen location cannot fulfill.

This is not just a reporting issue; it is a fulfillment risk created by an oversimplified stock figure. When the online store and the warehouse reality diverge, the business ends up correcting after the order is placed.

Drop-Ship and Transit Inventory Must Be Excluded

The second complication is that drop-ship and transit inventory must be excluded. Overall quantity can include stock that should not be treated as sellable for a specific warehouse.

If you publish that combined number online, you show availability that the warehouse cannot actually ship from its shelves. That leads to incorrect promises in the storefront.

That is why exclusion rules matter, since the store should display only what the warehouse can actually ship, not a total that includes stock types that do not belong in the warehouse promise.

Reserved Sales Order Quantities Must Be Considered

The third complication is reserved sales order quantities. Even if stock is physically present, some of it is already committed.

If committed quantities are not deducted, the store can publish availability that has already been allocated to open sales orders. That is how a correct total can still become an incorrect promise.

This is a common gap in simple availability publishing. The number shown online should reflect what is safe to sell, not what exists in the building.

What Bad Stock Data Causes on eCommerce

Unreliable stock data pushed to eCommerce creates operational damage. Three outcomes show up repeatedly: overselling, delays, and customer dissatisfaction. The business impact is direct and repeatable.

65%
of nearly 370,000 inventory records examined across 37 retail stores were inaccurate (INFORMS / Management Science)
It highlights how easily system inventory can diverge from actual stock availability.

Overselling Starts With a Wrong Availability Number

Overselling happens when the store accepts an order that cannot be fulfilled from the intended location. The customer sees stock, places the order, and expects shipment.

When the warehouse reality does not match the published number, the business has to react after the sale. That reaction often means extra coordination across teams and slower order handling.

Accurate warehouse availability is one of the simplest ways to reduce overselling. It closes the gap between what the store shows and what the warehouse can actually fulfill.

Delays Follow When Fulfillment Must Be Reworked

When availability is wrong, fulfillment has to be reworked. The order may need a new allocation, a new fulfillment plan, or additional internal checks.

Those steps take time, even when the intent is to resolve quickly. The customer experiences that as a delay because shipping does not proceed as expected.

Delays are not always dramatic, but they can be small, frequent, and damaging over time. Those small delays accumulate into support load and reduced confidence in the store’s availability.

Customer Confidence Drops After Stock Surprises

Customers lose confidence when availability changes after purchase. The store showed one thing, and the fulfillment outcome shows another.

This affects repeat buying because customers learn not to trust the stock view. It also creates more questions for sales and support because customers ask for updates and explanations.

A warehouse-aware availability number prevents many of these surprises. The store becomes more accurate, and the buying experience becomes more predictable.

When “Overall Quantity” Looks Correct but Still Fails

Overall quantity can look accurate and still create wrong decisions online. The reason is that overall quantity answers the wrong question. It tells you how much stock exists across the business, not how much stock is available to ship from a specific warehouse for a specific order.

A common mismatch happens when one warehouse carries most of the stock, while another warehouse carries very little. The overall total still looks healthy. The eCommerce store then accepts an order expecting the selected warehouse to fulfill it. The warehouse cannot, because its local stock is lower than what the store published. Teams then have to reroute fulfillment or delay the shipment.

Another mismatch appears when stock exists but is not sellable. Drop-ship and transit inventory can increase the overall number, but those units should not be shown as available from a warehouse shelf. If the store publishes that combined number, it is publishing a promise it cannot keep from that location.

A third mismatch appears when committed quantities are ignored. Stock can exist in the warehouse, but it can already be reserved for open sales orders. If commitments are not deducted, the store can sell stock that has already been allocated.

These cases explain why the fix is not a different report. The fix is a calculation that returns the sellable stock by warehouse, after exclusions and commitments.

Microsoft Dynamics 365 Business Central Item Card showing the overall Inventory quantity field, which does not break stock down by warehouse location

Did You Know?

Stock physically present in a warehouse is not necessarily stock that is safe to sell online. Reserved quantities, transit inventory, drop-ship stock, and location-specific rules can all make sellable inventory lower than the overall quantity shown in the ERP.

The APPSeCONNECT Solution: Warehouse-Aware Inventory Calculation

APPSeCONNECT built a custom connector extension to bridge the gap. The connector dynamically calculates the actual available quantity for each item at a specific warehouse.

The idea is simple: compute sellable stock per location, not overall stock. The calculation uses Item Ledger Entries tied to the required Location Code, then applies movement totals and commitment deductions, then publishes the warehouse-specific figure to eCommerce.

This turns stock publishing into a controlled calculation rather than a raw total export.

Business Central Item Ledger Entries list with the Item No. and Location Code columns highlighted, used to scope stock movements to a specific warehouse

Custom Connector Extension for Business Central

The connector extension exists because the standard endpoints do not provide warehouse-filtered availability. It adds logic to produce the number eCommerce needs.

The extension is not focused on surface-level reporting. It focuses on how stock is actually used in operations. That includes location-specific movements and open commitments.

Once the connector returns a warehouse-specific number, the eCommerce platform can publish availability aligned to fulfillment reality. That reduces the need for manual correction work after orders are placed.

APPSeCONNECT integration flow mapping inventory updates between Microsoft Dynamics 365 Business Central and BigCommerce

How Availability Is Calculated by Warehouse

The calculation is a clear sequence. Each step exists because overall quantity is not enough for warehouse-specific publishing.

The goal is to return the true sellable stock for a particular warehouse, then send that figure online.

Step 1: Fetch Item Ledger Entries by Location Code

The calculation starts by fetching Item Ledger Entries tied to the required Location Code.

This ties the availability logic to a specific warehouse. It avoids pulling unrelated movements from other locations.

The Location Code acts as the anchor for the entire calculation. Once the ledger entries are scoped to that location, the next steps can compute an accurate location-specific figure instead of a blended total.

Step 2: Sum Positive and Negative Stock Movements

Next, the connector sums positive and negative stock movements.

This step matters because stock changes through movements. A flat snapshot without movement context can drift from reality when the dataset includes increases and decreases.

Summing movements produces a net result for the location. It keeps the quantity grounded in what actually happened in that warehouse, not in a global quantity that hides the direction of change.

Step 3: Deduct Committed Quantities from Open Sales Orders

The connector then deducts committed quantities from open sales orders.

Committed quantities represent stock that is already allocated. If they are not deducted, the store can publish stock that has already been promised elsewhere.

This step is where availability becomes sellable stock. It turns “on hand” into “safe to publish,” which is what online selling needs.

Step 4: Return the True Sellable Stock for That Warehouse

After movement totals and commitment deductions, the connector returns the true sellable stock for that particular warehouse.

Sellable stock is an operational number based on what the warehouse can fulfill.

This warehouse-specific figure solves the original problem by reflecting constraints that overall quantity cannot represent.

Step 5: Publish the Warehouse Figure to eCommerce

The final step is publishing the accurate warehouse figure to eCommerce in real time.

This replaces the unreliable overall quantity with a location-aware number. The store now reflects what the fulfillment location can support.

Publishing the warehouse-specific figure helps the business maintain a consistent promise to the customer. It also reduces reactive work caused by availability mismatches.

Related Read

Managing inventory across more than one storefront or marketplace? Explore how ERP-driven inventory synchronization keeps stock quantities aligned across eCommerce channels, marketplaces, warehouses, and the ERP.

A Compact View of the Calculation Logic

This summary keeps the sequence easy to review. It reflects the same steps used in the connector extension.

A Compact View of the Calculation Logic
Step
Input
Operation
Output
1
Item Ledger Entries
Filter by Location Code
Location-scoped entries
2
Location entries
Sum positive and negative movements
Net stock by location
3
Open Sales Orders
Deduct committed quantities
Sellable stock
4
Sellable stock
Return per warehouse
Warehouse-specific availability
5
Availability per warehouse
Publish to eCommerce
Accurate online quantity

This is the flow that converts a global number into a warehouse-aware figure.

What Changed After the Fix

Four outcomes mattered most in day-to-day operations after the change. These outcomes are practical and visible in how orders are handled and fulfilled.

11%
store-wide sales lift observed after an inventory audit in a 2026 grocery retail field study
The gains were concentrated on items where system inventory was higher than actual inventory.

Zero Overselling

In this implementation, the client reported zero overselling after the change went live.

This outcome follows directly from the calculation approach. When the store publishes sellable stock by warehouse, it avoids accepting orders based on a total that does not reflect the fulfillment location.

Fulfillment Accuracy for Each Warehouse Location

The fix improved fulfillment accuracy for each warehouse location.

This accuracy comes from location-aware availability. Each warehouse publishes a number tied to its own ledger entries and its own commitments.

When availability aligns to the location, fulfillment becomes more predictable. The warehouse can operate with fewer exceptions caused by online orders that were never feasible from that location.

Better Customer Experience on the Online Store

Better customer experience follows when availability is accurate.

Customers see a number that matches what the business can actually fulfill. That reduces stock surprises after checkout and reduces the need for customers to ask why an item is delayed.

The store feels more reliable because the availability view is grounded in warehouse reality.

Increased Automation and Operational Efficiency

The fix increased automation and operational efficiency.

When availability publishing is accurate, teams spend less time resolving stock conflicts created by incorrect online numbers. The workflow becomes more controlled because the availability figure is computed, not guessed.

Automation also makes the process repeatable. It avoids manual adjustments that can vary by person and by day.

Related Read

For a broader look at stock control, locations, replenishment, and inventory visibility, see our guide to managing inventory in Dynamics 365 Business Central.

A Practical Checklist Before You Turn It On

Warehouse-aware publishing depends on a few decisions and confirmations. This checklist stays tied to the constraints and steps described above.

Important Tip

Define what “sellable stock” means before configuring the integration. Agree on which Location Codes feed eCommerce, which inventory types must be excluded, how committed quantities are deducted, and how frequently availability should be updated. A technically successful sync can still publish the wrong stock number if these rules are unclear.

Confirm Location Code Coverage

Confirm that the required Location Code is available for the calculation and matches the warehouse you need.

If the Location Code is wrong, the whole calculation is wrong. The connector will compute a number, but it will be for the wrong place.

Location Code coverage is the first guardrail because every later step depends on it.

Confirm What Must Be Excluded

Confirm the inventory categories that must be excluded, such as drop-ship and transit inventory.

Exclusion keeps the published number honest. It prevents the store from showing inventory that should not be treated as available from a warehouse location.

This step is about defining what counts as sellable stock for the location and what should not be part of that promise.

Confirm Commitments Are Subtracted

Confirm that committed quantities from open Sales Orders are deducted from the availability calculation.

This keeps sellable stock from including inventory already allocated to existing demand. It avoids double-promising the same units.

Commitment subtraction is the core difference between “stock exists” and “stock is safe to sell.”

Confirm the Published Figure Is the Warehouse Figure

Confirm that the number sent to the eCommerce platform is the warehouse-specific figure, not the overall quantity.

This sounds obvious, but it is the final step that protects all the work done in the calculation. If the wrong number is published, the store returns to the same risk behavior.

Publishing the right number is what turns warehouse-aware calculation into warehouse-aware selling.

A Simple Way to Review Warehouse Availability Logic With Operations

Warehouse-aware availability works best when the operations team and the eCommerce team agree on what “sellable” means. The review does not need complex documentation. It needs a few clear decisions that match how the warehouse actually fulfills orders.

Start with the warehouse list. Confirm every warehouse location that should publish availability to the store. Then confirm what the store should do when a warehouse has stock but cannot ship to a given customer region. This keeps availability aligned with how fulfillment is really assigned.

Next, confirm what inventory should be excluded. Drop-ship and transit inventory should not be treated as shelf stock. If the online store shows those quantities as available from a warehouse, the store becomes unreliable. Exclusion rules make the published number honest.

Then confirm how commitments are handled. If open sales orders reserve stock, those reserved quantities must reduce the sellable number. This prevents double-selling the same units. It also reduces cancellation risk because the store is not selling inventory already promised elsewhere.

Finally, confirm how often the store should receive updates. The goal is to avoid long windows where the store shows old numbers. When updates stay frequent enough, the warehouse and the storefront stop drifting apart.

Conclusion

Business Central provides availability endpoints, but they return overall quantity instead of warehouse-specific availability. That becomes unreliable when stock is spread across multiple warehouses, when drop-ship and transit inventory must be excluded, and when reserved sales order quantities must be deducted.

APPSeCONNECT addressed this by calculating sellable stock per warehouse using Item Ledger Entries and Location Code, summing movements, and subtracting commitments from open sales orders. The accurate warehouse figure was then published to eCommerce, supporting the client’s reported zero overselling and more predictable fulfillment.

Frequently Asked Questions

Customers expect accurate availability per fulfillment location, not a total that hides warehouse differences.

Business CentraleCommerceInventory ManagementWarehouse ManagementAPPSeCONNECT

Related Resources