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

alibaba.alsc.crm.sales.contact.query (本地生活商机客情信息查询接口)

本地生活商机客情联系信息查询接口

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
param TopLeadsCustomerIntimacyRequest 可选 请求
  • └ ext_info
  • String
  • 可选
  • {}
  • 扩展信息
  • └ intimacy_key
  • String []
  • 可选
  • [CONTACT_PERSON,COOPERATE_BD]
  • 客情信息Key
  • └ poi_id
  • String
  • 必须
  • 10263CFDG_H
  • poi id
  • └ territory_code
  • String
  • 必须
  • keruyun_POS_2019
  • 领地code

响应参数

名称 类型 示例值 描述
result_size Number 1 返回的数量
value LeadsCustomerIntimacy 客情信息
  • merchant_contacts
  • MerchantContact []
  • 商户联系信息
  • └ if_kp
  • Boolean
  • true
  • 是否KP
  • └ job_name
  • String
  • 店长
  • 职位
  • └ name
  • String
  • 老王
  • 名称
  • └ tele_list
  • String []
  • 1339999
  • 联系方式
  • sales_contacts
  • SalesContact []
  • 销售小二信息
  • └ business_list
  • String []
  • [点餐, 商品]
  • 业务归属
  • └ name
  • String
  • 小二
  • 名称
  • └ nick_name
  • String
  • 大法
  • 花名
  • └ source
  • String
  • 口碑
  • 信息来源
  • └ tele_list
  • String []
  • 1339989
  • 联系方式
poi_id String 10263CFDG_H poi id

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AlibabaAlscCrmSalesContactQueryRequest req = new AlibabaAlscCrmSalesContactQueryRequest();
AlibabaAlscCrmSalesContactQueryRequest.TopLeadsCustomerIntimacyRequest obj1 = new AlibabaAlscCrmSalesContactQueryRequest.TopLeadsCustomerIntimacyRequest();
obj1.setExtInfo("{}");
obj1.setIntimacyKey("CONTACT_PERSON,COOPERATE_BD");
obj1.setPoiId("10263CFDG_H");
obj1.setTerritoryCode("keruyun_POS_2019");
req.setParam(obj1);
AlibabaAlscCrmSalesContactQueryResponse rsp = client.execute(req);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<alibaba_alsc_crm_sales_contact_query_response>
    <result_size>1</result_size>
    <value>
        <merchant_contacts>
            <merchant_contact>
                <if_kp>true</if_kp>
                <job_name>店长</job_name>
                <name>老王</name>
                <tele_list>
                    <string>1339999</string>
                </tele_list>
            </merchant_contact>
        </merchant_contacts>
        <sales_contacts>
            <sales_contact>
                <business_list>
                    <string>[点餐</string>
                    <string>商品]</string>
                </business_list>
                <name>小二</name>
                <nick_name>大法</nick_name>
                <source>口碑</source>
                <tele_list>
                    <string>1339989</string>
                </tele_list>
            </sales_contact>
        </sales_contacts>
    </value>
    <poi_id>10263CFDG_H</poi_id>
</alibaba_alsc_crm_sales_contact_query_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

返回
顶部