GET api/inventory/{id1}?id={id}
Returns inventory for a specific InventoryID record
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| id |
WarehouseCode from the IN_Warehouse table |
integer |
Required |
| id1 | string |
None. |
Body Parameters
None.
Response Information
Resource Description
Inventory| Name | Description | Type | Additional information |
|---|---|---|---|
| InventoryId |
Key from IN_Inventory |
integer |
None. |
| WarehouseCode |
Abbreviated Warehouse code; defaults to N/A if not supplied |
string |
String length: inclusive between 0 and 25 |
| PartCode |
Abbreviated Part_Code, from IN_Part table |
string |
String length: inclusive between 0 and 25 |
| OnHandNew |
Number of now onhand |
integer |
None. |
| OnHandUsed |
Number of used onhand |
integer |
None. |
Response Formats
application/json, text/json
Sample:
{
"InventoryId": 1,
"WarehouseCode": "sample string 2",
"PartCode": "sample string 3",
"OnHandNew": 1,
"OnHandUsed": 1
}
application/xml, text/xml
Sample:
<Inventory xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/SedonaServices.Models"> <InventoryId>1</InventoryId> <OnHandNew>1</OnHandNew> <OnHandUsed>1</OnHandUsed> <PartCode>sample string 3</PartCode> <WarehouseCode>sample string 2</WarehouseCode> </Inventory>