POST xuner/bi/synthetical/addPurchaseOrder
添加采购订单
请求信息
URI 参数
无。
Body 参数
synthetical_addPurchaseRequest| 名称 | 描述 | 类型 | 附加信息 |
|---|---|---|---|
| codetypes |
修改类型:(1)新增,(2)修改 |
string |
无。 |
| code |
单据编号 修改时需要传参 |
string |
无。 |
| supplier |
供货商代码 |
string |
Required |
| warehouse |
仓库代码 |
string |
Required |
| typbcode |
发票类型代码 |
string |
无。 |
| typacode |
导出模板类别代码 |
string |
无。 |
| rmk |
备注 |
string |
无。 |
| product |
商品明细 |
Collection of productModel |
无。 |
请求格式
application/json, text/json
样例:
{
"codetypes": "1",
"code": "",
"supplier": "01",
"warehouse": "01",
"typbcode": "",
"typacode": "",
"rmk": "",
"product": [
{
"productlist": [
{
"goodscode": "",
"goodsname": "",
"stdprice": "0",
"ywprice": "0",
"qty2": "1",
"amount2": "0",
"goodsku": [
{
"sku": "01",
"skucount": "1"
}
]
}
],
"shoplist": [
{
"code": "",
"name": ""
}
]
}
]
}
响应信息
资源描述
添加采购订单
gXopResponseOfsynthetical_addPurchase| 名称 | 描述 | 类型 | 附加信息 |
|---|---|---|---|
| data | synthetical_addPurchase |
无。 |
|
| desc |
错误信息 |
string |
无。 |
| result |
响应代码 1 成功 1011 令牌失效 0或其它 请求错误 |
integer |
无。 |
响应格式
application/json, text/json
样例:
{
"data": {
"code": 0,
"Ordercode": ""
},
"desc": "",
"result": 0
}