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

taobao.uscesl.biz.light.up (价签LED等点亮)

价签LED等点亮

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
esl_bar_code String 必须 112233445566 价签条码
led_color String 必须 2 亮灯颜色,绿:值为2;红:值为4
light_up_time Number 必须 10 亮灯时长,单位:秒,最大长度3600秒
store_id Number 必须 123456 门店ID
biz_brand_key String 必须 123456 商家编号

响应参数

名称 类型 示例值 描述
result Result 接口返回model
  • └ target
  • String
  • true
  • 执行结果true或者false
  • └ return_code
  • Number
  • 0
  • 返回执行码,>=0表示成功
  • └ business_code
  • String
  • BIZ_CODE_NOTMATCH
  • 错误编码
  • └ message
  • String
  • 业务身份错误
  • 错误描述
  • └ is_success
  • String
  • 本次操作是否成功
  • true或者false

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
UsceslBizLightUpRequest req = new UsceslBizLightUpRequest();
req.setEslBarCode("112233445566");
req.setLedColor("2");
req.setLightUpTime(10L);
req.setStoreId(123456L);
req.setBizBrandKey("123456");
UsceslBizLightUpResponse rsp = client.execute(req);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<uscesl_biz_light_up_response>
    <result>
        <target>true</target>
        <return_code>0</return_code>
        <business_code>BIZ_CODE_NOTMATCH</business_code>
        <message>业务身份错误</message>
        <is_success>本次操作是否成功</is_success>
    </result>
</uscesl_biz_light_up_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

返回
顶部