接口URL:https://api.kingdee.com/weigusoft/wg_cost/loadData?access_token=&authority_info=
Content-Type:application/json
请求方式:post
接口备注:暂无描述
authority_info(控制用户权限字段)参数生成规则:
例:access_token:17464962873ecbcaebacdebe9b82fdce 用户id:10102023
1、access_token+','+用户id ,例:17464962873ecbcaebacdebe9b82fdce,10102023
2、用户id是获取当前用户信息接口(https://api.kingdee.com/weigusoft/basedata/get_current_user_info )返回的id
获取当前用户信息curl
curl ^"https://api.kingdee.com/weigusoft/basedata/get_current_user_info?access_token=17464962873ecbcaebacdebe9b82fdce^" ^
-H ^"Accept: */*^" ^
-H ^"Accept-Language: zh-CN,zh;q=0.9^" ^
-H ^"Connection: keep-alive^" ^
-H ^"Content-Type: application/json;charset=UTF-8^" ^
-H ^"Origin: http://localhost:5173^" ^
-H ^"Referer: http://localhost:5173/^" ^
-H ^"Sec-Fetch-Dest: empty^" ^
-H ^"Sec-Fetch-Mode: cors^" ^
-H ^"Sec-Fetch-Site: cross-site^" ^
-H ^"User-Agent: Mozilla/5.0 (iPhone; CPU iPhone OS 13_2_3 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/13.0.3 Mobile/15E148 Safari/604.1^" ^
-H ^"X-GW-Router-Addr: https://tf-ek.jdy.com^" ^
-H ^"access_token: 17464962873ecbcaebacdebe9b82fdce^" ^
-H ^"accountId: 1675743896569628608^" ^
-H ^"groupName: ns-isv5^" ^
--data-raw ^"^{^}^"

3、拼接后需要用AES加密
authority_info:YiyLl+eZDehXLRo2mpBLziNDxg5w6wjrfZ4AxgROyyyORJYkB7sQbQxjK9gO33E/
AES加密线上生成链接:https://www.toolhelper.cn/SymmetricEncryption/AES
AES加密:秘钥 key=2c17e560c500f55c
偏移量 iv=5e8y6w45ju8w9jq8
请求头参数:
- 所有的接口必须携带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 |
请求体参数:
|
参数名 |
示例值 |
参数类型 |
是否必填 |
参数描述 |
|
entityName |
wg_consume |
String |
否 |
单据标识 |
|
id |
1875335065005766658 |
String |
否 |
单据id |
|
selectProperties |
billno,wg_biztype,wg_reason, wg_totalamount,wg_dept, wg_dept.name,entryentity.wg_account, wg_billdate |
String |
否 |
查询字段,空查所有 |
|
onlyBasic |
false |
Boolean |
否 |
是否只查基础资料字段的名称和编码 |
|
level |
1 |
String |
否 |
基础资料查到哪一次 |
请求示例:
{
"entityName": "wg_consume",
"id": "1875335065005766658",
"selectProperties": "billno,wg_biztype,wg_reason,wg_totalamount,wg_dept,wg_dept.name,entryentity.wg_account,wg_billdate",
"onlyBasic": false,
"level": "1"
}
相应示例:(成功200,失败201)
{
"data": {
"wg_dept_id": "1358650037789263872",
"wg_dept_name": "开发部门",
"entryentity": [
{
"wg_account_id": "1862990033619892224",
"wg_account_number": "SKZH-007",
"wg_account_name": "惹",
"id": "1875335065005767683"
}
],
"wg_biztype": "1",
"wg_totalamount": "34",
"wg_dept_number": "BM00004",
"wg_billdate": "2024-02-01",
"id": "1875335065005766658",
"billno": "JK-20240201-00004",
"wg_reason": "22ew"
},
"errorCode": "success",
"status": true,
"success": true
}