新增一张应收单
POST
/api/oughtreceive/add
适用版本:支持U8V12.0 及更高版本
使用场景:销售应用
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location -g --request POST 'https://api.yonyouup.com/api/oughtreceive/add?from_account&to_account&app_key=&token=&tradeid&biz_id' \
--header 'Content-Type: application/json' \
--data-raw '{
"oughtreceive":{
"cust_vendor_code":"00000006",
"amount":"39000",
"operator":"demo",
"entry":[
{
"cust_vendor_code":"00000006",
"currency_name":"港币",
"currency_rate":"10",
"natamount":"30000",
"amount":"3000"
},
{
"cust_vendor_code":"00000006",
"amount":"9000"
}
]
}
}'
响应示例响应示例
{
"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