菜单

客户保存

基本信息

  • 用途说明:客户保存
  • 请求方式:POST
  • 请求地址:https://api.kingdee.com/weigusoft/wg_crm/wg_customerAddApi?access_token=

请求参数

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

body参数

参数名称 必选 类型 说明
flag true Boolean 默认-true
entity true String 单据标识-wg_bd_customer_inh
id true String 新增时传空,编辑时必传
cusno true String 客户编码
cusname true String 客户名称
cusphoneno false String 客户手机
cusaddress false String 客户地址
lat false String 经度
lng false String 纬度
salerid false String 销售员id
saledeptid false String 销售部门id
cusprentid false String  
istrade false Boolean 是否是交易客户,默认false
custclassid false String 客户分类id
custttype false String  
protectstart false String 保护开始日期
protectend false String 保护结束日期
lastreceivemdates false String  
wgServiceExpiration false String 服务到期时间
recentrelatedates false String  
parentcusid false String 商机客户id
remark false String 备注
labs false String 标签
lastContactDate false String 最近联系日期
wgProtectStart false String 保护开始日期
wgProtectEnd false String 保护结束日期
nextGjTime false String 下次跟进日期
wgParentCustomer false String 上级客户
masterrelater false String 主联系人
wg_contact_numberrelate false String 主联系人手机

请求示例

{
    "flag": true,
    "entity": "wg_bd_customer_inh",//单据标识
    "id": "",//客户新增时id传空,编辑时需要传id
    "cusno": "CRMKH-20250211-0001",//客户编码
    "cusname": "测试客户0211",//客户名称
    "cusphoneno": "",//客户手机
    "cusaddress": "",//客户地址
    "lat": "",//经度
    "lng": "",//纬度
    "salerid": "1447195255588841472",//销售员id
    "saledeptid": "1358650037789263872",//销售部门id
    "cusprentid": "",
    "istrade": false,//是否交易客户
    "custclassid": "2086928943075687424",//客户分类id
    "custttype": "",
    "protectstart": "2025-02-11 16:11:04",//保护开始日期
    "protectend": "",//保护结束日期
    "lastreceivemdates": "",
    "wgServiceExpiration": "",//服务到期时间
    "recentrelatedates": "",
    "parentcusid": "2096348838817230850",//上级客户id
    "remark": "测试备注",//备注
    "labs": [//客户标签
        {
            "id": "1",
            "name": "新品",
            "number": "BQNZ0001",
            "selected": true
        }
    ],
    "lastContactDate": "",//最近联系日期
    "wgProtectStart": "2025-02-11 16:11:04",//保护开始日期
    "wgProtectEnd": "",//保护结束日期
    "nextGjTime": "",//下次跟进日期
    "wgParentCustomer": "1202客户3",//上级客户
    "masterrelater": "主联系人1",//主联系人
    "wg_contact_numberrelate": "15566778891",//主联系人手机
    "customfield": []//自定义字段
}

响应示例

{
    "data": "操作成功",
    "errorCode": "success",
    "status": true,
    "success": true
}

分享文章
最近修改: 2025-02-11