GET v1/Products/{productId}/StockPerLocation
Get a list with all available stock per WarehouseLocation.
Request Information
Requires Authorization!
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| productId |
The Product Id |
integer |
Required. |
Body Parameters
None.
Response Information
Resource Description
A list of ProductStockLocationInfo objects.
Collection of ProductStockLocationInfo
| Name | Description | Type | Additional information |
|---|---|---|---|
| WarehouseLocationId |
Gets or sets the warehouse location identifier. |
integer |
Required |
| ProductCode |
Gets or sets the product code. |
string |
None. |
| ProductId |
Gets or sets the product identifier. |
integer |
Required |
| QtyOnHand |
Gets or sets the qty on hand. |
decimal number |
None. |
| QtyAvailable |
Gets the qty available. |
decimal number |
None. |
| QtyReserved |
Gets or sets the qty reserved. |
decimal number |
None. |
Response Formats
application/json, text/json
Sample:
[
{
"WarehouseLocationId": 1,
"ProductCode": "sample string 2",
"ProductId": 3,
"QtyOnHand": 4.0,
"QtyAvailable": -1.0,
"QtyReserved": 5.0
},
{
"WarehouseLocationId": 1,
"ProductCode": "sample string 2",
"ProductId": 3,
"QtyOnHand": 4.0,
"QtyAvailable": -1.0,
"QtyReserved": 5.0
}
]
application/xml, text/xml
Sample:
<ArrayOfProductStockLocationInfo xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<ProductStockLocationInfo>
<WarehouseLocationId>1</WarehouseLocationId>
<ProductCode>sample string 2</ProductCode>
<ProductId>3</ProductId>
<QtyOnHand>4</QtyOnHand>
<QtyReserved>5</QtyReserved>
</ProductStockLocationInfo>
<ProductStockLocationInfo>
<WarehouseLocationId>1</WarehouseLocationId>
<ProductCode>sample string 2</ProductCode>
<ProductId>3</ProductId>
<QtyOnHand>4</QtyOnHand>
<QtyReserved>5</QtyReserved>
</ProductStockLocationInfo>
</ArrayOfProductStockLocationInfo>