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

alibaba.yichao.insurance.order.query (投保单查询)

投保单查询

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
insurance_order_query_request InsuranceOrderQueryRequest 可选 请求参数
  • └ product_code
  • String
  • 可选
  • WORKER_ACCIDENT_INSURANCE
  • 保险产品编码
  • └ out_order_type
  • Number
  • 可选
  • 1
  • 外部单据类型,1服务单,2工单
  • └ out_order_id
  • String
  • 可选
  • 1322
  • 唯一键
  • └ insurance_order_id
  • Number
  • 必须
  • 12344
  • 保单号
  • └ applicant_id
  • Number
  • 可选
  • 12455
  • 投保人id
  • └ end_gmt_create
  • Date
  • 可选
  • 2024-05-10 14:58:06
  • 创建结束时间
  • └ start_gmt_create
  • Date
  • 可选
  • 2024-05-10 14:58:06
  • 创建开始时间
  • └ status
  • String
  • 可选
  • 0
  • 保单状态,0创建,1投保成功,2投保失败,3投保中,101退保成功,102退保失败,103退保中

响应参数

名称 类型 示例值 描述
result ElectricResult 返回
  • └ display_message
  • String
  • 错误信息
  • displayMessage
  • data
  • InsuranceOrderDTO
  • 投保单
  • └ insurant_name
  • String
  • XXX
  • 被保人
  • └ gmt_modified
  • Date
  • 1715069642000
  • 修改时间
  • └ insure_fail_reason
  • String
  • 投保失败原因
  • insureFailReason
  • └ service_code
  • String
  • HANKAIJIECESHIANZHUANGFUWU493A
  • serviceCode
  • └ biz_code
  • String
  • tm_appliance_install_licensing
  • bizCode
  • └ insurant_id
  • Number
  • 213123214
  • 被保人id
  • └ service_unit_price
  • Number
  • 1
  • 服务费单价(分)
  • └ endorse_application_no
  • String
  • 2134214123
  • 批改单申请号
  • └ service_total_price
  • Number
  • 1
  • 服务费总价(分)
  • └ total_insurance_amount
  • Number
  • 1200000
  • 总保额(分)
  • └ gmt_auction_trade_success
  • Date
  • 1715216400000
  • 实物确认收货时间
  • └ out_order_type
  • Number
  • 2
  • 外部单据类型,1服务单,2工单
  • └ out_id
  • String
  • 908662004_2_WORKER_ACCIDENT_INSURANCE
  • outId
  • └ reverse_fail_reason
  • String
  • 退保失败原因
  • 退保失败原因
  • └ id
  • Number
  • 240507103300272000
  • id
  • └ insurance_application_no
  • String
  • 保单号
  • 保单号
  • └ gmt_expiry
  • Date
  • 1715065286000
  • 失效时间
  • └ insurance_unit_price
  • Number
  • 3
  • 投保费(分)
  • └ insurance_total_price
  • Number
  • 3
  • 投保费总价(分)
  • └ gmt_create
  • Date
  • 1715065287000
  • 创建时间
  • └ total_insurance_shares
  • Number
  • 1
  • 保险份数
  • └ endorse_fail_reason
  • String
  • 批改失败原因
  • 批改失败原因
  • └ insurance_company_name
  • String
  • 保险公司名称
  • 保险公司名称
  • └ remain_insurance_amount
  • Number
  • 1000
  • 剩余保额(分)
  • └ remain_insurance_shares
  • Number
  • 1
  • 剩余保险份数
  • └ product_code
  • String
  • WORKER_ACCIDENT_INSURANCE
  • 保险产品编码
  • └ out_order_id
  • String
  • 908662004
  • 工单或者服务单号
  • └ gmt_effect
  • Date
  • 1715216400000
  • 保单生效时间
  • └ attributes
  • String
  • {"workcardActionTime":"1715069640000","workcardCancelTime":"1715069640000","workcardAction":"cancel"}
  • 扩展信息
  • └ insurant_type
  • Number
  • 3
  • 被保人类型
  • └ status
  • Number
  • 103
  • 保单状态,0创建,1投保成功,2投保失败,3投保中,101退保成功,102退保失败,103退保中
  • └ insurant_identity_id
  • String
  • xxxxxxxxxx
  • 被保人身份证号
  • └ applicant_id
  • Number
  • 123213123
  • 投保人id
  • └ success
  • Boolean
  • true
  • success
  • └ error_message
  • String
  • errorMessage
  • errorMessage
  • └ error_code
  • String
  • error_code
  • error_code

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AlibabaYichaoInsuranceOrderQueryRequest req = new AlibabaYichaoInsuranceOrderQueryRequest();
AlibabaYichaoInsuranceOrderQueryRequest.InsuranceOrderQueryRequest obj1 = new AlibabaYichaoInsuranceOrderQueryRequest.InsuranceOrderQueryRequest();
obj1.setProductCode("WORKER_ACCIDENT_INSURANCE");
obj1.setOutOrderType(1L);
obj1.setOutOrderId("1322");
obj1.setInsuranceOrderId(12344L);
obj1.setApplicantId(12455L);
obj1.setEndGmtCreate(StringUtils.parseDateTime("2024-05-10 14:58:06"));
obj1.setStartGmtCreate(StringUtils.parseDateTime("2024-05-10 14:58:06"));
obj1.setStatus("0");
req.setInsuranceOrderQueryRequest(obj1);
AlibabaYichaoInsuranceOrderQueryResponse rsp = client.execute(req);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<alibaba_yichao_insurance_order_query_response>
    <result>
        <display_message>错误信息</display_message>
        <data>
            <insurant_name>XXX</insurant_name>
            <gmt_modified>1715069642000</gmt_modified>
            <insure_fail_reason>投保失败原因</insure_fail_reason>
            <service_code>HANKAIJIECESHIANZHUANGFUWU493A</service_code>
            <biz_code>tm_appliance_install_licensing</biz_code>
            <insurant_id>213123214</insurant_id>
            <service_unit_price>1</service_unit_price>
            <endorse_application_no>2134214123</endorse_application_no>
            <service_total_price>1</service_total_price>
            <total_insurance_amount>1200000</total_insurance_amount>
            <gmt_auction_trade_success>1715216400000</gmt_auction_trade_success>
            <out_order_type>2</out_order_type>
            <out_id>908662004_2_WORKER_ACCIDENT_INSURANCE</out_id>
            <reverse_fail_reason>退保失败原因</reverse_fail_reason>
            <id>240507103300272000</id>
            <insurance_application_no>保单号</insurance_application_no>
            <gmt_expiry>1715065286000</gmt_expiry>
            <insurance_unit_price>3</insurance_unit_price>
            <insurance_total_price>3</insurance_total_price>
            <gmt_create>1715065287000</gmt_create>
            <total_insurance_shares>1</total_insurance_shares>
            <endorse_fail_reason>批改失败原因</endorse_fail_reason>
            <insurance_company_name>保险公司名称</insurance_company_name>
            <remain_insurance_amount>1000</remain_insurance_amount>
            <remain_insurance_shares>1</remain_insurance_shares>
            <product_code>WORKER_ACCIDENT_INSURANCE</product_code>
            <out_order_id>908662004</out_order_id>
            <gmt_effect>1715216400000</gmt_effect>
            <attributes>{&quot;workcardActionTime&quot;:&quot;1715069640000&quot;,&quot;workcardCancelTime&quot;:&quot;1715069640000&quot;,&quot;workcardAction&quot;:&quot;cancel&quot;}</attributes>
            <insurant_type>3</insurant_type>
            <status>103</status>
            <insurant_identity_id>xxxxxxxxxx</insurant_identity_id>
            <applicant_id>123213123</applicant_id>
        </data>
        <success>true</success>
        <error_message>errorMessage</error_message>
        <error_code>error_code</error_code>
    </result>
</alibaba_yichao_insurance_order_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

返回
顶部