POST api/WarehouseStock/ImportWarehouseStock

Request Information

URI Parameters

None.

Body Parameters

WarehouseStockListDTO
NameDescriptionTypeAdditional information
WarehouseStockList

Collection of WarehouseStockDTO

None.

Request Formats

application/json, text/json

Sample:
{
  "WarehouseStockList": [
    {
      "StockRef": "sample string 1",
      "WarehouseCode": "sample string 2",
      "FreeStockQuantity": 3.0
    },
    {
      "StockRef": "sample string 1",
      "WarehouseCode": "sample string 2",
      "FreeStockQuantity": 3.0
    }
  ]
}

application/xml, text/xml

Sample:
<WarehouseStockListDTO xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/DMH.DTO.Upload">
  <_x003C_WarehouseStockList_x003E_k__BackingField>
    <WarehouseStockDTO>
      <_x003C_FreeStockQuantity_x003E_k__BackingField>3</_x003C_FreeStockQuantity_x003E_k__BackingField>
      <_x003C_StockRef_x003E_k__BackingField>sample string 1</_x003C_StockRef_x003E_k__BackingField>
      <_x003C_WarehouseCode_x003E_k__BackingField>sample string 2</_x003C_WarehouseCode_x003E_k__BackingField>
    </WarehouseStockDTO>
    <WarehouseStockDTO>
      <_x003C_FreeStockQuantity_x003E_k__BackingField>3</_x003C_FreeStockQuantity_x003E_k__BackingField>
      <_x003C_StockRef_x003E_k__BackingField>sample string 1</_x003C_StockRef_x003E_k__BackingField>
      <_x003C_WarehouseCode_x003E_k__BackingField>sample string 2</_x003C_WarehouseCode_x003E_k__BackingField>
    </WarehouseStockDTO>
  </_x003C_WarehouseStockList_x003E_k__BackingField>
</WarehouseStockListDTO>

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'WarehouseStockListDTO'.

Response Information

Resource Description

None.