POST Stock/GetStockInformationForProduct
Haal actuele voorraad op voor een artikel
Request Information
URI Parameters
None.
Body Parameters
ProductStockInformationFilterName | Description | Type | Additional information |
---|---|---|---|
ProductCode |
Artikelcode |
string |
None. |
WareHouseId |
Magazijnnummer |
integer |
None. |
Request Formats
application/json, text/json
Sample:
{ "ProductCode": "sample string 1", "WareHouseId": 1 }
application/xml, text/xml
Sample:
<ProductStockInformationFilter xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Webware.Logic4.Classes.Filters"> <ProductCode>sample string 1</ProductCode> <WareHouseId>1</WareHouseId> </ProductStockInformationFilter>
Response Information
Resource Description
Logic4ResponseOfProductStockInformationName | Description | Type | Additional information |
---|---|---|---|
Value | ProductStockInformation |
None. |
|
ValidationMessages |
Eventuele foutmeldingen |
Collection of string |
None. |
Response Formats
application/json, text/json
Sample:
{ "Value": { "TotalStock": 1.0, "ReservedStock": 2.0, "FreeStock": 3.0, "StockLocations": [ { "LocationId": 1, "Location": "sample string 2", "ProductId": 3, "Qty": 4.0, "FreeStock": 5.0, "ZoneId": 1, "IsDefaultPickLocation": true, "WarehouseLocationSortId": 7, "WarehouseColumnSortId": 8, "WarehouseRowSortId": 9, "WarehouseSortId": 10 }, { "LocationId": 1, "Location": "sample string 2", "ProductId": 3, "Qty": 4.0, "FreeStock": 5.0, "ZoneId": 1, "IsDefaultPickLocation": true, "WarehouseLocationSortId": 7, "WarehouseColumnSortId": 8, "WarehouseRowSortId": 9, "WarehouseSortId": 10 } ], "NextDelivery": "2021-01-28T12:59:42.607945+01:00" }, "ValidationMessages": [ "sample string 1", "sample string 2" ] }
application/xml, text/xml
Sample:
<Logic4ResponseOfProductStockInformationLnN1pw8Y 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> <Value xmlns:d2p1="http://schemas.datacontract.org/2004/07/Webware.Logic4.Classes.Models"> <d2p1:FreeStock>3</d2p1:FreeStock> <d2p1:NextDelivery>2021-01-28T12:59:42.607945+01:00</d2p1:NextDelivery> <d2p1:ReservedStock>2</d2p1:ReservedStock> <d2p1:StockLocations> <d2p1:ProductStockLocations> <d2p1:FreeStock>5</d2p1:FreeStock> <d2p1:IsDefaultPickLocation>true</d2p1:IsDefaultPickLocation> <d2p1:Location>sample string 2</d2p1:Location> <d2p1:LocationId>1</d2p1:LocationId> <d2p1:ProductId>3</d2p1:ProductId> <d2p1:Qty>4</d2p1:Qty> <d2p1:WarehouseColumnSortId>8</d2p1:WarehouseColumnSortId> <d2p1:WarehouseLocationSortId>7</d2p1:WarehouseLocationSortId> <d2p1:WarehouseRowSortId>9</d2p1:WarehouseRowSortId> <d2p1:WarehouseSortId>10</d2p1:WarehouseSortId> <d2p1:ZoneId>1</d2p1:ZoneId> </d2p1:ProductStockLocations> <d2p1:ProductStockLocations> <d2p1:FreeStock>5</d2p1:FreeStock> <d2p1:IsDefaultPickLocation>true</d2p1:IsDefaultPickLocation> <d2p1:Location>sample string 2</d2p1:Location> <d2p1:LocationId>1</d2p1:LocationId> <d2p1:ProductId>3</d2p1:ProductId> <d2p1:Qty>4</d2p1:Qty> <d2p1:WarehouseColumnSortId>8</d2p1:WarehouseColumnSortId> <d2p1:WarehouseLocationSortId>7</d2p1:WarehouseLocationSortId> <d2p1:WarehouseRowSortId>9</d2p1:WarehouseRowSortId> <d2p1:WarehouseSortId>10</d2p1:WarehouseSortId> <d2p1:ZoneId>1</d2p1:ZoneId> </d2p1:ProductStockLocations> </d2p1:StockLocations> <d2p1:TotalStock>1</d2p1:TotalStock> </Value> </Logic4ResponseOfProductStockInformationLnN1pw8Y>