Click or drag to resize

IUCJsonItemsInStoreGetEx Method

Get stock status for list of items from Store and/or Sourcing Location

Namespace:  LSOmni.Service
Assembly:  LSOmni.Service (in LSOmni.Service.dll) Version: Commerce Service for LS Central 2024.4
Syntax
C#
List<InventoryResponse> ItemsInStoreGetEx(
	List<InventoryRequest> items,
	string storeId,
	string locationId,
	bool useSourcingLocation
)

Parameters

items
Type: System.Collections.GenericListInventoryRequest
Items to get status for
storeId
Type: SystemString
Store to get Stock status for, if empty get status for all stores
locationId
Type: SystemString
Sourcing Location to get status for
useSourcingLocation
Type: SystemBoolean
Get Inventory status from all Sourcing Locations

Return Value

Type: ListInventoryResponse
Remarks
LS Central WS2 : GetInventoryMultipleV2

If storeId is empty, all store that have item available will be returned. If locationId is set, only status for that location will be shown (with or without storeId)

Examples
Sample request including minimum data needed to be able to process the request in LS Commerce
REST Sample Request
{
    "items": [{
        "ItemId": "40020",
        "VariantId": "010"
    }],
    "locationId": "W0001",
    "storeId": "S0001",
    "useSourcingLocation": 0
}
See Also