文档中心 > API类目 > 天猫服务平台

alibaba.yichao.report.query (查询报案单)

查询报案单

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
query_report_order_request QueryReportOrderRequest 可选 请求参数
  • └ out_order_type
  • Number
  • 必须
  • 3
  • 单据类型
  • └ out_order_id
  • String
  • 必须
  • 250529101214406955
  • 外部订单id
  • └ report_order_id
  • Number
  • 可选
  • 251015200000793007
  • 报案单id
  • └ reporter_id
  • String
  • 必须
  • 2216688837781
  • 报案人

响应参数

名称 类型 示例值 描述
result ElectricResult 返回数据
  • └ display_message
  • String
  • 错误信息
  • 错误信息
  • data
  • ReportOrderQueryResponse
  • 报案单数据
  • └ id
  • String
  • 报案单id
  • 报案单id
  • └ gmt_create
  • Date
  • 1760454476000
  • 创建时间
  • └ gmt_modified
  • Date
  • 1760454476000
  • 修改时间
  • └ out_id
  • String
  • 251014101425872003_1
  • 外单号
  • └ out_order_id
  • String
  • 251014101425872003
  • 外单id
  • └ out_order_type
  • Number
  • 3
  • 外单类型-报案单
  • └ product_code
  • String
  • NO_REPAIR_RED_ENVELOP
  • 产品编码
  • └ report_apply_no
  • String
  • 251014200000791004002
  • 报案申请单号(保司)
  • └ status
  • Number
  • 1
  • 报案中
  • └ report_fail_reason
  • String
  • 不在保
  • 报案失败原因
  • └ reporter_type
  • Number
  • 1
  • 买家
  • └ report_reason
  • String
  • 机器故障
  • 报案申请原因
  • └ insurance_order_id
  • String
  • 251014101425872003
  • 投保单id
  • └ attributes
  • String
  • "{\"proof_images\":\"[\\\"https://img.alicdn.com/imgextra/i4/2217604791530/O1CN01SQ6qkW1NAn0uBinq5_!!2217604791530-0-miaocare.jpg\\\"]\"}"
  • 扩展参数
  • └ success
  • Boolean
  • true
  • 成功
  • └ error_message
  • String
  • 接口异常
  • 异常原因
  • └ error_code
  • String
  • PARAM_ERROR
  • 错误码

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AlibabaYichaoReportQueryRequest req = new AlibabaYichaoReportQueryRequest();
AlibabaYichaoReportQueryRequest.QueryReportOrderRequest obj1 = new AlibabaYichaoReportQueryRequest.QueryReportOrderRequest();
obj1.setOutOrderType(3L);
obj1.setOutOrderId("250529101214406955");
obj1.setReportOrderId(251015200000793007L);
obj1.setReporterId("2216688837781");
req.setQueryReportOrderRequest(obj1);
AlibabaYichaoReportQueryResponse rsp = client.execute(req);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<alibaba_yichao_report_query_response>
    <result>
        <display_message>错误信息</display_message>
        <data>
            <id>报案单id</id>
            <gmt_create>1760454476000</gmt_create>
            <gmt_modified>1760454476000</gmt_modified>
            <out_id>251014101425872003_1</out_id>
            <out_order_id>251014101425872003</out_order_id>
            <out_order_type>3</out_order_type>
            <product_code>NO_REPAIR_RED_ENVELOP</product_code>
            <report_apply_no>251014200000791004002</report_apply_no>
            <status>1</status>
            <report_fail_reason>不在保</report_fail_reason>
            <reporter_type>1</reporter_type>
            <report_reason>机器故障</report_reason>
            <insurance_order_id>251014101425872003</insurance_order_id>
            <attributes>&quot;{\&quot;proof_images\&quot;:\&quot;[\\\&quot;https://img.alicdn.com/imgextra/i4/2217604791530/O1CN01SQ6qkW1NAn0uBinq5_!!2217604791530-0-miaocare.jpg\\\&quot;]\&quot;}&quot;</attributes>
        </data>
        <success>true</success>
        <error_message>接口异常</error_message>
        <error_code>PARAM_ERROR</error_code>
    </result>
</alibaba_yichao_report_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

返回
顶部