Get Part Inventory by Id
Endpoint:
GET v1/Inventory/{id}?allWarehouses={allWarehouses}
URI Parameters
Name | Description | Type | Additional information |
---|---|---|---|
id |
Part Id |
string |
Required |
allWarehouses |
1 - include pricing for all warehouses |
byte |
Default value is 0 |
Body Parameters
None.
Response Information
PartInventoryName | Description | Type | Additional information |
---|---|---|---|
Id | string |
None. |
|
StockIml | integer |
None. |
|
StockMar | integer |
None. |
|
StockLaw | integer |
None. |
|
StockTra | integer |
None. |
|
StockTyl | integer |
None. |
|
StockGre | integer |
None. |
|
StockMxm | integer |
None. |
|
StockLeb | integer |
None. |
|
StockStb | integer |
None. |
|
StockTotal | integer |
None. |
Response Examples
application/json, text/json :
{ "Id": "sample string 1", "StockIml": 1, "StockMar": 1, "StockLaw": 1, "StockTra": 1, "StockTyl": 1, "StockGre": 1, "StockMxm": 1, "StockLeb": 1, "StockStb": 1, "StockTotal": 2 }
text/javascript :
{"Id":"sample string 1","StockIml":1,"StockMar":1,"StockLaw":1,"StockTra":1,"StockTyl":1,"StockGre":1,"StockMxm":1,"StockLeb":1,"StockStb":1,"StockTotal":2}
application/xml, text/xml :
<PartInventory xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Sunlight.Library.Models"> <Id>sample string 1</Id> <StockGre>1</StockGre> <StockIml>1</StockIml> <StockLaw>1</StockLaw> <StockLeb>1</StockLeb> <StockMar>1</StockMar> <StockMxm>1</StockMxm> <StockStb>1</StockStb> <StockTotal>2</StockTotal> <StockTra>1</StockTra> <StockTyl>1</StockTyl> </PartInventory>