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

taobao.uscesl.biz.esl.info.get (价签设备信息查询接口)

价签设备信息查询接口

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
esl_bar_code String 必须 2342342 价签条码
store_id Number 必须 342342 门店storeId
biz_brand_key String 必须 34234 商家ID

响应参数

名称 类型 示例值 描述
result Json { "returnCode": 1, "businessCode": null, "success": true, "message": null, "target": { "eslConnectAp": null, "itemTitle": null, "eslScreenHeight": 128, "eslLastCommunicateTime": 1533698354000, "eslStatus": "0", "storeId": 296001, "eslScreenWidth": 296, "eslVendor": "ali", "ifBind": true, "eslSize": null, "eslType": "1", "eslModel": "AESL0290B", "eslOutId": "18:bc:5a:79:ef:0f", "eslBatteryLevel": "100", "eslId": null, "eslBarCode": "18bc5a79ef0f" } } result.sucess表示是否成功,target是设备信息

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
UsceslBizEslInfoGetRequest req = new UsceslBizEslInfoGetRequest();
req.setEslBarCode("2342342");
req.setStoreId(342342L);
req.setBizBrandKey("34234");
UsceslBizEslInfoGetResponse rsp = client.execute(req);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<uscesl_biz_esl_info_get_response>
    <result>{   &quot;returnCode&quot;: 1,   &quot;businessCode&quot;: null,   &quot;success&quot;: true,   &quot;message&quot;: null,   &quot;target&quot;: {     &quot;eslConnectAp&quot;: null,     &quot;itemTitle&quot;: null,     &quot;eslScreenHeight&quot;: 128,     &quot;eslLastCommunicateTime&quot;: 1533698354000,     &quot;eslStatus&quot;: &quot;0&quot;,     &quot;storeId&quot;: 296001,     &quot;eslScreenWidth&quot;: 296,     &quot;eslVendor&quot;: &quot;ali&quot;,     &quot;ifBind&quot;: true,     &quot;eslSize&quot;: null,     &quot;eslType&quot;: &quot;1&quot;,     &quot;eslModel&quot;: &quot;AESL0290B&quot;,     &quot;eslOutId&quot;: &quot;18:bc:5a:79:ef:0f&quot;,     &quot;eslBatteryLevel&quot;: &quot;100&quot;,     &quot;eslId&quot;: null,     &quot;eslBarCode&quot;: &quot;18bc5a79ef0f&quot;   } }</result>
</uscesl_biz_esl_info_get_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

返回
顶部