共用方式為


Enhancements to the e-commerce inventory availability lookup APIs

Important

This content is archived and is not being updated. For the latest documentation, go to What's new or changed in Dynamics 365 Commerce. For the latest release plans, go to Dynamics 365 and Microsoft Power Platform release plans.

Enabled for Public preview General availability
Users by admins, makers, or analysts May 24, 2021 Jul 30, 2021

Business value

Dynamics 365 Commerce has provided GetEstimatedAvailability and GetEstimatedProductWarehouseAvailability APIs to support various e-commerce scenarios that require product inventory check. For example, display inventory-level message on the product description page (PDP) and check inventory availability for "quantity picker" and "store picker" modules. We will continue to invest in improvements to the APIs to support more e-commerce scenarios based on in-market customer feedback, and address the limitations in current APIs to eliminate customizations.

Feature details

This feature will provide the following enhancements to the GetEstimatedAvailability and GetEstimatedProductWarehouseAvailability APIs:

  • Ability to retrieve quantity in Sell unit of measure (UoM) from the APIs. The APIs only return quantity based on Inventory UoM. For retailers who configure products to use different Inventory UoM and Sell UoM, customization is required to handle unit conversion. This enhancement will provide an option in APIs to retrieve quantity based on Sell UoM.

  • Ability to retrieve aggregated inventory data from the APIs. There are a growing number of retailers who set up their e-commerce sites to use multiple warehouses to facilitate product fulfillment. In that scenario, when showing inventory level on the PDP or determining purchase eligibility based on inventory, we should consider the product's on-hand inventory from all relevant warehouses rather than a single warehouse. Today the APIs only return inventory data per individual warehouse. This enhancement will provide users the ability to retrieve aggregated quantity and inventory level from the APIs based on all relevant warehouses, all shipping warehouses, or all pickup locations.

  • Factor in point-of-sale (POS)-side unposted inventory changes when calculating estimated inventory. The APIs are using optimized channel-side calculation logic to surface estimated on-hand inventory. Today this calculation only factors in e-commerce transactions that haven't yet been synced to Commerce headquarters. In an omnichannel context, transactions that have occurred in a retail store (such as cash-and-carry sales) might also impact the inventory availability for e-commerce sales. This enhancement will update the calculation logic to include unposted inventory sold through POS, to ensure the same product in the same warehouse shows consistent estimated inventory from the online channel and POS inventory lookup page.

See also

Commerce Scale Unit customer and consumer APIs (docs)