POST v2/OnlineOrders/PostStockCount
Set stock level and stock warning level of Products.
Request Information
URI Parameters
| Name | Type | Description | Additional information |
|---|---|---|---|
| version | string |
None. |
Body Parameters
PostStockCountApiModel| Name | Type | Description | Additional information |
|---|---|---|---|
| SiteID | integer |
Required |
|
| ProductStockCounts | Collection of PostStockCountProductRequestCommand |
A collection of Product Stock counts. |
Required |
Request Formats
application/json, text/json
Sample:
{
"SiteID": 1,
"ProductStockCounts": [
{
"ProductID": 1,
"Count": 1.0,
"LowStock": 1.0
},
{
"ProductID": 1,
"Count": 1.0,
"LowStock": 1.0
}
]
}
application/xml, text/xml
Sample:
System.Xml.XmlDocument
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
PostStockCountResponseDto| Name | Type | Description | Additional information |
|---|---|---|---|
| ProductStockCounts | Collection of PostStockCountProductResponseDto |
None. |
Response Formats
application/json, text/json
Sample:
{
"ProductStockCounts": [
{
"ProductID": 1,
"ProductName": "sample string 2",
"Count": 3.0,
"LowStock": 4.0
},
{
"ProductID": 1,
"ProductName": "sample string 2",
"Count": 3.0,
"LowStock": 4.0
}
]
}
application/xml, text/xml
Sample:
System.Xml.XmlDocument