基本信息
- 用途说明:费用付款申请单保存(单据标识:wg_payapply)
- 请求方式:POST
- 请求地址:https://api.kingdee.com/weigusoft/wg_cost/saveBill?access_token=&authority_info=
headers参数
- 所有的接口必须携带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参数说明 |
body参数
| 参数名称 | 必选 | 类型 | 说明 |
|---|---|---|---|
| entityName | true | String | 单据标识:wg_payapply |
| data | true | Object | 其他参数 |
请求示例:
{
"entityName": "wg_payapply",
"ignore_warn": false,
"data": {
"billdate": "2025-07-21",
"wg_utility_reason": "0721事由",
"deptid_id": "1358532443941896192",
"wg_projectno_id": "2253831876974313472",
"empid_id": "1394084520470297600",
"wg_receive_type": "1",
"supplierid_id": "1683412615411359744",
"remark": "测试备注",
"material_entity": [
{
"wg_consumeid_id": "2263810797044090880",
"wg_paytype_id": "1",
"wg_paytype_name": "运费A-A",
"allamount": "8.8900",
"wg_taxexcluded": "8.6300",
"wg_mremark": "0721费用事由",
"wg_attach_size": "1",
"wg_invoice_size": "1",
"wg_taxrate": "3.0127",
"allamountfor": "8.8900",
"wg_offsetloan_amount": 0,
"wg_unoffsetloan_amount": "8.8900"
}
],
"wg_offset_loan": [],
"currencyid_id": "1358196047473542144",
"exchangerate": "1",
"totalamount": 8.89
}
}
响应示例
{
"data": {
"id": "2230413444614467584"
},
"errorCode": "success",
"status": true,
"success": true
}
curl:
curl ^"https://api.kingdee.com/weigusoft/wg_cost/saveBill?access_token=1751589696b6fadec8ca66f4bff7eece^&authority_info=80YVhAfnQaOYK7vgQL1NZOCzmT9slfIZW8j01JnRwGPlJhpCXkVtaJW70RN/XQPn^" ^
-H ^"Accept: */*^" ^
-H ^"Accept-Language: zh-CN,zh;q=0.9^" ^
-H ^"Appuserid: 10102023^" ^
-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: 1751589696b6fadec8ca66f4bff7eece^" ^
-H ^"accountId: 1675743896569628608^" ^
-H ^"groupName: ns-isv5^" ^
--data-raw ^"^{^\^"entityName^\^":^\^"wg_payapply^\^",^\^"ignore_warn^\^":false,^\^"data^\^":^{^\^"billdate^\^":^\^"2025-07-21^\^",^\^"wg_utility_reason^\^":^\^"0721^事^由^\^",^\^"deptid_id^\^":^\^"1358532443941896192^\^",^\^"wg_projectno_id^\^":^\^"2253831876974313472^\^",^\^"empid_id^\^":^\^"1394084520470297600^\^",^\^"wg_receive_type^\^":^\^"1^\^",^\^"supplierid_id^\^":^\^"1683412615411359744^\^",^\^"remark^\^":^\^"^测^试^备^注^\^",^\^"material_entity^\^":^[^{^\^"wg_consumeid_id^\^":^\^"2263810797044090880^\^",^\^"wg_paytype_id^\^":^\^"1^\^",^\^"wg_paytype_name^\^":^\^"^运^费A-A^\^",^\^"allamount^\^":^\^"8.8900^\^",^\^"wg_taxexcluded^\^":^\^"8.6300^\^",^\^"wg_mremark^\^":^\^"0721^费^用^事^由^\^",^\^"wg_attach_size^\^":^\^"1^\^",^\^"wg_invoice_size^\^":^\^"1^\^",^\^"wg_taxrate^\^":^\^"3.0127^\^",^\^"allamountfor^\^":^\^"8.8900^\^",^\^"wg_offsetloan_amount^\^":0,^\^"wg_unoffsetloan_amount^\^":^\^"8.8900^\^"^}^],^\^"wg_offset_loan^\^":^[^],^\^"currencyid_id^\^":^\^"1358196047473542144^\^",^\^"exchangerate^\^":^\^"1^\^",^\^"totalamount^\^":8.89^}^}^"