POST Stock/GetStockForWarehouses

Ophalen van voorraadstanden voor specifieke magazijnen.

Request Information

URI Parameters

None.

Body Parameters

ProductStockFilter
NameDescriptionTypeAdditional information
WareHouseId

Magazijnnummer

integer

None.

Request Formats

application/json, text/json

Sample:
{
  "WareHouseId": 1
}

application/xml, text/xml

Sample:
<ProductStockFilter xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Webware.Logic4.Classes.Filters">
  <WareHouseId>1</WareHouseId>
</ProductStockFilter>

Response Information

Resource Description

Logic4ResponseListOfProductStock
NameDescriptionTypeAdditional information
Records

Collection of ProductStock

None.

RecordsCounter

integer

None.

ValidationMessages

Eventuele foutmeldingen

Collection of string

None.

Response Formats

application/json, text/json

Sample:
{
  "Records": [
    {
      "WarehouseId": 1,
      "ProductId": 2,
      "ProductCode": "sample string 3",
      "Qty": 4.0,
      "QtyReserved": 5.0,
      "FreeStock": -1.0
    },
    {
      "WarehouseId": 1,
      "ProductId": 2,
      "ProductCode": "sample string 3",
      "Qty": 4.0,
      "QtyReserved": 5.0,
      "FreeStock": -1.0
    }
  ],
  "RecordsCounter": 2,
  "ValidationMessages": [
    "sample string 1",
    "sample string 2"
  ]
}

application/xml, text/xml

Sample:
<Logic4ResponseListOfProductStockLnN1pw8Y xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Webware.Logic4.Classes.ResponseModels">
  <ValidationMessages xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:string>sample string 1</d2p1:string>
    <d2p1:string>sample string 2</d2p1:string>
  </ValidationMessages>
  <Records xmlns:d2p1="http://schemas.datacontract.org/2004/07/Webware.Logic4.Classes.Models">
    <d2p1:ProductStock>
      <d2p1:ProductCode>sample string 3</d2p1:ProductCode>
      <d2p1:ProductId>2</d2p1:ProductId>
      <d2p1:Qty>4</d2p1:Qty>
      <d2p1:QtyReserved>5</d2p1:QtyReserved>
      <d2p1:WarehouseId>1</d2p1:WarehouseId>
    </d2p1:ProductStock>
    <d2p1:ProductStock>
      <d2p1:ProductCode>sample string 3</d2p1:ProductCode>
      <d2p1:ProductId>2</d2p1:ProductId>
      <d2p1:Qty>4</d2p1:Qty>
      <d2p1:QtyReserved>5</d2p1:QtyReserved>
      <d2p1:WarehouseId>1</d2p1:WarehouseId>
    </d2p1:ProductStock>
  </Records>
</Logic4ResponseListOfProductStockLnN1pw8Y>