文档中心 > API类目 > 鸟潮物流API

alibaba.tc.logistics.dms.cooler.box.query (同城履约物流_配送开放_保温箱查询)

同城履约物流_配送开放_保温箱查询

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
box_no String 必须 3020TS029900001FK4 箱号

响应参数

名称 类型 示例值 描述
result LogisticsResult 返回结果
  • └ error_code
  • Number
  • 200
  • 返回码
  • └ error_message
  • String
  • 请求成功
  • 返回信息
  • └ success
  • Boolean
  • true
  • 是否成功
  • └ trace_id
  • String
  • 90d3516c4c3567d04767958840e9e16f
  • 调用链唯一请求标识
  • data
  • CoolerBox
  • 保温箱
  • └ box_no
  • String
  • 3020TS029900001FK4
  • 保温箱号
  • └ mac_code
  • String
  • 12:12:34:45
  • 温度计硬件编号
  • └ normal
  • Boolean
  • true
  • 是否正常
  • └ temperature
  • BigDecimal
  • -18
  • 温度
  • └ temperature_updated_time
  • String
  • 2021-10-01 10:00:00
  • 温度更新时间

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AlibabaTcLogisticsDmsCoolerBoxQueryRequest req = new AlibabaTcLogisticsDmsCoolerBoxQueryRequest();
req.setBoxNo("3020TS029900001FK4");
AlibabaTcLogisticsDmsCoolerBoxQueryResponse rsp = client.execute(req);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<alibaba_tc_logistics_dms_cooler_box_query_response>
    <result>
        <error_code>200</error_code>
        <error_message>请求成功</error_message>
        <success>true</success>
        <trace_id>90d3516c4c3567d04767958840e9e16f</trace_id>
        <data>
            <box_no>3020TS029900001FK4</box_no>
            <mac_code>12:12:34:45</mac_code>
            <normal>true</normal>
            <temperature>-18</temperature>
            <temperature_updated_time>2021-10-01 10:00:00</temperature_updated_time>
        </data>
    </result>
</alibaba_tc_logistics_dms_cooler_box_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

返回
顶部