POST api/inventory/UpdateStockCounts?warehouseId={warehouseId}&isStockReset={isStockReset}
This API updates inventory stock counts in Freedom. It can either reset or increment/decrement stock counts. For a stock reset, the on hand amounts will match what is passed through, which is designed to reset the Freedom system to match the amounts in a warehouse. If stock reset is supplied as false, the api will simply add to the stock counts what is provided.
Request Information
URI Parameters
Name | Description | Type | Additional information |
---|---|---|---|
warehouseId | integer |
Required |
|
isStockReset | boolean |
Required |
Body Parameters
Collection of InventoryWarehouseStockName | Description | Type | Additional information |
---|---|---|---|
ProductID | string |
None. |
|
Stock | integer |
None. |
Request Formats
application/xml, text/xml
Sample:
<ListOfInventoryWarehouseStock> <InventoryWarehouseStock> <ProductID>sample string 1</ProductID> <Stock>2</Stock> </InventoryWarehouseStock> <InventoryWarehouseStock> <ProductID>sample string 1</ProductID> <Stock>2</Stock> </InventoryWarehouseStock> </ListOfInventoryWarehouseStock>
application/json, text/json
Sample:
[ { "ProductID": "sample string 1", "Stock": 2 }, { "ProductID": "sample string 1", "Stock": 2 } ]
application/x-www-form-urlencoded
Sample:
Response Information
Resource Description
IHttpActionResultNone.
Response Formats
application/xml, text/xml, application/json, text/json
Sample:
Sample not available.