基本信息
- 用途说明:费用明细保存(单据标识:wg_consume)
- 请求方式: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_consume |
| data | true | Object | 其他参数 |
请求示例:
{
"entityName": "wg_consume",
"data": {
"wg_consumetype_id": "1",
"wg_amount": 8.89,
"wg_tax": 0.26,
"wg_remark": "0721费用事由",
"wg_entryentity": [
{
"wg_picture_name": "发票高德3.png",//发票名称
"wg_invoiceid_id": "2147144437422102528",
"wg_invoicetype": "3",//发票类型
"wg_invoicedate": "2024-02-23",//发票如期
"wg_totalamount": "8.89",//金额含税
"wg_alltax": "0.26",//税额
"wg_buyername": "南京融冠网络科技有限公司",//发票抬头
"wg_checkstatus": "B",//查验状态
"wg_salername": "上海赛可出行科技服务有限公司"
}
],
"wg_invoice_size": 1,
"wg_attach_size": 1,
"wg_currency_id": "1358196047473542144"
}
}
响应示例
{
"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_consume^\^",^\^"data^\^":^{^\^"wg_consumetype_id^\^":^\^"1^\^",^\^"wg_amount^\^":8.89,^\^"wg_tax^\^":0.26,^\^"wg_remark^\^":^\^"0721^费^用^事^由^\^",^\^"wg_entryentity^\^":^[^{^\^"wg_picture_name^\^":^\^"^发^票^高^德3.png^\^",^\^"wg_invoiceid_id^\^":^\^"2147144437422102528^\^",^\^"wg_invoicetype^\^":^\^"3^\^",^\^"wg_invoicedate^\^":^\^"2024-02-23^\^",^\^"wg_totalamount^\^":^\^"8.89^\^",^\^"wg_alltax^\^":^\^"0.26^\^",^\^"wg_buyername^\^":^\^"^南^京^融^冠^网^络^科^技^有^限^公^司^\^",^\^"wg_checkstatus^\^":^\^"B^\^",^\^"wg_salername^\^":^\^"^上^海^赛^可^出^行^科^技^服^务^有^限^公^司^\^"^}^],^\^"wg_invoice_size^\^":1,^\^"wg_attach_size^\^":1,^\^"wg_currency_id^\^":^\^"1358196047473542144^\^"^}^}^"