文档中心 > API类目 > 本地生活API

alibaba.alsc.crm.customer.update (更新顾客信息)

更新顾客信息

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
param_customer_update_open_req CustomerUpdateOpenReq 必须 修改顾客参数
  • └ address
  • String
  • 可选
  • 杭州市西湖区XXXXX
  • 地址
  • └ birthday
  • String
  • 可选
  • 2019-01-01
  • 生日
  • └ brand_id
  • String
  • 可选
  • 2019283927423
  • 品牌ID 外部品牌id 2选1
  • └ customer_id
  • String
  • 必须
  • 201928293724
  • 顾客ID
  • └ email
  • String
  • 可选
  • xxx@xxx.com
  • 邮箱
  • └ ext_info
  • String
  • 可选
  • 扩展信息
  • └ gender
  • Number
  • 可选
  • 1
  • 性别
  • └ invoice
  • String
  • 可选
  • 杭州市XXXX
  • 发票抬头
  • └ level_id
  • String
  • 可选
  • 201923728943
  • 等级ID
  • └ mobile
  • String
  • 可选
  • 139XXXXXXXX
  • 移动电话
  • └ name
  • String
  • 可选
  • 张三
  • 姓名
  • └ operator_id
  • String
  • 可选
  • 20192823784
  • 操作人ID
  • └ operator_name
  • String
  • 可选
  • 李四
  • 操作人姓名
  • └ phone
  • String
  • 可选
  • 0571-88889999
  • 固定电话
  • └ remark
  • String
  • 可选
  • 老顾客
  • 备注
  • └ request_id
  • String
  • 可选
  • DHGFUGUFYG234DDF
  • 请求ID,幂等处理
  • └ tag_ids
  • String []
  • 可选
  • ["2019346387"]
  • 人群标签
  • └ out_brand_id
  • String
  • 可选
  • 1234
  • 外部品牌id
  • └ customer_type
  • Number
  • 可选
  • 0
  • 0顾客,1会员

响应参数

名称 类型 示例值 描述
result CommonResult 接口结果
  • └ biz_success
  • Boolean
  • true
  • 成功状态
  • └ result
  • String
  • true
  • 更新是否成功
  • └ result_code
  • String
  • 结果码
  • └ result_desc
  • String
  • 结果描述
  • └ result_view
  • String
  • 错误结果显示

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AlibabaAlscCrmCustomerUpdateRequest req = new AlibabaAlscCrmCustomerUpdateRequest();
AlibabaAlscCrmCustomerUpdateRequest.CustomerUpdateOpenReq obj1 = new AlibabaAlscCrmCustomerUpdateRequest.CustomerUpdateOpenReq();
obj1.setAddress("杭州市西湖区XXXXX");
obj1.setBirthday("2019-01-01");
obj1.setBrandId("2019283927423");
obj1.setCustomerId("201928293724");
obj1.setEmail("xxx@xxx.com");
obj1.setExtInfo("");
obj1.setGender(1L);
obj1.setInvoice("杭州市XXXX");
obj1.setLevelId("201923728943");
obj1.setMobile("139XXXXXXXX");
obj1.setName("张三");
obj1.setOperatorId("20192823784");
obj1.setOperatorName("李四");
obj1.setPhone("0571-88889999");
obj1.setRemark("老顾客");
obj1.setRequestId("DHGFUGUFYG234DDF");
obj1.setTagIds(""2019346387"");
obj1.setOutBrandId("1234");
obj1.setCustomerType(0L);
req.setParamCustomerUpdateOpenReq(obj1);
AlibabaAlscCrmCustomerUpdateResponse rsp = client.execute(req);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<alibaba_alsc_crm_customer_update_response>
    <result>
        <biz_success>true</biz_success>
        <result>true</result>
        <result_code></result_code>
        <result_desc></result_desc>
        <result_view></result_view>
    </result>
</alibaba_alsc_crm_customer_update_response>

异常示例

  • XML示例
  • JSON示例
<error_response>
    <code>50</code>
    <msg>Remote service error</msg>
    <sub_code>isv.invalid-parameter</sub_code>
    <sub_msg>非法参数</sub_msg>
</error_response>

错误码解释

错误码 错误描述 解决方案

API工具

如何获得此API

FAQ

返回
顶部