菜单

保存

基本信息

  • 用途说明:还款单保存(单据标识:ar_othercreditbill
  • 请求方式: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 单据标识:ar_othercreditbill
data true Object 其他参数

请求示例:

{
    "entityName": "ar_othercreditbill",
    "data": {
        "billdate": "2025-07-21",
        "duedate": "2025-08-10",
        "attachmentFiles": [],
        "payfromtoentry": [
            {
                "paccttype_name": "的地方是",
                "paccttype_id": "2028533329669692416",
                "amount": "400",
                "taxamount": "10",
                "comment": "应收备注",
                "amountfor": "400",
                "notaxamount": 390,
                "notaxamountfor": 390,
                "taxrate": 3,
                "taxamountfor": "10",
                "id": "1753076230511"
            }
        ],
        "instantpayfromtoentry": [
            {
                "instantsettleaccountid_name": "现金",
                "instantsettleaccountid_id": "1358196050787042304",
                "instantamount": "400",
                "instantpaytypeid_name": "微信支付",
                "instantpaytypeid_id": "3",
                "servicefee": "",
                "instantcomment": "收款备注",
                "instantamountfor": "400",
                "servicefeefor": "",
                "id": "1753076247832"
            }
        ],
        "totalCost": 400,
        "totalCollection": 400,
        "currency_name": "人民币",
        "currency_id": "1358196047473542144",
        "exchangerate": "1",
        "emp_name": "张文",
        "emp_id": "1358532784452275200",
        "dept_name": "CC部门",
        "dept_id": "1358519249148051456",
        "itemclassbiz_name": "大粮仓酒0业",
        "itemclassbiz_id": "1579140949848738816",
        "itemclass_name": "大粮仓酒0业",
        "itemclass_id": "1579140949848738816",
        "currentbalance": "54.2400000000",
        "totalbalanceamountmemo": "54.2400000000",
        "wg_project_name": "威海项目",
        "wg_project_id": "1454411382958075904",
        "settingterm_name": "20天期",
        "settingterm_id": "1712218314043908096",
        "remark": "11",
        "totalservicefee": 0,
        "totalservicefeefor": 0,
        "totalinstantamount": 400,
        "totalinstantamountfor": 400,
        "curtotalinstantamount": 400,
        "curtotalinstantamountfor": 400,
        "totalsettleamount": 400,
        "totalsettleamountfor": 400,
        "totalamount": 400,
        "totalamountfor": 400,
        "totalunsettleamount": 0,
        "totalunsettleamountfor": 0,
        "curtotalsettleamount": 400,
        "curtotalsettleamountfor": 400
    }
}

响应示例

{
    "data": {
        "id": "2263886144896859136"
    },
    "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^\^":^\^"ar_othercreditbill^\^",^\^"data^\^":^{^\^"billdate^\^":^\^"2025-07-21^\^",^\^"duedate^\^":^\^"2025-08-10^\^",^\^"attachmentFiles^\^":^[^],^\^"payfromtoentry^\^":^[^{^\^"paccttype_name^\^":^\^"^的^地^方^是^\^",^\^"paccttype_id^\^":^\^"2028533329669692416^\^",^\^"amount^\^":^\^"400^\^",^\^"taxamount^\^":^\^"10^\^",^\^"comment^\^":^\^"^应^收^备^注^\^",^\^"amountfor^\^":^\^"400^\^",^\^"notaxamount^\^":390,^\^"notaxamountfor^\^":390,^\^"taxrate^\^":3,^\^"taxamountfor^\^":^\^"10^\^",^\^"id^\^":^\^"1753076230511^\^"^}^],^\^"instantpayfromtoentry^\^":^[^{^\^"instantsettleaccountid_name^\^":^\^"^现^金^\^",^\^"instantsettleaccountid_id^\^":^\^"1358196050787042304^\^",^\^"instantamount^\^":^\^"400^\^",^\^"instantpaytypeid_name^\^":^\^"^微^信^支^付^\^",^\^"instantpaytypeid_id^\^":^\^"3^\^",^\^"servicefee^\^":^\^"^\^",^\^"instantcomment^\^":^\^"^收^款^备^注^\^",^\^"instantamountfor^\^":^\^"400^\^",^\^"servicefeefor^\^":^\^"^\^",^\^"id^\^":^\^"1753076247832^\^"^}^],^\^"totalCost^\^":400,^\^"totalCollection^\^":400,^\^"currency_name^\^":^\^"^人^民^币^\^",^\^"currency_id^\^":^\^"1358196047473542144^\^",^\^"exchangerate^\^":^\^"1^\^",^\^"emp_name^\^":^\^"^张^文^\^",^\^"emp_id^\^":^\^"1358532784452275200^\^",^\^"dept_name^\^":^\^"CC^部^门^\^",^\^"dept_id^\^":^\^"1358519249148051456^\^",^\^"itemclassbiz_name^\^":^\^"^大^粮^仓^酒0^业^\^",^\^"itemclassbiz_id^\^":^\^"1579140949848738816^\^",^\^"itemclass_name^\^":^\^"^大^粮^仓^酒0^业^\^",^\^"itemclass_id^\^":^\^"1579140949848738816^\^",^\^"currentbalance^\^":^\^"54.2400000000^\^",^\^"totalbalanceamountmemo^\^":^\^"54.2400000000^\^",^\^"wg_project_name^\^":^\^"^威^海^项^目^\^",^\^"wg_project_id^\^":^\^"1454411382958075904^\^",^\^"settingterm_name^\^":^\^"20^天^期^\^",^\^"settingterm_id^\^":^\^"1712218314043908096^\^",^\^"remark^\^":^\^"11^\^",^\^"totalservicefee^\^":0,^\^"totalservicefeefor^\^":0,^\^"totalinstantamount^\^":400,^\^"totalinstantamountfor^\^":400,^\^"curtotalinstantamount^\^":400,^\^"curtotalinstantamountfor^\^":400,^\^"totalsettleamount^\^":400,^\^"totalsettleamountfor^\^":400,^\^"totalamount^\^":400,^\^"totalamountfor^\^":400,^\^"totalunsettleamount^\^":0,^\^"totalunsettleamountfor^\^":0,^\^"curtotalsettleamount^\^":400,^\^"curtotalsettleamountfor^\^":400^}^}^"

分享文章
最近修改: 2025-07-21