接口URL:https://api.kingdee.com/weigusoft/wg_cost/saveBill?access_token=&authority_info=
Content-Type:application/json
请求方式:post
接口备注:暂无描述
注意:如果是多选基础资料的话,id 替换成fbasedataid_id
请求头参数:
- 所有的接口必须携带header参数
| 参数名称 | 参数示例 | 是否必填 | 参数说明 |
|---|---|---|---|
| Content-Type | application/json | true | 固定传:application/json |
| groupName | ns-v7g6 | true | 分组名称,获取授权信息时返回的groupName |
| accountId | 16xxxxxxxxxxxx | true | 账套ID,获取授权信息时返回的accountId |
| X-GW-Router-Addr | https://tf.jdy.com | true | IDC域名,获取授权信息时返回的domain |
| Appuserid | 10102023 | true | 当前登录用户id |
params参数
| 参数名称 | 参数类型 | 是否必填 | 参数说明 |
|---|---|---|---|
| access_token | string | true | 金蝶云通行证token |
| authority_info | string | true | 见文档authority_info参数说明 |
请求体参数:
|
参数名 |
示例值 |
参数类型 |
是否必填 |
参数描述 |
|
entityName |
wg_loan_bill |
String |
是 |
单据标识 |
|
data |
|
Object |
是 |
单据数据 |
|
data.wg_applicant_id |
1447195255588841472 |
String |
是 |
暂无描述 |
|
data.wg_attachments |
2 |
String |
是 |
暂无描述 |
|
data.wg_dept_id |
1358650037789263872 |
String |
是 |
暂无描述 |
|
data.wg_dept_name |
开发部门 |
String |
是 |
暂无描述 |
|
data.entryentity |
|
Array |
是 |
暂无描述 |
|
data.entryentity.wg_account_id |
1862990033619892224 |
String |
是 |
暂无描述 |
|
data.entryentity.wg_account_number |
SKZH-007 |
String |
是 |
暂无描述 |
|
data.entryentity.wg_account_name |
惹 |
String |
是 |
暂无描述 |
|
data.wg_biztype |
1 |
String |
是 |
暂无描述 |
|
data.wg_totalamount |
34 |
String |
是 |
暂无描述 |
|
data.wg_dept_number |
BM00004 |
String |
是 |
暂无描述 |
|
data.wg_billdate |
2024-02-01 |
String |
是 |
暂无描述 |
|
data.wg_reason |
22ew |
String |
是 |
暂无描述 |
注:1、单选基础资料:保存基础/辅助资料类型时需要在后面拼接_id,传id值,例: "feedbackmethod_id":"1504969507066645504"
也可通过传编码number保存,格式为: "feedbackmethod": {"number":"FKFS04_SYS"}
2、多选基础资料通过id保存方式:
"detailedproblemsopq": [ {
"fbasedataid_id": "1575297875968101376",
"name": "无法使用",
}, {
"fbasedataid_id": "1575298097226025984",
"name": "缺陷",
} ]
3、多选基础资料通过number保存方式:
"detailedproblemsopq": [{
"name": "缺陷",
"number": "CPZLXXWT02_SYS",
"seq": 0
},{
"name": "无法使用",
"number": "CPZLXXWT01_SYS",
"seq": 1
} ]
请求示例:
{
"entityName": "wg_loan_bill",
"data": {
"wg_applicant_id": "1447195255588841472",
"wg_attachments": "2",
"wg_dept_id": "1358650037789263872",
"wg_dept_name": "开发部门",
"entryentity": [
{
"wg_account_id": "1862990033619892224",
"wg_account_number": "SKZH-007",
"wg_account_name": "惹"
}
],
"wg_biztype": "1",
"wg_totalamount": "34",
"wg_dept_number": "BM00004",
"wg_billdate": "2024-02-01",
"wg_reason": "22ew"
}
}
相应示例:(成功200,失败201)
{
"data": {
"id": 1889952296578670592
},
"errorCode": "success",
"status": true,
"success": true
}