POST api/POS/getStockData
Request Information
URI Parameters
None.
Body Parameters
StockRetrievalName | Description | Type | Additional information |
---|---|---|---|
mid | integer |
None. |
|
flagged | string |
None. |
Request Formats
application/json, text/json
Sample:
{ "mid": 1, "flagged": "sample string 1" }
application/xml, text/xml
Sample:
<StockRetrieval xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/LP.WebAPI.Models"> <flagged>sample string 1</flagged> <mid>1</mid> </StockRetrieval>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
Collection of StockModelName | Description | Type | Additional information |
---|---|---|---|
UId | integer |
None. |
|
SKU | string |
None. |
|
Unit | string |
None. |
|
Stock | decimal number |
None. |
|
Status | integer |
None. |
Response Formats
application/json, text/json
Sample:
[ { "UId": 1, "SKU": "sample string 2", "Unit": "sample string 3", "Stock": 1.1, "Status": 4 }, { "UId": 1, "SKU": "sample string 2", "Unit": "sample string 3", "Stock": 1.1, "Status": 4 } ]
application/xml, text/xml
Sample:
<ArrayOfStockModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/LP.WebAPI.Models"> <StockModel> <SKU>sample string 2</SKU> <Status>4</Status> <Stock>1.1</Stock> <UId>1</UId> <Unit>sample string 3</Unit> </StockModel> <StockModel> <SKU>sample string 2</SKU> <Status>4</Status> <Stock>1.1</Stock> <UId>1</UId> <Unit>sample string 3</Unit> </StockModel> </ArrayOfStockModel>