HomeGuides
Submit Documentation FeedbackJoin Developer CommunityLog In

Realtime Inventory API handlers

This topic describes how to use Realtime Inventory API handlers to get the specified real time inventory parameter.

HTTP Verb: GET

URL: /api/v1/realtimeinventory

Description: Gets the specified real time inventory parameter.

Base: HandlerBase<GetRealtimeInventoryParameter, GetRealtimeInventoryResult>

Handlers:

OrderHandlerDescription
500ValidateContextRetrieves product settings by GetProductSettingsHandler. Validates CanSeeProducts setting, if it equals "false", returns error.
600GetDisplayableGetInventoryParameterStore GetInventoryParameter property from the parameter object to DisplayableGetInventoryParameter property on the result object. If DisplayableGetInventoryParameter property doesn't contain any product id, returns error.
700GetInventoryResultsRetrieves a inventoryServiceResults using the RealTimeInventory engine. If the inventoryServiceResults contains any Inventories, stores them in the RealTimeInventoryResults property on the result object.
800GetAvailabilityIterates over RealTimeInventoryResults and gets a product and a productInventory from each RealTimeInventoryResult.

Iterates over each product's unit of measure, if productInventory does not have availability information for selected unit of measure, calls GetAvailability catalog pipeline for it. Updates product's availability and availability in warehouses.

Did this page help you?