alipay.baoxian.logistics.query (保险风控物流查询接口)

保险风控物流查询接口

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
mail_no String 可选 12887777412 物流单号
cp_name String 可选 顺丰快递 物流公司名称
cp_code String 可选 12321 物流公司代码

响应参数

名称 类型 示例值 描述
result InsSceneQueryResult {"biz_success":"true"} 返回结果
  • └ biz_error_code
  • String
  • "SYSTEM_ERROR"
  • 错误码
  • └ biz_error_msg
  • String
  • "系统异常"
  • 错误详情
  • └ biz_success
  • Boolean
  • true
  • 接口调用结果
  • logistic_trace_detail_list
  • LogisticTraceDetailVO []
  • []
  • 返回值模型
  • └ tp_code
  • String
  • tpCode
  • └ tp_name
  • String
  • tpName
  • └ time
  • Date
  • time
  • └ desc
  • String
  • desc
  • └ city
  • String
  • city
  • └ city_code
  • String
  • cityCode
  • └ district
  • String
  • district
  • └ gmt_create
  • String
  • gmtCreate
  • └ standerd_desc
  • String
  • standerdDesc
  • └ action
  • String
  • action
  • └ section
  • String
  • section

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AlipayBaoxianLogisticsQueryRequest req = new AlipayBaoxianLogisticsQueryRequest();
req.setMailNo("12887777412");
req.setCpName("顺丰快递");
req.setCpCode("12321");
AlipayBaoxianLogisticsQueryResponse rsp = client.execute(req);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<alipay_baoxian_logistics_query_response>
    <result>
        <biz_error_code>&quot;SYSTEM_ERROR&quot;</biz_error_code>
        <biz_error_msg>&quot;系统异常&quot;</biz_error_msg>
        <biz_success>true</biz_success>
        <logistic_trace_detail_list>
            <logistic_trace_detail_v_o>
                <tp_code></tp_code>
                <tp_name></tp_name>
                <time></time>
                <desc></desc>
                <city></city>
                <city_code></city_code>
                <district></district>
                <gmt_create></gmt_create>
                <standerd_desc></standerd_desc>
                <action></action>
                <section></section>
            </logistic_trace_detail_v_o>
        </logistic_trace_detail_list>
    </result>
</alipay_baoxian_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

返回
顶部