新增一张费用报销单
POST
/api/expensesclaim/add
适用版本:支持U8V12.0 及更高版本
使用场景:移动报销、报销应用
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location -g --request POST 'https://api.yonyouup.com/api/expensesclaim/add?from_account&to_account&app_key=&token=&tradeid&biz_id' \
--header 'Content-Type: application/json' \
--data-raw '{
"expensesclaim":{
"expensemoney":"1500",
"expenserid":"00001",
"operationtypecode":"3002",
"used":"报销用途说明...",
"user_id":"demo",
"deptid":"0302",
"entry":[
{
"costitemid":"04",
"deptid":"0302",
"expensemoney":"1500",
"expenserid":"00001",
"rowno":"1"
}
]
}
}'
响应示例响应示例
{
"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