POST Report/SearchStockDetails
Request Information
URI Parameters
None.
Body Parameters
SearchStockDetailParams| Name | Description | Type | Additional information |
|---|---|---|---|
| warehouseValue | integer |
None. |
|
| productValue | integer |
None. |
|
| startDate | date |
None. |
|
| endDate | date |
None. |
|
| pageSize | integer |
None. |
|
| currentPage | integer |
None. |
Request Formats
application/json, text/json
Sample:
{
"warehouseValue": 1,
"productValue": 2,
"startDate": "2026-04-18T20:24:38.1593405+08:00",
"endDate": "2026-04-18T20:24:38.1613043+08:00",
"pageSize": 4,
"currentPage": 5
}
application/xml, text/xml
Sample:
<SearchStockDetailParams xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/MKY.ERP.RG.WebApis.Models"> <currentPage>5</currentPage> <endDate>2026-04-18T20:24:38.1613043+08:00</endDate> <pageSize>4</pageSize> <productValue>2</productValue> <startDate>2026-04-18T20:24:38.1593405+08:00</startDate> <warehouseValue>1</warehouseValue> </SearchStockDetailParams>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
SearchStockDetailResponse| Name | Description | Type | Additional information |
|---|---|---|---|
| totalCount | integer |
None. |
|
| preBalance | decimal number |
None. |
|
| currentBalance | decimal number |
None. |
|
| preCostPrice | decimal number |
None. |
|
| currentCostPrice | decimal number |
None. |
|
| preCostAmount | decimal number |
None. |
|
| curentCostAmount | decimal number |
None. |
|
| details | Collection of StockDetail |
None. |
|
| resultCode | string |
None. |
|
| resultMsg | string |
None. |
Response Formats
application/json, text/json
Sample:
{
"totalCount": 1,
"preBalance": 2.1,
"currentBalance": 3.1,
"preCostPrice": 4.1,
"currentCostPrice": 5.1,
"preCostAmount": 6.1,
"curentCostAmount": 7.1,
"details": [
{
"typeClass": 1,
"type": "sample string 2",
"primaryId": 3,
"opeTime": "2026-04-18T20:24:38.165216+08:00",
"billNumber": "sample string 4",
"customerName": "sample string 5",
"supplierName": "sample string 6",
"contactNumber": "sample string 7",
"qty": 8,
"costPrice": 9.1,
"costAmount": 10.1,
"balance": 11,
"preBalance": 12,
"preCostPrice": 13.1,
"currentCostPrice": 14.1,
"preCostAmount": 15.1,
"curentCostAmount": 16.1,
"wareHouseID": 17,
"productID": 18,
"detailID": 19
},
{
"typeClass": 1,
"type": "sample string 2",
"primaryId": 3,
"opeTime": "2026-04-18T20:24:38.165216+08:00",
"billNumber": "sample string 4",
"customerName": "sample string 5",
"supplierName": "sample string 6",
"contactNumber": "sample string 7",
"qty": 8,
"costPrice": 9.1,
"costAmount": 10.1,
"balance": 11,
"preBalance": 12,
"preCostPrice": 13.1,
"currentCostPrice": 14.1,
"preCostAmount": 15.1,
"curentCostAmount": 16.1,
"wareHouseID": 17,
"productID": 18,
"detailID": 19
}
],
"resultCode": "sample string 8",
"resultMsg": "sample string 9"
}
application/xml, text/xml
Sample:
<SearchStockDetailResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/MKY.ERP.RG.WebApis.Models">
<resultCode>sample string 8</resultCode>
<resultMsg>sample string 9</resultMsg>
<curentCostAmount>7.1</curentCostAmount>
<currentBalance>3.1</currentBalance>
<currentCostPrice>5.1</currentCostPrice>
<details xmlns:d2p1="http://schemas.datacontract.org/2004/07/MKY.ERP.RG.Entity">
<d2p1:StockDetail>
<d2p1:balance>11</d2p1:balance>
<d2p1:billNumber>sample string 4</d2p1:billNumber>
<d2p1:contactNumber>sample string 7</d2p1:contactNumber>
<d2p1:costAmount>10.1</d2p1:costAmount>
<d2p1:costPrice>9.1</d2p1:costPrice>
<d2p1:curentCostAmount>16.1</d2p1:curentCostAmount>
<d2p1:currentCostPrice>14.1</d2p1:currentCostPrice>
<d2p1:customerName>sample string 5</d2p1:customerName>
<d2p1:detailID>19</d2p1:detailID>
<d2p1:opeTime>2026-04-18T20:24:38.165216+08:00</d2p1:opeTime>
<d2p1:preBalance>12</d2p1:preBalance>
<d2p1:preCostAmount>15.1</d2p1:preCostAmount>
<d2p1:preCostPrice>13.1</d2p1:preCostPrice>
<d2p1:primaryId>3</d2p1:primaryId>
<d2p1:productID>18</d2p1:productID>
<d2p1:qty>8</d2p1:qty>
<d2p1:supplierName>sample string 6</d2p1:supplierName>
<d2p1:type>sample string 2</d2p1:type>
<d2p1:typeClass>1</d2p1:typeClass>
<d2p1:wareHouseID>17</d2p1:wareHouseID>
</d2p1:StockDetail>
<d2p1:StockDetail>
<d2p1:balance>11</d2p1:balance>
<d2p1:billNumber>sample string 4</d2p1:billNumber>
<d2p1:contactNumber>sample string 7</d2p1:contactNumber>
<d2p1:costAmount>10.1</d2p1:costAmount>
<d2p1:costPrice>9.1</d2p1:costPrice>
<d2p1:curentCostAmount>16.1</d2p1:curentCostAmount>
<d2p1:currentCostPrice>14.1</d2p1:currentCostPrice>
<d2p1:customerName>sample string 5</d2p1:customerName>
<d2p1:detailID>19</d2p1:detailID>
<d2p1:opeTime>2026-04-18T20:24:38.165216+08:00</d2p1:opeTime>
<d2p1:preBalance>12</d2p1:preBalance>
<d2p1:preCostAmount>15.1</d2p1:preCostAmount>
<d2p1:preCostPrice>13.1</d2p1:preCostPrice>
<d2p1:primaryId>3</d2p1:primaryId>
<d2p1:productID>18</d2p1:productID>
<d2p1:qty>8</d2p1:qty>
<d2p1:supplierName>sample string 6</d2p1:supplierName>
<d2p1:type>sample string 2</d2p1:type>
<d2p1:typeClass>1</d2p1:typeClass>
<d2p1:wareHouseID>17</d2p1:wareHouseID>
</d2p1:StockDetail>
</details>
<preBalance>2.1</preBalance>
<preCostAmount>6.1</preCostAmount>
<preCostPrice>4.1</preCostPrice>
<totalCount>1</totalCount>
</SearchStockDetailResponse>