文档中心 > API类目 > 场景金融保险

alibaba.finance.insurance.createorder (机构投保创单)

机构投保创单

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
create_order_request CreateOrderRequest 必须 创单请求
  • └ identifier
  • String
  • 必须
  • xxx
  • 幂等号
  • └ order_id
  • String
  • 必须
  • xxx
  • 保司订单号
  • └ total_guaranteed_amount
  • String
  • 必须
  • 100
  • 总保额,单位元
  • └ effective_time
  • Date
  • 必须
  • 2026-01-01 10:00:00
  • 订单上保单生效时间,如果是多保单,取最早时间
  • policy_list
  • Policy []
  • 必须
  • 保单列表
  • └ correlation_policy_no
  • String
  • 可选
  • xxx
  • 关联保单号 赠险保单号或被续保的保单号
  • └ fee_amount
  • String
  • 必须
  • 10.00
  • 单笔保单总保费,单位元,2位小数
  • └ actual_received_amount
  • String
  • 必须
  • 10.00
  • 单笔保单实收保费,单位元,2位小数
  • └ effective_time
  • Date
  • 必须
  • 2026-01-01 10:00:00
  • 保单生效时间
  • └ expiration_time
  • Date
  • 必须
  • 2026-01-01 10:00:00
  • 保单失效时间
  • └ is_renew_policy
  • Boolean
  • 可选
  • false
  • 是否为续保单
  • └ policy_no
  • String
  • 必须
  • xxx
  • 保司保单号
  • └ is_support_renew
  • Boolean
  • 可选
  • false
  • 本单是否勾选了续保
  • └ plan
  • String
  • 可选
  • xxx
  • 保险方案名称
  • └ guaranteed_amount
  • String
  • 必须
  • 10.00
  • 单笔保单保额,单位元,2位小数
  • └ is_selected_commercial
  • Boolean
  • 可选
  • false
  • 本单是否勾选了转商,仅赠险转商险时传入
  • └ total_actual_received_amount
  • String
  • 必须
  • 100.00
  • 订单实收保费(期缴传创单时实际支付总保费)
  • └ total_fee_amount
  • String
  • 必须
  • 10.00
  • 订单总应收保费,单位:元,2位小数
  • └ out_user_id
  • String
  • 必须
  • xxx
  • 小程序获取的 openid
  • └ payment_type
  • String
  • 必须
  • monthly
  • 缴费方式,single:趸缴;monthly:月缴
  • └ item_id
  • String
  • 必须
  • xxx
  • 淘宝商品id
  • └ sub_product
  • String
  • 可选
  • xxx
  • 子产品码,保司险种识别,对接时约定
  • └ institution
  • String
  • 必须
  • xx
  • 保司的标识码,对接时约定
  • └ total_installments
  • Number
  • 必须
  • 1
  • 缴费总期数, 趸缴传1
  • └ product_code
  • String
  • 必须
  • xxx
  • 保司产品在手淘的唯一标识,由淘天分配
  • └ expiration_time
  • Date
  • 必须
  • 2027-01-01 10:00:00
  • 订单上保单失效时间,如果是多保单,取最晚时间
  • └ attributes
  • String
  • 可选
  • {"spm":"xxx"}
  • 从链接中获取到的参数通过这里传递
  • └ apply_time
  • Date
  • 必须
  • 2026-01-01 10:00:00
  • 订单创建时间
  • └ tenant
  • String
  • 必须
  • DTAO
  • 租户

响应参数

名称 类型 示例值 描述
is_success Boolean true 接口成功
response_code String SUCCESS 错误码
response_msg String 参数异常 错误原因描述

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AlibabaFinanceInsuranceCreateorderRequest req = new AlibabaFinanceInsuranceCreateorderRequest();
AlibabaFinanceInsuranceCreateorderRequest.CreateOrderRequest obj1 = new AlibabaFinanceInsuranceCreateorderRequest.CreateOrderRequest();
obj1.setIdentifier("xxx");
obj1.setOrderId("xxx");
obj1.setTotalGuaranteedAmount("100");
obj1.setEffectiveTime(StringUtils.parseDateTime("2026-01-01 10:00:00"));
List<AlibabaFinanceInsuranceCreateorderRequest.Policy> list3 = new ArrayList<AlibabaFinanceInsuranceCreateorderRequest.Policy>();
AlibabaFinanceInsuranceCreateorderRequest.Policy obj4 = new AlibabaFinanceInsuranceCreateorderRequest.Policy();
list3.add(obj4);
obj4.setCorrelationPolicyNo("xxx");
obj4.setFeeAmount("10.00");
obj4.setActualReceivedAmount("10.00");
obj4.setEffectiveTime(StringUtils.parseDateTime("2026-01-01 10:00:00"));
obj4.setExpirationTime(StringUtils.parseDateTime("2026-01-01 10:00:00"));
obj4.setIsRenewPolicy(false);
obj4.setPolicyNo("xxx");
obj4.setIsSupportRenew(false);
obj4.setPlan("xxx");
obj4.setGuaranteedAmount("10.00");
obj4.setIsSelectedCommercial(false);
obj1.setPolicyList(list3);
obj1.setTotalActualReceivedAmount("100.00");
obj1.setTotalFeeAmount("10.00");
obj1.setOutUserId("xxx");
obj1.setPaymentType("monthly");
obj1.setItemId("xxx");
obj1.setSubProduct("xxx");
obj1.setInstitution("xx");
obj1.setTotalInstallments(1L);
obj1.setProductCode("xxx");
obj1.setExpirationTime(StringUtils.parseDateTime("2027-01-01 10:00:00"));
obj1.setAttributes("{\"spm\":\"xxx\"}");
obj1.setApplyTime(StringUtils.parseDateTime("2026-01-01 10:00:00"));
obj1.setTenant("DTAO");
req.setCreateOrderRequest(obj1);
AlibabaFinanceInsuranceCreateorderResponse rsp = client.execute(req);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<alibaba_finance_insurance_createorder_response>
    <is_success>true</is_success>
    <response_code>SUCCESS</response_code>
    <response_msg>参数异常</response_msg>
</alibaba_finance_insurance_createorder_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

返回
顶部