XCMG NS API


备件物料成本接口

<h5>简介</h5> <ul> <li>根据备件物料编码和地点名称获取物料成本信息</li> </ul> <h5>请求URL</h5> <ul> <li><code>https://6409627.restlets.api.netsuite.com/app/site/hosting/restlet.nl?script=591&amp;deploy=1</code></li> </ul> <h5>请求方法</h5> <ul> <li>POST</li> </ul> <h5>字段及其说明</h5> <table> <thead> <tr> <th>Parameter</th> <th>Required</th> <th>Type</th> <th>Description</th> </tr> </thead> <tbody> <tr> <td>currentPage</td> <td>False</td> <td>Number</td> <td>当前页面。若无值,则默认为1</td> </tr> <tr> <td>pageSize</td> <td>False</td> <td>Number</td> <td>每页数量。若无值,默认值为1000;若有值,取值不能超过1000</td> </tr> <tr> <td>itemId</td> <td>False</td> <td>String</td> <td>备件的货品编码</td> </tr> <tr> <td>location</td> <td>False</td> <td>String</td> <td>备件的地点id</td> </tr> <tr> <td>orgId</td> <td>False</td> <td>String</td> <td>子公司编码</td> </tr> </tbody> </table> <h5>示例</h5> <pre><code>{</code></pre> <p>    &quot;pageSize&quot;:6,     &quot;currentPage&quot;:1,     &quot;itemId&quot;:&quot;LT-0913-T&quot;,     &quot;location&quot;:&quot;徐俄仓库&quot;, &quot;orgId&quot;:&quot;&quot; }</p> <h5>响应参数说明</h5> <table> <thead> <tr> <th>Parameter</th> <th>Type</th> <th>Description</th> </tr> </thead> <tbody> <tr> <td>success</td> <td>Boolean</td> <td>true:success,false:failed</td> </tr> <tr> <td>message</td> <td>String</td> <td>错误信息</td> </tr> <tr> <td>pageSize</td> <td>Number</td> <td>每页最多数据数量</td> </tr> <tr> <td>currentQty</td> <td>Number</td> <td>当前页数据数量</td> </tr> <tr> <td>currentPage</td> <td>Number</td> <td>当前页</td> </tr> <tr> <td>totalQty</td> <td>Number</td> <td>总数据数量</td> </tr> <tr> <td>totalPage</td> <td>Number</td> <td>总页数</td> </tr> <tr> <td>data</td> <td>Array</td> <td>物料成本数据</td> </tr> </tbody> </table> <h5>响应参数详细说明</h5> <table> <thead> <tr> <th>Parameter</th> <th>Type</th> <th>Description</th> </tr> </thead> <tbody> <tr> <td>itemSubsidiary</td> <td>String</td> <td>备件的子公司</td> </tr> <tr> <td>location</td> <td>String</td> <td>备件的地点id</td> </tr> <tr> <td>itemId</td> <td>String</td> <td>备件的货品编码</td> </tr> <tr> <td>locAvgCost</td> <td>Number</td> <td>备件的地点平均成本</td> </tr> <tr> <td>locSubsidiary</td> <td>String</td> <td>地点的子公司</td> </tr> <tr> <td>currency</td> <td>String</td> <td>地点子公司的货币</td> </tr> </tbody> </table> <h5>返回示例</h5> <pre><code>// Error {</code></pre> <p>    &quot;success&quot;: false,     &quot;message&quot;: &quot;location must be filled!&quot;,     &quot;data&quot;: [] } // Success {     &quot;success&quot;: true,     &quot;message&quot;: &quot;&quot;,     &quot;pageSize&quot;: 6,     &quot;currentQty&quot;: 6,     &quot;currentPage&quot;: 1,     &quot;totalQty&quot;: 12,     &quot;totalPage&quot;: 2,     &quot;data&quot;: [         {             &quot;itemSubsidiary&quot;: &quot;&quot;,             &quot;location&quot;: &quot;徐俄仓库&quot;,             &quot;itemId&quot;: &quot;LT-0913-T&quot;,             &quot;locAvgCost&quot;: 100,             &quot;locSubsidiary&quot;: &quot;xcmg2022112102&quot;,             &quot;currency&quot;: &quot;RUB&quot;         },         {             &quot;itemSubsidiary&quot;: &quot;xcmg2022112101&quot;,             &quot;location&quot;: &quot;徐俄仓库&quot;,             &quot;itemId&quot;: &quot;LT-0913-T&quot;,             &quot;locAvgCost&quot;: 100,             &quot;locSubsidiary&quot;: &quot;xcmg2022112102&quot;,             &quot;currency&quot;: &quot;RUB&quot;         },         {             &quot;itemSubsidiary&quot;: &quot;&quot;,             &quot;location&quot;: &quot;徐俄仓库&quot;,             &quot;itemId&quot;: &quot;LT-0913-T&quot;,             &quot;locAvgCost&quot;: 100,             &quot;locSubsidiary&quot;: &quot;xcmg2022112102&quot;,             &quot;currency&quot;: &quot;RUB&quot;         },         {             &quot;itemSubsidiary&quot;: &quot;xcmg2022112105&quot;,             &quot;location&quot;: &quot;徐俄仓库&quot;,             &quot;itemId&quot;: &quot;LT-0913-T&quot;,             &quot;locAvgCost&quot;: 100,             &quot;locSubsidiary&quot;: &quot;xcmg2022112102&quot;,             &quot;currency&quot;: &quot;RUB&quot;         },         {             &quot;itemSubsidiary&quot;: &quot;xcmg2022112102&quot;,             &quot;location&quot;: &quot;徐俄仓库&quot;,             &quot;itemId&quot;: &quot;LT-0913-T&quot;,             &quot;locAvgCost&quot;: 100,             &quot;locSubsidiary&quot;: &quot;xcmg2022112102&quot;,             &quot;currency&quot;: &quot;RUB&quot;         },         {             &quot;itemSubsidiary&quot;: &quot;xcmg2022112103&quot;,             &quot;location&quot;: &quot;徐俄仓库&quot;,             &quot;itemId&quot;: &quot;LT-0913-T&quot;,             &quot;locAvgCost&quot;: 100,             &quot;locSubsidiary&quot;: &quot;xcmg2022112102&quot;,             &quot;currency&quot;: &quot;RUB&quot;         }     ] }</p> <h5>备注</h5> <ul> <li>For certification information, please see <a href="https://www.showdoc.com.cn/xcmgnsapi/9352531526636929">Interface Certification Information</a></li> </ul>

页面列表

ITEM_HTML