新增一张请购单
POST
/api/purchaserequisition/add
适用版本:支持U8V12.0 及更高版本
使用场景:订购应用
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location -g --request POST 'https://api.yonyouup.com/api/purchaserequisition/add?from_account&to_account&app_key=&token=&tradeid&biz_id' \
--header 'Content-Type: application/json' \
--data-raw '{
"purchaserequisition":{
"date":"2015-1-11",
"entry":[
{
"vendorcode":"03003",
"inventorycode":"01019002082",
"quantity":"100",
"requiredate":"2015-12-12",
"arrivedate":"2015-12-12",
"deptcodeexec":"0401",
"personcodeexec":"00044",
"ivouchrowno":"1"
},
{
"vendorcode":"03003",
"inventorycode":"01019002082",
"quantity":"20",
"taxrate":"17",
"requiredate":"2015-12-2300:00:00",
"arrivedate":"2015-12-2300:00:00",
"deptcodeexec":"0401",
"personcodeexec":"00044",
"ivouchrowno":"2"
}
]
}
}'
响应示例响应示例
{
"errcode": "string",
"errmsg": "string",
"id": "string",
"tradeid": "string"
}
请求参数
Query 参数
from_account
调用方id
to_account
提供方id
app_key
应用编码
token
必需
tradeid
必需
ds_sequence
可选
biz_id
必需
sync
可选
Body 参数application/json
返回响应
修改于 2021-11-15 13:06:27