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

alibaba.alsc.sales.leads.query.page (本地生活销售商机分页查询接口)

本地生活销售商机分页查询接口

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
param_leads_search_request TopLeadsSearchRequest 可选 分页请求
  • └ end_date
  • Date
  • 可选
  • 2019-10-01 23:00:00
  • 圈入截至时间
  • └ ext_info
  • String
  • 可选
  • {}
  • 扩展信息
  • └ page_no
  • Number
  • 必须
  • 0
  • 页码数,从0开始
  • └ page_size
  • Number
  • 必须
  • 10
  • 页面大小,1-50
  • └ start_date
  • Date
  • 可选
  • 2019-10-01 00:00:00
  • 圈入开始时间
  • └ territory_id
  • String
  • 可选
  • 201910011412354
  • 圈选规则id

响应参数

名称 类型 示例值 描述
has_next Boolean true 是否还有下一页
result_size Number 20 返回数据量
total_count Number 51000 命中的总数
values LeadsInfo [] 结果列表
  • └ leads_type
  • String
  • POS
  • 业务类型
  • └ address
  • String
  • 民生路1199弄证大五道口
  • 详细地址
  • └ biz_type
  • String
  • SHOP
  • 主体类型
  • └ district_name
  • String
  • 浦东新区
  • 区名称
  • └ leads_biz_principle_type
  • String
  • SHOP_INFO
  • 主体业务类型
  • └ latitude
  • String
  • 31.226948
  • 纬度
  • └ gmt_create
  • String
  • 2019-10-25 09:47:43
  • 圈入时间
  • └ category_name
  • String
  • 美食(update)
  • 一级类目名称
  • └ sub_category_name
  • String
  • 中餐
  • 二级类目名称
  • └ detail_category_name
  • String
  • 川菜(update)
  • 三级类目名称
  • └ leads_id
  • String
  • 2019102521474301000003027100667
  • 商机id
  • └ city_name
  • String
  • 上海市
  • 市名称
  • └ name
  • String
  • 孝1(11)
  • 店名
  • └ biz_id
  • String
  • 2019102300077000000023515730
  • 主体id
  • └ poi_id
  • String
  • L1DYZ006BM0
  • poi id
  • └ province_name
  • String
  • 上海
  • 省名称
  • └ longitude
  • String
  • 121.549728
  • 经度
  • └ district_code
  • String
  • 310115
  • 区code
  • └ city_code
  • String
  • 310100
  • 市code
  • └ province_code
  • String
  • 310000
  • 省code

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AlibabaAlscSalesLeadsQueryPageRequest req = new AlibabaAlscSalesLeadsQueryPageRequest();
AlibabaAlscSalesLeadsQueryPageRequest.TopLeadsSearchRequest obj1 = new AlibabaAlscSalesLeadsQueryPageRequest.TopLeadsSearchRequest();
obj1.setEndDate(StringUtils.parseDateTime("2019-10-01 23:00:00"));
obj1.setExtInfo("{}");
obj1.setPageNo(0L);
obj1.setPageSize(10L);
obj1.setStartDate(StringUtils.parseDateTime("2019-10-01 00:00:00"));
obj1.setTerritoryId("201910011412354");
req.setParamLeadsSearchRequest(obj1);
AlibabaAlscSalesLeadsQueryPageResponse rsp = client.execute(req);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<alibaba_alsc_sales_leads_query_page_response>
    <has_next>true</has_next>
    <result_size>20</result_size>
    <total_count>51000</total_count>
    <values>
        <leads_info>
            <leads_type>POS</leads_type>
            <address>民生路1199弄证大五道口</address>
            <biz_type>SHOP</biz_type>
            <district_name>浦东新区</district_name>
            <leads_biz_principle_type>SHOP_INFO</leads_biz_principle_type>
            <latitude>31.226948</latitude>
            <gmt_create>2019-10-25 09:47:43</gmt_create>
            <category_name>美食(update)</category_name>
            <sub_category_name>中餐</sub_category_name>
            <detail_category_name>川菜(update)</detail_category_name>
            <leads_id>2019102521474301000003027100667</leads_id>
            <city_name>上海市</city_name>
            <name>孝1(11)</name>
            <biz_id>2019102300077000000023515730</biz_id>
            <poi_id>L1DYZ006BM0</poi_id>
            <province_name>上海</province_name>
            <longitude>121.549728</longitude>
            <district_code>310115</district_code>
            <city_code>310100</city_code>
            <province_code>310000</province_code>
        </leads_info>
    </values>
</alibaba_alsc_sales_leads_query_page_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

返回
顶部