简介
请求URL
请求方式
请求参数说明
Parameter |
Required |
Type |
Description |
field leval |
operateType |
True |
String |
操作类型,值列表为: create |
1 |
docNum |
True |
String |
来源系统的事务处理文档编号 |
1 |
associatedDoc |
False |
String |
事务处理的相关单据 |
1 |
subsidiary |
True |
String |
附属公司 |
1 |
fromLocation |
True |
String |
自地点 |
1 |
department |
False |
String |
部门 |
1 |
customer |
True |
String |
接收货品或享受服务的客户 |
1 |
date |
True |
String |
来源系统的事务处理过账日期,格式为 "2022/11/23" |
1 |
currency |
True |
String |
事务处理的币种 |
1 |
exchangeRate |
False |
Number |
汇率 |
1 |
memo |
False |
String |
事务处理的备注(头) |
1 |
saleConNum |
True |
String |
销售合同号 |
1 |
pmsPo |
False |
String |
客户PO号 |
1 |
consignOrNot |
True |
Boolean |
是否寄售,传true和false |
1 |
lines |
True |
Array |
行对象 |
|
item |
True |
String |
事务处理的货品 |
2 |
quantity |
True |
Number |
账单/发票/库存转移/库存调整的商品数量 |
2 |
unit |
False |
String |
单位 |
2 |
unitPrice |
False |
Number |
商品单价(不含税) |
2 |
taxUnit |
True |
Number |
含税单价 |
2 |
location |
True |
String |
事务处理的目的地点 |
2 |
memo |
False |
String |
事务处理的备注(行) |
2 |
示例
{
"operateType":"create",
"docNum": "salesorder1",
"date": "2022/12/15",
"customer": "cus1",
"currency":"CNY",
"exchangeRate":1,
"subsidiary": "徐工",
"department": "",
"associatedDoc":"assdoc1",
"memo": "",
"saleConNum":"",
"lines": [{
"item": "item1",
"quantity": 2,
"unit": "PCS",
"unitPrice": 1000,
"location":"",
"memo": "",
"fromBin":"",
"serialNumber":""
}]
}
响应参数说明
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
}]
}
备注