文档中心 > API类目 > 天猫好房用户API

tmall.alihouse.customer.tripartite.clue.behavior.record (三方留资服务接口)

三方留资服务接口

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
customer_behavior_clue_dto CustomerBehaviorClueDTO 必须 入参对象
  • └ case_key
  • String
  • 必须
  • CK12344677
  • 留资方案id
  • └ biz_phone
  • String
  • 必须
  • 12345678902
  • 留资电话
  • └ project_store_id
  • String
  • 可选
  • 1dsdfdsff
  • 外部店铺id
  • └ outer_id
  • String
  • 可选
  • 123344
  • 外部楼盘/小区id
  • └ outer_house_id
  • String
  • 可选
  • 123455
  • 外部二租房源id
  • └ outer_consultant_id
  • String
  • 可选
  • 13456
  • 外部经纪人id
  • └ source
  • Number
  • 必须
  • 6
  • 端口来源 1-天猫好房 6-品牌自研小程序
  • └ city_code
  • String
  • 可选
  • 310000
  • 城市code
  • └ district_code
  • String
  • 可选
  • 310003
  • 区域code
  • └ ext
  • String
  • 可选
  • {"bizId":"12245"}
  • 扩展信息(json字符串)
  • └ phone_type
  • String
  • 可选
  • 1
  • 手机类型 0-其他 1-IOS 2-安卓
  • └ phone_version
  • String
  • 可选
  • 10.4.5
  • 手机版本号
  • └ page_url
  • String
  • 可选
  • http://www.taobao.com
  • 页面url
  • └ ua
  • String
  • 可选
  • sdfsd
  • userAgent
  • └ ah_url_spm_id
  • String
  • 可选
  • sdfs
  • 留资所在页面的url_spmid(上一页spmid)
  • └ ah_pre_spm_id
  • String
  • 可选
  • sdfs
  • 留资所在页面的pre_spmid(上上一页spmid)
  • └ ah_spm_id
  • String
  • 可选
  • sdfs
  • 留资所在当前页面的spmid
  • └ ah_src
  • String
  • 可选
  • sdfsf
  • 来源渠道一级编码
  • └ ah_mdm
  • String
  • 可选
  • sdfdss
  • 来源渠道二级编码
  • └ ah_id_spm_id
  • String
  • 可选
  • sdsfdss
  • URL中透传的,投放落地页的spmid
  • └ ah_act_id
  • String
  • 可选
  • sdfds
  • 投放计划关联Id

响应参数

名称 类型 示例值 描述
result Result 接口返回的model
  • └ msg
  • String
  • 成功
  • 返回信息
  • └ code
  • String
  • success
  • 返回码
  • └ data
  • Boolean
  • true
  • 返回业务数据
  • └ success
  • Boolean
  • true
  • 调用结果

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
TmallAlihouseCustomerTripartiteClueBehaviorRecordRequest req = new TmallAlihouseCustomerTripartiteClueBehaviorRecordRequest();
TmallAlihouseCustomerTripartiteClueBehaviorRecordRequest.CustomerBehaviorClueDTO obj1 = new TmallAlihouseCustomerTripartiteClueBehaviorRecordRequest.CustomerBehaviorClueDTO();
obj1.setCaseKey("CK12344677");
obj1.setBizPhone("12345678902");
obj1.setProjectStoreId("1dsdfdsff");
obj1.setOuterId("123344");
obj1.setOuterHouseId("123455");
obj1.setOuterConsultantId("13456");
obj1.setSource(6L);
obj1.setCityCode("310000");
obj1.setDistrictCode("310003");
obj1.setExt("{\"bizId\":\"12245\"}");
obj1.setPhoneType("1");
obj1.setPhoneVersion("10.4.5");
obj1.setPageUrl("http://www.taobao.com");
obj1.setUa("sdfsd");
obj1.setAhUrlSpmId("sdfs");
obj1.setAhPreSpmId("sdfs");
obj1.setAhSpmId("sdfs");
obj1.setAhSrc("sdfsf");
obj1.setAhMdm("sdfdss");
obj1.setAhIdSpmId("sdsfdss");
obj1.setAhActId("sdfds");
req.setCustomerBehaviorClueDto(obj1);
TmallAlihouseCustomerTripartiteClueBehaviorRecordResponse rsp = client.execute(req, sessionKey);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
1
2
3
4
5
6
7
8
<tmall_alihouse_customer_tripartite_clue_behavior_record_response>
    <result>
        <msg>成功</msg>
        <code>success</code>
        <data>true</data>
        <success>true</success>
    </result>
</tmall_alihouse_customer_tripartite_clue_behavior_record_response>

异常示例

  • XML示例
  • JSON示例
1
2
3
4
5
6
<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

返回
顶部