POST Report/SearchStockDetails

Request Information

URI Parameters

None.

Body Parameters

SearchStockDetailParams
NameDescriptionTypeAdditional 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": "2025-06-25T00:41:16.1991267+08:00",
  "endDate": "2025-06-25T00:41:16.1991267+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>2025-06-25T00:41:16.1991267+08:00</endDate>
  <pageSize>4</pageSize>
  <productValue>2</productValue>
  <startDate>2025-06-25T00:41:16.1991267+08:00</startDate>
  <warehouseValue>1</warehouseValue>
</SearchStockDetailParams>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

SearchStockDetailResponse
NameDescriptionTypeAdditional 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": "2025-06-25T00:41:16.2030458+08:00",
      "billNumber": "sample string 4",
      "qty": 5,
      "costPrice": 6.1,
      "costAmount": 7.1,
      "balance": 8,
      "preBalance": 9,
      "preCostPrice": 10.1,
      "currentCostPrice": 11.1,
      "preCostAmount": 12.1,
      "curentCostAmount": 13.1,
      "wareHouseID": 14,
      "productID": 15,
      "detailID": 16
    },
    {
      "typeClass": 1,
      "type": "sample string 2",
      "primaryId": 3,
      "opeTime": "2025-06-25T00:41:16.2030458+08:00",
      "billNumber": "sample string 4",
      "qty": 5,
      "costPrice": 6.1,
      "costAmount": 7.1,
      "balance": 8,
      "preBalance": 9,
      "preCostPrice": 10.1,
      "currentCostPrice": 11.1,
      "preCostAmount": 12.1,
      "curentCostAmount": 13.1,
      "wareHouseID": 14,
      "productID": 15,
      "detailID": 16
    }
  ],
  "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>8</d2p1:balance>
      <d2p1:billNumber>sample string 4</d2p1:billNumber>
      <d2p1:costAmount>7.1</d2p1:costAmount>
      <d2p1:costPrice>6.1</d2p1:costPrice>
      <d2p1:curentCostAmount>13.1</d2p1:curentCostAmount>
      <d2p1:currentCostPrice>11.1</d2p1:currentCostPrice>
      <d2p1:detailID>16</d2p1:detailID>
      <d2p1:opeTime>2025-06-25T00:41:16.2030458+08:00</d2p1:opeTime>
      <d2p1:preBalance>9</d2p1:preBalance>
      <d2p1:preCostAmount>12.1</d2p1:preCostAmount>
      <d2p1:preCostPrice>10.1</d2p1:preCostPrice>
      <d2p1:primaryId>3</d2p1:primaryId>
      <d2p1:productID>15</d2p1:productID>
      <d2p1:qty>5</d2p1:qty>
      <d2p1:type>sample string 2</d2p1:type>
      <d2p1:typeClass>1</d2p1:typeClass>
      <d2p1:wareHouseID>14</d2p1:wareHouseID>
    </d2p1:StockDetail>
    <d2p1:StockDetail>
      <d2p1:balance>8</d2p1:balance>
      <d2p1:billNumber>sample string 4</d2p1:billNumber>
      <d2p1:costAmount>7.1</d2p1:costAmount>
      <d2p1:costPrice>6.1</d2p1:costPrice>
      <d2p1:curentCostAmount>13.1</d2p1:curentCostAmount>
      <d2p1:currentCostPrice>11.1</d2p1:currentCostPrice>
      <d2p1:detailID>16</d2p1:detailID>
      <d2p1:opeTime>2025-06-25T00:41:16.2030458+08:00</d2p1:opeTime>
      <d2p1:preBalance>9</d2p1:preBalance>
      <d2p1:preCostAmount>12.1</d2p1:preCostAmount>
      <d2p1:preCostPrice>10.1</d2p1:preCostPrice>
      <d2p1:primaryId>3</d2p1:primaryId>
      <d2p1:productID>15</d2p1:productID>
      <d2p1:qty>5</d2p1:qty>
      <d2p1:type>sample string 2</d2p1:type>
      <d2p1:typeClass>1</d2p1:typeClass>
      <d2p1:wareHouseID>14</d2p1:wareHouseID>
    </d2p1:StockDetail>
  </details>
  <preBalance>2.1</preBalance>
  <preCostAmount>6.1</preCostAmount>
  <preCostPrice>4.1</preCostPrice>
  <totalCount>1</totalCount>
</SearchStockDetailResponse>