POST v2/OnlineOrders/GetStockCount

Retrieve current stock level for Product IDs specified. Minimum 1, maximum 50 ProductIDs per request.

Request Information

URI Parameters

Name Type Description Additional information
version string

None.

Body Parameters

GetStockCountApiModel
Name Type Description Additional information
SiteID integer

Required

ProductIDs Collection of integer

Specify a list of ProductIDs that you want to see the current stock levels on the POS. Minimum 1, maximum 50 ProductIDs per request.

Required

Request Formats

application/json, text/json

Sample:
{
  "SiteID": 1,
  "ProductIDs": [
    1,
    2
  ]
}

application/xml, text/xml

Sample:
System.Xml.XmlDocument

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

GetStockCountResponseDto
Name Type Description Additional information
ProductResponseDtos Collection of GetStockCountProductResponseDto

None.

Response Formats

application/json, text/json

Sample:
{
  "ProductResponseDtos": [
    {
      "ProductID": 1,
      "ProductName": "sample string 2",
      "Count": 3.0,
      "LowStock": true
    },
    {
      "ProductID": 1,
      "ProductName": "sample string 2",
      "Count": 3.0,
      "LowStock": true
    }
  ]
}

application/xml, text/xml

Sample:
System.Xml.XmlDocument