XCMG NS API


备件物料成本接口

Brief Description
  • 根据备件物料编码和地点名称获取物料成本信息
Request URL
  • https://6409627-sb2.restlets.api.netsuite.com/app/site/hosting/restlet.nl?script=633&deploy=1
Request Method
  • POST
Request Parameter Description
Parameter Required Type Description
currentPage False Number 当前页面。若无值,则默认为1
pageSize False Number 每页数量。若无值,默认值为1000;若有值,取值不能超过1000
itemId True String 备件的货品编码
location True String 备件的地点
Samples
{

    "pageSize":6,     "currentPage":1,     "itemId":"LT-0913-T",     "location":"徐俄仓库" }

Response Parameter Description
Parameter Type Description
success Boolean true:success,false:failed
message String 错误信息
pageSize Number 每页最多数据数量
currentQty Number 当前页数据数量
currentPage Number 当前页
totalQty Number 总数据数量
totalPage Number 总页数
data Array 物料成本数据
Response Detail Parameter Description
Parameter Type Description
itemSubsidiary String 备件的子公司
location String 备件的地点
itemId String 备件的货品编码
locAvgCost Number 备件的地点平均成本
locSubsidiary String 地点的子公司
currency String 地点子公司的货币
Return Samples
// Error
{

    "success": false,     "message": "itemId and 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"         }     ] }

Memo

页面列表

ITEM_HTML