菜单

保存

基本信息

  • 用途说明:crm联系人保存
  • 请求方式: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

params参数

参数名称 参数类型 是否必填 参数说明
access_token string true 金蝶云通行证token
authority_info string true 见文档authority_info参数说明

body参数

参数 必选 字段类型 字段说明
customerid_id true String 客户id
contactperson true String 联系人名称
isdefault_linkman false Boolean 首要联系人
isdefault_sender false Boolean 对账单发送人
mobile false String 手机
phone false String 座机
job false String 职务
department false String 所在部门
gender false String 性别,1:男,2:女
birthday false String 生日
qq false String qq
openid false String openid
aliasname false String 昵称
wechat false String 微信
email false String email
salerid_id true String 销售员id
wg_supervisor_id false String 上级主管id
contact_countryid_id false String 国家/地区id
contact_provinceid_id false String
contact_cityid_id false String
contact_districtid_id false String
contact_address false String 地址
wg_hobby false String 个人爱好
wg_remark false String 备注
wg_allocationsentry true Array 协作团队

wg_allocationsentry协作团队参数

参数名称 是否必填 类型 字段说明
wg_collaborate_newtype false String 协作类型
wg_cooperate_staff_id true String 员工id
wg_cooperate_dept_id true String 部门id
wg_cooperate_view false Boolean 查看
wg_cooperate_edit false Boolean 修改
wg_cooperate_del false Boolean 删除
wg_cooperate_allocation false Boolean 协作分配
assign_remark false Boolean 备注
assign_allocuser_id false Boolean 分配人,用户id
assign_alloctime false Boolean 分配时间

请求示例

{
    "entityName": "wg_inv_crm_contact",
    "data": {
        "customerid": {
            "number": "06291222111"
        },
        "contactperson": "0801测试联系人",
        "isdefault_linkman": true,
        "mobile": "15566778894",
        "phone": "060-121212",
        "job": "研发",
        "department": "测试部门",
        "birthday": "2025-6-1",
        "qq": "23232023432",
        "aliasname": "test",
        "gender": "1",
        "wechat": "wx232323",
        "email": "2323@qq.com",
        "salerid_id": "1394084520470297600",
        "wg_supervisor_id": "",
        "contact_countryid_id": "",
        "contact_provinceid_id": "1",
        "contact_cityid_id": "2",
        "contact_districtid_id": "3",
        "contact_address": "测试详细地址",
        "wg_hobby": "测试个人爱好",
        "wg_remark": "测试备注",
        "wg_allocationsentry": [
            {
                "wg_cooperate_staff_id": "1394084520470297600",
                "wg_cooperate_dept_id": "1358532443941896192",
                "wg_cooperate_view": true,
                "wg_cooperate_edit": true,
                "wg_cooperate_del": true,
                "assign_allocuser_id": "10102023",
                "assign_alloctime": "2025-08-01 18:12:13",
                "wg_cooperate_allocation": true
            }
        ]
    }
}

响应示例

{
    "data": {
        "id": "2271996860233172992"
    },
    "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_inv_crm_contact^\^",^\^"data^\^":^{^\^"customerid^\^":^{^\^"number^\^":^\^"06291222111^\^"^},^\^"contactperson^\^":^\^"0801^测^试^联^系^人^\^",^\^"isdefault_linkman^\^":true,^\^"mobile^\^":^\^"15566778894^\^",^\^"phone^\^":^\^"060-121212^\^",^\^"job^\^":^\^"^研^发^\^",^\^"department^\^":^\^"^测^试^部^门^\^",^\^"birthday^\^":^\^"2025-6-1^\^",^\^"qq^\^":^\^"23232023432^\^",^\^"aliasname^\^":^\^"test^\^",^\^"gender^\^":^\^"1^\^",^\^"wechat^\^":^\^"wx232323^\^",^\^"email^\^":^\^"2323^@qq.com^\^",^\^"salerid_id^\^":^\^"1394084520470297600^\^",^\^"wg_supervisor_id^\^":^\^"^\^",^\^"contact_countryid_id^\^":^\^"^\^",^\^"contact_provinceid_id^\^":^\^"1^\^",^\^"contact_cityid_id^\^":^\^"2^\^",^\^"contact_districtid_id^\^":^\^"3^\^",^\^"contact_address^\^":^\^"^测^试^详^细^地^址^\^",^\^"wg_hobby^\^":^\^"^测^试^个^人^爱^好^\^",^\^"wg_remark^\^":^\^"^测^试^备^注^\^",^\^"wg_allocationsentry^\^":^[^{^\^"wg_cooperate_staff_id^\^":^\^"1394084520470297600^\^",^\^"wg_cooperate_dept_id^\^":^\^"1358532443941896192^\^",^\^"wg_cooperate_view^\^":true,^\^"wg_cooperate_edit^\^":true,^\^"wg_cooperate_del^\^":true,^\^"assign_allocuser_id^\^":^\^"10102023^\^",^\^"assign_alloctime^\^":^\^"2025-08-01 18:12:13^\^",^\^"wg_cooperate_allocation^\^":true^}^]^}^}^"

分享文章
最近修改: 2025-08-01