文档中心 > API类目 > 阿里健康新零售

alibaba.health.nr.logistics.query (阿里健康新零售物流详情接口)

对阿里健康o2o对接的商户提供查询物流单详情的能力

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
order_id Number 必须 222 订单id

响应参数

名称 类型 示例值 描述
response_result ResponseResult 返回结果
  • result
  • LogisticsDetail
  • 返回结果
  • └ order_id
  • Number
  • 111
  • 订单id
  • └ logistics_status
  • Number
  • 0
  • 物流状态
  • └ logistics_name
  • String
  • 蜂鸟
  • 物流商
  • └ send_time
  • Date
  • 1536200008202
  • 配送单下单时间
  • └ confirm_time
  • Date
  • 1536200008202
  • 配送单确认时间
  • └ cancel_time
  • Date
  • 1536200008202
  • 配送单取消时间
  • └ fetch_time
  • Date
  • 1536200008202
  • 骑手取货时间
  • └ complete_time
  • Date
  • 1536200008202
  • 配送完成时间
  • └ dispatcher_name
  • String
  • 张三
  • 骑手姓名
  • └ dispatcher_mobile
  • String
  • 13511111111
  • 骑手电话
  • └ error_code
  • String
  • 错误码
  • └ error_msg
  • String
  • 错误描述
  • └ success
  • Boolean
  • true
  • 是否成功(true 成功,false 失败)

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AlibabaHealthNrLogisticsQueryRequest req = new AlibabaHealthNrLogisticsQueryRequest();
req.setOrderId(222L);
AlibabaHealthNrLogisticsQueryResponse rsp = client.execute(req, sessionKey);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<alibaba_health_nr_logistics_query_response>
    <response_result>
        <result>
            <order_id>111</order_id>
            <logistics_status>0</logistics_status>
            <logistics_name>蜂鸟</logistics_name>
            <send_time>1536200008202</send_time>
            <confirm_time>1536200008202</confirm_time>
            <cancel_time>1536200008202</cancel_time>
            <fetch_time>1536200008202</fetch_time>
            <complete_time>1536200008202</complete_time>
            <dispatcher_name>张三</dispatcher_name>
            <dispatcher_mobile>13511111111</dispatcher_mobile>
        </result>
        <error_code></error_code>
        <error_msg></error_msg>
        <success>true</success>
    </response_result>
</alibaba_health_nr_logistics_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

返回
顶部