文档中心 > API类目 > ICBU交易金融

alibaba.finance.insurance.icbu.insure.order.callback (投保订单数据回流接口)

投保订单数据回流接口

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
insured_order_reflow_request InsuredOrderReflowRequest 可选 回流接口
  • └ insured_alipay_account
  • String
  • 可选
  • 12344
  • 被保人支付宝账号
  • └ insure_time
  • Date
  • 可选
  • 2022-10-11 00:00:00
  • 投保时间
  • └ amount
  • Number
  • 可选
  • 10
  • 投保金额
  • └ external_biz_id
  • String
  • 可选
  • 12345
  • 外部业务id
  • insured
  • CustomerInfoForTop
  • 可选
  • 被保人
  • └ birthday
  • String
  • 可选
  • 20221001
  • 生日
  • └ license_no
  • String
  • 可选
  • 111111111111111111
  • 身份证号
  • └ license_valid_time_util
  • String
  • 可选
  • 20251001
  • 身份证有效期
  • └ address
  • String
  • 可选
  • xxx road
  • 地址
  • └ gender
  • String
  • 可选
  • male
  • 性别
  • └ alipay_account_id
  • String
  • 可选
  • 11111
  • 支付宝账号
  • └ ali_id
  • String
  • 可选
  • 3664297069
  • 阿里id
  • └ license_valid_time_from
  • String
  • 可选
  • 20200101
  • 省份证有效期起始时间
  • └ license_type
  • String
  • 可选
  • PASSPORT
  • 证件类型
  • └ phone
  • String
  • 可选
  • 11111111111
  • 电话
  • customer_id
  • AliId
  • 可选
  • 用户id
  • └ ali_id
  • Number
  • 可选
  • 3664297069
  • 阿里id
  • └ name
  • String
  • 可选
  • 张三
  • 姓名
  • └ email
  • String
  • 可选
  • baocgs01lastname@yougen.site
  • 邮箱
  • └ open_id
  • String
  • 可选
  • icbu_cargo_insurance
  • 业务码
  • └ applicant_alipay_account
  • String
  • 可选
  • 1111
  • 投保人支付宝账号
  • └ premium_rate
  • String
  • 可选
  • 0.1
  • 保费费率(废弃)
  • └ memo
  • String
  • 可选
  • xxx
  • 备注
  • └ echo
  • String
  • 可选
  • xxx
  • 备注
  • └ precision_premium
  • String
  • 可选
  • 0.2
  • 保费费率
  • subject_matter_info
  • OrderSubjectInfo
  • 可选
  • 标的物订单
  • └ order_id
  • String
  • 可选
  • 2344555
  • 订单号
  • └ seller_alipay_account
  • String
  • 可选
  • 222222
  • 卖家支付宝账号
  • └ seller_login_id
  • String
  • 可选
  • 22ss
  • 卖家loginId
  • └ buyer_id
  • String
  • 可选
  • 222
  • 买家id
  • └ buyer_login_id
  • String
  • 可选
  • 22dd
  • 买家loginId
  • └ order_amount
  • Number
  • 可选
  • 10
  • 订单金额
  • └ seller_id
  • String
  • 可选
  • 2222
  • 卖家id
  • └ order_time
  • Date
  • 可选
  • 2022-10-01 00:00:00
  • 订单时间
  • goods_item_list
  • GoodsItemDTO []
  • 可选
  • {1,2}
  • 商品列表
  • └ item_type
  • String
  • 可选
  • xxx
  • 商品类型
  • └ item_quantity
  • Number
  • 可选
  • 11
  • 商品数量
  • └ item_currency
  • String
  • 可选
  • USD
  • 商品币种
  • └ item_code
  • String
  • 可选
  • 123
  • 商品编码
  • └ item_price
  • String
  • 可选
  • 123
  • 商品价格
  • └ item_desc
  • String
  • 可选
  • xxx
  • 商品描述
  • └ item_url_list
  • String []
  • 可选
  • {xxx,sss}
  • 商品链接
  • └ order_title
  • String
  • 可选
  • xxx
  • 订单名称
  • └ platform_name
  • String
  • 可选
  • Alibaba
  • 平台名称
  • └ order_category
  • String
  • 可选
  • xxx
  • 订单类别
  • └ buyer_alipay_account
  • String
  • 可选
  • xxxx
  • 买家支付宝账号
  • applicant
  • CustomerInfoForTop
  • 可选
  • 投保人
  • └ birthday
  • String
  • 可选
  • 20221001
  • 生日
  • └ license_no
  • String
  • 可选
  • 111111111111111111
  • 证件号
  • └ license_valid_time_util
  • String
  • 可选
  • 20221001
  • 证件有效期截止
  • └ address
  • String
  • 可选
  • xxx
  • 地址
  • └ gender
  • String
  • 可选
  • male
  • 性别
  • └ alipay_account_id
  • String
  • 可选
  • 11111
  • 支付宝账号
  • └ ali_id
  • String
  • 可选
  • 3664297069
  • 阿里id
  • └ license_valid_time_from
  • String
  • 可选
  • 20201001
  • 证件有效期开始
  • └ license_type
  • String
  • 可选
  • ID card
  • 证件类型
  • └ phone
  • String
  • 可选
  • 11111111111
  • 电话
  • customer_id
  • AliId
  • 可选
  • 用户id
  • └ ali_id
  • Number
  • 可选
  • 3664297069
  • 阿里id
  • └ name
  • String
  • 可选
  • 张三
  • 姓名
  • └ email
  • String
  • 可选
  • baocgs01lastname@yougen.site
  • 邮箱
  • └ major_order
  • Boolean
  • 可选
  • true
  • 是否是主订单
  • └ institution
  • String
  • 可选
  • DAJIA
  • 机构
  • └ insure_period
  • Number
  • 可选
  • 1
  • 有效期
  • └ premium
  • Number
  • 可选
  • 1
  • 保费
  • └ expire_time
  • Date
  • 可选
  • 2022-02-10 00:00:00
  • 到期时间
  • └ currency
  • String
  • 可选
  • USD
  • 币种
  • └ currency_rate
  • String
  • 可选
  • 7.2
  • 汇率
  • transfer_stream_info
  • ChannelTransferStreamInfo
  • 可选
  • 资金信息
  • └ fund_stream
  • String
  • 可选
  • xxx
  • 资金信息

响应参数

名称 类型 示例值 描述
result InsureResponse 结果
  • └ success
  • Boolean
  • true
  • 是否成功
  • └ insure_id
  • String
  • 111111
  • 保单号
  • └ error_code
  • String
  • SYSTEM_ERROR
  • 错误码
  • └ error_msg
  • String
  • SYSTEM_ERROR
  • 错误信息

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AlibabaFinanceInsuranceIcbuInsureOrderCallbackRequest req = new AlibabaFinanceInsuranceIcbuInsureOrderCallbackRequest();
AlibabaFinanceInsuranceIcbuInsureOrderCallbackRequest.InsuredOrderReflowRequest obj1 = new AlibabaFinanceInsuranceIcbuInsureOrderCallbackRequest.InsuredOrderReflowRequest();
obj1.setInsuredAlipayAccount("12344");
obj1.setInsureTime(StringUtils.parseDateTime("2022-10-11 00:00:00"));
obj1.setAmount(10L);
obj1.setExternalBizId("12345");
AlibabaFinanceInsuranceIcbuInsureOrderCallbackRequest.CustomerInfoForTop obj2 = new AlibabaFinanceInsuranceIcbuInsureOrderCallbackRequest.CustomerInfoForTop();
obj2.setBirthday("20221001");
obj2.setLicenseNo("111111111111111111");
obj2.setLicenseValidTimeUtil("20251001");
obj2.setAddress("xxx road");
obj2.setGender("male");
obj2.setAlipayAccountId("11111");
obj2.setAliId("3664297069");
obj2.setLicenseValidTimeFrom("20200101");
obj2.setLicenseType("PASSPORT");
obj2.setPhone("11111111111");
AlibabaFinanceInsuranceIcbuInsureOrderCallbackRequest.AliId obj3 = new AlibabaFinanceInsuranceIcbuInsureOrderCallbackRequest.AliId();
obj3.setAliId(3664297069L);
obj2.setCustomerId(obj3);
obj2.setName("张三");
obj2.setEmail("baocgs01lastname@yougen.site");
obj1.setInsured(obj2);
obj1.setOpenId("icbu_cargo_insurance");
obj1.setApplicantAlipayAccount("1111");
obj1.setPremiumRate("0.1");
obj1.setMemo("xxx");
obj1.setEcho("xxx");
obj1.setPrecisionPremium("0.2");
AlibabaFinanceInsuranceIcbuInsureOrderCallbackRequest.OrderSubjectInfo obj4 = new AlibabaFinanceInsuranceIcbuInsureOrderCallbackRequest.OrderSubjectInfo();
obj4.setOrderId("2344555");
obj4.setSellerAlipayAccount("222222");
obj4.setSellerLoginId("22ss");
obj4.setBuyerId("222");
obj4.setBuyerLoginId("22dd");
obj4.setOrderAmount(10L);
obj4.setSellerId("2222");
obj4.setOrderTime(StringUtils.parseDateTime("2022-10-01 00:00:00"));
List<AlibabaFinanceInsuranceIcbuInsureOrderCallbackRequest.GoodsItemDTO> list6 = new ArrayList<AlibabaFinanceInsuranceIcbuInsureOrderCallbackRequest.GoodsItemDTO>();
AlibabaFinanceInsuranceIcbuInsureOrderCallbackRequest.GoodsItemDTO obj7 = new AlibabaFinanceInsuranceIcbuInsureOrderCallbackRequest.GoodsItemDTO();
list6.add(obj7);
obj7.setItemType("xxx");
obj7.setItemQuantity(11L);
obj7.setItemCurrency("USD");
obj7.setItemCode("123");
obj7.setItemPrice("123");
obj7.setItemDesc("xxx");
obj7.setItemUrlList("{xxx,sss}");
obj4.setGoodsItemList(list6);
obj4.setOrderTitle("xxx");
obj4.setPlatformName("Alibaba");
obj4.setOrderCategory("xxx");
obj4.setBuyerAlipayAccount("xxxx");
obj1.setSubjectMatterInfo(obj4);
AlibabaFinanceInsuranceIcbuInsureOrderCallbackRequest.CustomerInfoForTop obj8 = new AlibabaFinanceInsuranceIcbuInsureOrderCallbackRequest.CustomerInfoForTop();
obj8.setBirthday("20221001");
obj8.setLicenseNo("111111111111111111");
obj8.setLicenseValidTimeUtil("20221001");
obj8.setAddress("xxx");
obj8.setGender("male");
obj8.setAlipayAccountId("11111");
obj8.setAliId("3664297069");
obj8.setLicenseValidTimeFrom("20201001");
obj8.setLicenseType("ID card");
obj8.setPhone("11111111111");
AlibabaFinanceInsuranceIcbuInsureOrderCallbackRequest.AliId obj9 = new AlibabaFinanceInsuranceIcbuInsureOrderCallbackRequest.AliId();
obj9.setAliId(3664297069L);
obj8.setCustomerId(obj9);
obj8.setName("张三");
obj8.setEmail("baocgs01lastname@yougen.site");
obj1.setApplicant(obj8);
obj1.setMajorOrder(true);
obj1.setInstitution("DAJIA");
obj1.setInsurePeriod(1L);
obj1.setPremium(1L);
obj1.setExpireTime(StringUtils.parseDateTime("2022-02-10 00:00:00"));
obj1.setCurrency("USD");
obj1.setCurrencyRate("7.2");
AlibabaFinanceInsuranceIcbuInsureOrderCallbackRequest.ChannelTransferStreamInfo obj10 = new AlibabaFinanceInsuranceIcbuInsureOrderCallbackRequest.ChannelTransferStreamInfo();
obj10.setFundStream("xxx");
obj1.setTransferStreamInfo(obj10);
req.setInsuredOrderReflowRequest(obj1);
AlibabaFinanceInsuranceIcbuInsureOrderCallbackResponse rsp = client.execute(req);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<alibaba_finance_insurance_icbu_insure_order_callback_response>
    <result>
        <success>true</success>
        <insure_id>111111</insure_id>
        <error_code>SYSTEM_ERROR</error_code>
        <error_msg>SYSTEM_ERROR</error_msg>
    </result>
</alibaba_finance_insurance_icbu_insure_order_callback_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

返回
顶部