简介
- 创建、更新或删除库存调整数据,对应系统脚本:pms库存调整接口RL。
请求URL
https://6409627.restlets.api.netsuite.com/app/site/hosting/restlet.nl?script=574&deploy=1
请求方法
头字段及其说明
参数 |
需要 |
类型 |
说明 |
operateType |
True |
String |
操作类型,取值:create |
invAdjusType |
True |
String |
库存调整类型 |
docNum |
True |
String |
PMS库存调整的编号 |
date |
True |
String |
日期,格式为"2022/12/25" |
subsidiary |
True |
String |
子公司编码 |
memo |
Falae |
String |
备注 |
行字段及其说明
参数 |
需要 |
类型 |
说明 |
lines |
True |
Array |
行属性名称 |
item |
True |
String |
出入库的货品名称 |
quantity |
True |
Number |
出入库的数量 |
unitPrice |
false |
Number |
单价 |
location |
True |
String |
出入库的仓库 |
memo |
False |
String |
行交易备注 |
示例
{
"operateType":"create",
"invAdjusType": "三包入库",
"docNum": "xcmg-20221130001",
"date": "2022/11/23",
"subsidiary": "731465285701206016",
"memo": "库存调整pms",
"lines": [{
"item": "ARNE-1",
"quantity": "1",
"unitPrice":"1000",
"location": "774215190886481920",
"memo": "库存调整pms"
}]
}
响应参数说明
参数 |
类型 |
说明 |
success |
Boolean |
true:成功,false:失败 |
message |
String |
错误信息 |
data |
Array |
返回数据 |
返回示例
// Error
{
"success": false,
"message": "docNum must be filled!",
"data": []
}
// Success
{
"success": true,
"message": "",
"data": [{
"internalid" :3995
}]
}
备注