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

NameDescriptionTypeAdditional information
warehouseId

integer

Required

isStockReset

boolean

Required

Body Parameters

Collection of InventoryWarehouseStock
NameDescriptionTypeAdditional 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:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'FormUrlEncodedFormatter' to write type 'List`1'.

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

application/xml, text/xml, application/json, text/json

Sample:

Sample not available.