文档中心 > API类目 > 业务平台新零售

taobao.uscesl.biz.ap.search (AP列表查询)

查询当前门店下登记的AP列表

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
limit Number 可选 1 每页显示数
is_activate Boolean 可选 true 是否激活
mac String 可选 112233445566 价签条码
current_page Number 可选 1 页码
store_id Number 必须 1234 门店ID
biz_brand_key String 必须 12345 商家编码

响应参数

名称 类型 示例值 描述
result Result 成功与否看result.success,返回true或者false
  • target_list
  • Target []
  • 返回对象list
  • └ mac
  • String
  • 112233445566
  • AP的mac地址
  • └ status
  • Boolean
  • ture
  • 是否在线
  • └ is_activate
  • Boolean
  • ture
  • 是否激活
  • └ model
  • String
  • ap-121
  • 型号
  • └ return_code
  • String
  • 1
  • 调用返回编码
  • └ business_code
  • String
  • AP_MAC_NOT_EXIST
  • 错误编码
  • └ success
  • Boolean
  • true
  • 本次调用是否成功
  • └ message
  • String
  • AP-MAC不存在
  • 错误信息
  • └ current_page
  • Number
  • 1
  • 当前页码
  • └ total_count
  • Number
  • 100
  • 总数
  • └ total_pages
  • Number
  • 5
  • 总页数
  • └ limit
  • Number
  • 20
  • 每页显示数

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
UsceslBizApSearchRequest req = new UsceslBizApSearchRequest();
req.setLimit(1L);
req.setIsActivate(true);
req.setMac("112233445566");
req.setCurrentPage(1L);
req.setStoreId(1234L);
req.setBizBrandKey("12345");
UsceslBizApSearchResponse rsp = client.execute(req);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<uscesl_biz_ap_search_response>
    <result>
        <target_list>
            <target>
                <mac>112233445566</mac>
                <status>ture</status>
                <is_activate>ture</is_activate>
                <model>ap-121</model>
            </target>
        </target_list>
        <return_code>1</return_code>
        <business_code>AP_MAC_NOT_EXIST</business_code>
        <success>true</success>
        <message>AP-MAC不存在</message>
        <current_page>1</current_page>
        <total_count>100</total_count>
        <total_pages>5</total_pages>
        <limit>20</limit>
    </result>
</uscesl_biz_ap_search_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

返回
顶部