区域调拨单
简介
- 创建、更新或删除库存转移订单数据,对应系统脚本:pms库存转移订单SL。
请求URL
https://6409627.restlets.api.netsuite.com/app/site/hosting/restlet.nl?script=576&deploy=1
请求方法
- POST
头字段及其说明
参数 | 需要 | 类型 | 说明 |
---|---|---|---|
operateType | True | String | 操作类型,取值:create |
docNum | True | String | 事务的文档号 |
invAdjusType | True | String | 库存调整类型,出库为'OUT',入库为'IN' |
date | True | String | 日期,格式为"2022/11/23" |
subsidiary | True | String | 子公司 |
fromLocation | True | String | 自地点 |
toLocation | True | String | 至地点 |
memo | Falae | String | 头备注 |
行字段及其说明
参数 | 需要 | 类型 | 说明 |
---|---|---|---|
lines | True | 对象 | 行属性名称 |
item | True | String | 货品 |
unit | True | String | 单位 |
quantity | True | Number | 货物数量 |
示例
{
"operateType":"create", "docNum": "invadjustment002", "date": "2022/12/21", "invAdjusType":"OUT", "subsidiary": "731465285701206016", "fromLocation": "774215190886481920", "toLocation": "774215006509072384", "memo": "库存调整1", "lines": [{ "item": "ARNE-2", "quantity": "1", "unit": "PCS" }] }
或
{
"operateType":"create", "docNum": "invadjustment002", "date": "2022/12/21", "invAdjusType":"IN", "subsidiary": "731465285701206016", "fromLocation": "774215190886481920", "toLocation": "774215006509072384", "memo": "库存调整1", "lines": [{ "item": "ARNE-2", "quantity": "1", "unit": "PCS" }] }
响应参数说明
Parameter | Type | Description |
---|---|---|
success | Boolean | true:success,false:failed |
message | String | errors message |
data | Array | Data |
响应参数说明
// Error
{
"success": false, "message": "docNum must be filled!", "data": [] } // Success { "success": true, "message": "", "data": [{ "internalid" :3995 }] }
备注
- For certification information, please see Interface Certification Information