备件物料成本接口
<h5>简介</h5>
<ul>
<li>根据备件物料编码和地点名称获取物料成本信息</li>
</ul>
<h5>请求URL</h5>
<ul>
<li><code>https://6409627-sb2.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> "pageSize":6,
"currentPage":1,
"itemId":"LT-0913-T",
"location":"徐俄仓库",
"orgId":""
}</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> "success": false,
"message": "location must be filled!",
"data": []
}
// Success
{
"success": true,
"message": "",
"pageSize": 6,
"currentQty": 6,
"currentPage": 1,
"totalQty": 12,
"totalPage": 2,
"data": [
{
"itemSubsidiary": "",
"location": "徐俄仓库",
"itemId": "LT-0913-T",
"locAvgCost": 100,
"locSubsidiary": "xcmg2022112102",
"currency": "RUB"
},
{
"itemSubsidiary": "xcmg2022112101",
"location": "徐俄仓库",
"itemId": "LT-0913-T",
"locAvgCost": 100,
"locSubsidiary": "xcmg2022112102",
"currency": "RUB"
},
{
"itemSubsidiary": "",
"location": "徐俄仓库",
"itemId": "LT-0913-T",
"locAvgCost": 100,
"locSubsidiary": "xcmg2022112102",
"currency": "RUB"
},
{
"itemSubsidiary": "xcmg2022112105",
"location": "徐俄仓库",
"itemId": "LT-0913-T",
"locAvgCost": 100,
"locSubsidiary": "xcmg2022112102",
"currency": "RUB"
},
{
"itemSubsidiary": "xcmg2022112102",
"location": "徐俄仓库",
"itemId": "LT-0913-T",
"locAvgCost": 100,
"locSubsidiary": "xcmg2022112102",
"currency": "RUB"
},
{
"itemSubsidiary": "xcmg2022112103",
"location": "徐俄仓库",
"itemId": "LT-0913-T",
"locAvgCost": 100,
"locSubsidiary": "xcmg2022112102",
"currency": "RUB"
}
]
}</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>