AlipayClient alipayClient = new DefaultAlipayClient("https://openapi.alipay.com/gateway.do","app_id","your private_key","json","GBK","alipay_public_key","RSA2");
AlipayInsAutoAutoinsprodQuoteApplyRequest request = new AlipayInsAutoAutoinsprodQuoteApplyRequest();
request.setBizContent("{" +
"\"enquiry_biz_id\":\"2014112611001004680073956707\"," +
"\"force_product\":{" +
"\"prod_code\":\"ELEME_DELIVERY_DELAY\"," +
"\"prod_version\":\"1.0006\"," +
"\"prod_name\":\"航空意外险\"," +
"\"short_name\":\"航意险\"," +
"\"prod_desc\":\"最高赔付262万元/份\"," +
"\"is_sp\":false," +
"\"coverages\":{" +
"\"coverage_no\":\"F0070100200000001002\"," +
"\"coverage_name\":\"综合意外险\"," +
"\"coverage_desc\":\"提供乘坐飞机交通工具的意外伤害身故、残疾及医疗保障\"," +
"\"sum_insured\":{" +
"\"sum_insured_type\":\"MONEY_LIST\"," +
"\"default_value\":20000," +
"\"min_value\":0," +
"\"max_value\":100000000," +
" \"sum_insureds\":[" +
" 50000" +
" ]" +
" }," +
" \"periods\":[" +
" \"1D\"" +
" ]," +
"\"is_fixed_period\":true," +
" \"liabilities\":[{" +
" \"liability_name\":\"飞机乘客意外伤害身故\"," +
"\"liability_desc\":\"在保险期间内,如果被保险人持有效客票乘坐合法经营客运业务的民航班机自通过机场安全检查时起至抵达目的地走出民航班机的舱门止遭受意外伤害事故导致身故的,本公司一次性给付身故保险金260万元,保险责任终止。\"," +
"\"sum_insured\":{" +
"\"sum_insured_type\":\"MONEY_LIST\"," +
"\"default_value\":20000," +
"\"min_value\":0," +
"\"max_value\":100000000," +
" \"sum_insureds\":[" +
" 50000" +
" ]" +
" }," +
"\"liability_no\":\"100193\"," +
"\"coverage\":\"1000000\"," +
"\"iop\":\"1\"," +
"\"premium\":\"880000\"," +
" \"options\":[{" +
" \"coverage\":\"xxx\"," +
"\"coverage_text\":\"yyy\"" +
" }]," +
"\"disabled\":\"0\"," +
"\"liability_premium\":\"2000\"," +
"\"iop_premium\":\"10000\"" +
" }]" +
" }," +
"\"merchant\":{" +
"\"name\":\"众安在线财产保险股份有限公司\"," +
"\"short_name\":\"众安保险\"," +
"\"service_phone\":\"4009999595\"" +
" }," +
"\"sp_code\":\"6120\"," +
" \"resources\":[{" +
" \"key\":\"insMustKnow\"," +
"\"type\":\"text\"," +
"\"name\":\"保险条款链接\"," +
"\"value\":\"http://img02.taobaocdn.com/imgextra/i2/1124082407/TB288ERaFXXXXX_XpXXXXXXXXXX_!!1124082407.jpg\"" +
" }]," +
" \"tags\":[{" +
" \"tag_code\":\"xxxx_code\"," +
"\"tag_value\":\"xxxx_value\"" +
" }]," +
"\"sales\":1000000," +
"\"effect_date\":\"2017-10-10 23:00:00\"," +
"\"prod_no\":\"250\"," +
" \"liabilities\":[{" +
" \"liability_name\":\"飞机乘客意外伤害身故\"," +
"\"liability_desc\":\"在保险期间内,如果被保险人持有效客票乘坐合法经营客运业务的民航班机自通过机场安全检查时起至抵达目的地走出民航班机的舱门止遭受意外伤害事故导致身故的,本公司一次性给付身故保险金260万元,保险责任终止。\"," +
"\"sum_insured\":{" +
"\"sum_insured_type\":\"MONEY_LIST\"," +
"\"default_value\":20000," +
"\"min_value\":0," +
"\"max_value\":100000000," +
" \"sum_insureds\":[" +
" 50000" +
" ]" +
" }," +
"\"liability_no\":\"100193\"," +
"\"coverage\":\"1000000\"," +
"\"iop\":\"1\"," +
"\"premium\":\"880000\"," +
" \"options\":[{" +
" \"coverage\":\"xxx\"," +
"\"coverage_text\":\"yyy\"" +
" }]," +
"\"disabled\":\"0\"," +
"\"liability_premium\":\"2000\"," +
"\"iop_premium\":\"10000\"" +
" }]," +
"\"total_premium\":\"880000\"," +
"\"real_premium\":\"680000\"," +
"\"reduce_premium\":\"100000\"," +
"\"invalid_date\":\"2017-09-22 16:48:48\"" +
" }," +
"\"business_product\":{" +
"\"prod_code\":\"ELEME_DELIVERY_DELAY\"," +
"\"prod_version\":\"1.0006\"," +
"\"prod_name\":\"航空意外险\"," +
"\"short_name\":\"航意险\"," +
"\"prod_desc\":\"最高赔付262万元/份\"," +
"\"is_sp\":false," +
"\"coverages\":{" +
"\"coverage_no\":\"F0070100200000001002\"," +
"\"coverage_name\":\"综合意外险\"," +
"\"coverage_desc\":\"提供乘坐飞机交通工具的意外伤害身故、残疾及医疗保障\"," +
"\"sum_insured\":{" +
"\"sum_insured_type\":\"MONEY_LIST\"," +
"\"default_value\":20000," +
"\"min_value\":0," +
"\"max_value\":100000000," +
" \"sum_insureds\":[" +
" 50000" +
" ]" +
" }," +
" \"periods\":[" +
" \"1D\"" +
" ]," +
"\"is_fixed_period\":true," +
" \"liabilities\":[{" +
" \"liability_name\":\"飞机乘客意外伤害身故\"," +
"\"liability_desc\":\"在保险期间内,如果被保险人持有效客票乘坐合法经营客运业务的民航班机自通过机场安全检查时起至抵达目的地走出民航班机的舱门止遭受意外伤害事故导致身故的,本公司一次性给付身故保险金260万元,保险责任终止。\"," +
"\"sum_insured\":{" +
"\"sum_insured_type\":\"MONEY_LIST\"," +
"\"default_value\":20000," +
"\"min_value\":0," +
"\"max_value\":100000000," +
" \"sum_insureds\":[" +
" 50000" +
" ]" +
" }," +
"\"liability_no\":\"100193\"," +
"\"coverage\":\"1000000\"," +
"\"iop\":\"1\"," +
"\"premium\":\"880000\"," +
" \"options\":[{" +
" \"coverage\":\"xxx\"," +
"\"coverage_text\":\"yyy\"" +
" }]," +
"\"disabled\":\"0\"," +
"\"liability_premium\":\"2000\"," +
"\"iop_premium\":\"10000\"" +
" }]" +
" }," +
"\"merchant\":{" +
"\"name\":\"众安在线财产保险股份有限公司\"," +
"\"short_name\":\"众安保险\"," +
"\"service_phone\":\"4009999595\"" +
" }," +
"\"sp_code\":\"6120\"," +
" \"resources\":[{" +
" \"key\":\"insMustKnow\"," +
"\"type\":\"text\"," +
"\"name\":\"保险条款链接\"," +
"\"value\":\"http://img02.taobaocdn.com/imgextra/i2/1124082407/TB288ERaFXXXXX_XpXXXXXXXXXX_!!1124082407.jpg\"" +
" }]," +
" \"tags\":[{" +
" \"tag_code\":\"xxxx_code\"," +
"\"tag_value\":\"xxxx_value\"" +
" }]," +
"\"sales\":1000000," +
"\"effect_date\":\"2017-10-10 23:00:00\"," +
"\"prod_no\":\"250\"," +
" \"liabilities\":[{" +
" \"liability_name\":\"飞机乘客意外伤害身故\"," +
"\"liability_desc\":\"在保险期间内,如果被保险人持有效客票乘坐合法经营客运业务的民航班机自通过机场安全检查时起至抵达目的地走出民航班机的舱门止遭受意外伤害事故导致身故的,本公司一次性给付身故保险金260万元,保险责任终止。\"," +
"\"sum_insured\":{" +
"\"sum_insured_type\":\"MONEY_LIST\"," +
"\"default_value\":20000," +
"\"min_value\":0," +
"\"max_value\":100000000," +
" \"sum_insureds\":[" +
" 50000" +
" ]" +
" }," +
"\"liability_no\":\"100193\"," +
"\"coverage\":\"1000000\"," +
"\"iop\":\"1\"," +
"\"premium\":\"880000\"," +
" \"options\":[{" +
" \"coverage\":\"xxx\"," +
"\"coverage_text\":\"yyy\"" +
" }]," +
"\"disabled\":\"0\"," +
"\"liability_premium\":\"2000\"," +
"\"iop_premium\":\"10000\"" +
" }]," +
"\"total_premium\":\"880000\"," +
"\"real_premium\":\"680000\"," +
"\"reduce_premium\":\"100000\"," +
"\"invalid_date\":\"2017-09-22 16:48:48\"" +
" }," +
"\"quote_type\":\"1\"," +
"\"check_type\":\"0\"," +
"\"company_id\":\"xxxx\"," +
"\"check_code\":\"xxx\"," +
"\"check_code_id\":\"xxx\"" +
" }");
AlipayInsAutoAutoinsprodQuoteApplyResponse response = alipayClient.execute(request,accessToken);
if(response.isSuccess()){
System.out.println("调用成功");
} else {
System.out.println("调用失败");
}
IAopClient client = new DefaultAopClient("https://openapi.alipay.com/gateway.do", "app_id", "merchant_private_key", "json", "1.0", "RSA2", "alipay_public_key", "GBK", false);
AlipayInsAutoAutoinsprodQuoteApplyRequest request= new AlipayInsAutoAutoinsprodQuoteApplyRequest() ;
request.BizContent="{" +
"\"enquiry_biz_id\":\"2014112611001004680073956707\"," +
"\"force_product\":{" +
"\"prod_code\":\"ELEME_DELIVERY_DELAY\"," +
"\"prod_version\":\"1.0006\"," +
"\"prod_name\":\"航空意外险\"," +
"\"short_name\":\"航意险\"," +
"\"prod_desc\":\"最高赔付262万元/份\"," +
"\"is_sp\":false," +
"\"coverages\":{" +
"\"coverage_no\":\"F0070100200000001002\"," +
"\"coverage_name\":\"综合意外险\"," +
"\"coverage_desc\":\"提供乘坐飞机交通工具的意外伤害身故、残疾及医疗保障\"," +
"\"sum_insured\":{" +
"\"sum_insured_type\":\"MONEY_LIST\"," +
"\"default_value\":20000," +
"\"min_value\":0," +
"\"max_value\":100000000," +
" \"sum_insureds\":[" +
" 50000" +
" ]" +
" }," +
" \"periods\":[" +
" \"1D\"" +
" ]," +
"\"is_fixed_period\":true," +
" \"liabilities\":[{" +
" \"liability_name\":\"飞机乘客意外伤害身故\"," +
"\"liability_desc\":\"在保险期间内,如果被保险人持有效客票乘坐合法经营客运业务的民航班机自通过机场安全检查时起至抵达目的地走出民航班机的舱门止遭受意外伤害事故导致身故的,本公司一次性给付身故保险金260万元,保险责任终止。\"," +
"\"sum_insured\":{" +
"\"sum_insured_type\":\"MONEY_LIST\"," +
"\"default_value\":20000," +
"\"min_value\":0," +
"\"max_value\":100000000," +
" \"sum_insureds\":[" +
" 50000" +
" ]" +
" }," +
"\"liability_no\":\"100193\"," +
"\"coverage\":\"1000000\"," +
"\"iop\":\"1\"," +
"\"premium\":\"880000\"," +
" \"options\":[{" +
" \"coverage\":\"xxx\"," +
"\"coverage_text\":\"yyy\"" +
" }]," +
"\"disabled\":\"0\"," +
"\"liability_premium\":\"2000\"," +
"\"iop_premium\":\"10000\"" +
" }]" +
" }," +
"\"merchant\":{" +
"\"name\":\"众安在线财产保险股份有限公司\"," +
"\"short_name\":\"众安保险\"," +
"\"service_phone\":\"4009999595\"" +
" }," +
"\"sp_code\":\"6120\"," +
" \"resources\":[{" +
" \"key\":\"insMustKnow\"," +
"\"type\":\"text\"," +
"\"name\":\"保险条款链接\"," +
"\"value\":\"http://img02.taobaocdn.com/imgextra/i2/1124082407/TB288ERaFXXXXX_XpXXXXXXXXXX_!!1124082407.jpg\"" +
" }]," +
" \"tags\":[{" +
" \"tag_code\":\"xxxx_code\"," +
"\"tag_value\":\"xxxx_value\"" +
" }]," +
"\"sales\":1000000," +
"\"effect_date\":\"2017-10-10 23:00:00\"," +
"\"prod_no\":\"250\"," +
" \"liabilities\":[{" +
" \"liability_name\":\"飞机乘客意外伤害身故\"," +
"\"liability_desc\":\"在保险期间内,如果被保险人持有效客票乘坐合法经营客运业务的民航班机自通过机场安全检查时起至抵达目的地走出民航班机的舱门止遭受意外伤害事故导致身故的,本公司一次性给付身故保险金260万元,保险责任终止。\"," +
"\"sum_insured\":{" +
"\"sum_insured_type\":\"MONEY_LIST\"," +
"\"default_value\":20000," +
"\"min_value\":0," +
"\"max_value\":100000000," +
" \"sum_insureds\":[" +
" 50000" +
" ]" +
" }," +
"\"liability_no\":\"100193\"," +
"\"coverage\":\"1000000\"," +
"\"iop\":\"1\"," +
"\"premium\":\"880000\"," +
" \"options\":[{" +
" \"coverage\":\"xxx\"," +
"\"coverage_text\":\"yyy\"" +
" }]," +
"\"disabled\":\"0\"," +
"\"liability_premium\":\"2000\"," +
"\"iop_premium\":\"10000\"" +
" }]," +
"\"total_premium\":\"880000\"," +
"\"real_premium\":\"680000\"," +
"\"reduce_premium\":\"100000\"," +
"\"invalid_date\":\"2017-09-22 16:48:48\"" +
" }," +
"\"business_product\":{" +
"\"prod_code\":\"ELEME_DELIVERY_DELAY\"," +
"\"prod_version\":\"1.0006\"," +
"\"prod_name\":\"航空意外险\"," +
"\"short_name\":\"航意险\"," +
"\"prod_desc\":\"最高赔付262万元/份\"," +
"\"is_sp\":false," +
"\"coverages\":{" +
"\"coverage_no\":\"F0070100200000001002\"," +
"\"coverage_name\":\"综合意外险\"," +
"\"coverage_desc\":\"提供乘坐飞机交通工具的意外伤害身故、残疾及医疗保障\"," +
"\"sum_insured\":{" +
"\"sum_insured_type\":\"MONEY_LIST\"," +
"\"default_value\":20000," +
"\"min_value\":0," +
"\"max_value\":100000000," +
" \"sum_insureds\":[" +
" 50000" +
" ]" +
" }," +
" \"periods\":[" +
" \"1D\"" +
" ]," +
"\"is_fixed_period\":true," +
" \"liabilities\":[{" +
" \"liability_name\":\"飞机乘客意外伤害身故\"," +
"\"liability_desc\":\"在保险期间内,如果被保险人持有效客票乘坐合法经营客运业务的民航班机自通过机场安全检查时起至抵达目的地走出民航班机的舱门止遭受意外伤害事故导致身故的,本公司一次性给付身故保险金260万元,保险责任终止。\"," +
"\"sum_insured\":{" +
"\"sum_insured_type\":\"MONEY_LIST\"," +
"\"default_value\":20000," +
"\"min_value\":0," +
"\"max_value\":100000000," +
" \"sum_insureds\":[" +
" 50000" +
" ]" +
" }," +
"\"liability_no\":\"100193\"," +
"\"coverage\":\"1000000\"," +
"\"iop\":\"1\"," +
"\"premium\":\"880000\"," +
" \"options\":[{" +
" \"coverage\":\"xxx\"," +
"\"coverage_text\":\"yyy\"" +
" }]," +
"\"disabled\":\"0\"," +
"\"liability_premium\":\"2000\"," +
"\"iop_premium\":\"10000\"" +
" }]" +
" }," +
"\"merchant\":{" +
"\"name\":\"众安在线财产保险股份有限公司\"," +
"\"short_name\":\"众安保险\"," +
"\"service_phone\":\"4009999595\"" +
" }," +
"\"sp_code\":\"6120\"," +
" \"resources\":[{" +
" \"key\":\"insMustKnow\"," +
"\"type\":\"text\"," +
"\"name\":\"保险条款链接\"," +
"\"value\":\"http://img02.taobaocdn.com/imgextra/i2/1124082407/TB288ERaFXXXXX_XpXXXXXXXXXX_!!1124082407.jpg\"" +
" }]," +
" \"tags\":[{" +
" \"tag_code\":\"xxxx_code\"," +
"\"tag_value\":\"xxxx_value\"" +
" }]," +
"\"sales\":1000000," +
"\"effect_date\":\"2017-10-10 23:00:00\"," +
"\"prod_no\":\"250\"," +
" \"liabilities\":[{" +
" \"liability_name\":\"飞机乘客意外伤害身故\"," +
"\"liability_desc\":\"在保险期间内,如果被保险人持有效客票乘坐合法经营客运业务的民航班机自通过机场安全检查时起至抵达目的地走出民航班机的舱门止遭受意外伤害事故导致身故的,本公司一次性给付身故保险金260万元,保险责任终止。\"," +
"\"sum_insured\":{" +
"\"sum_insured_type\":\"MONEY_LIST\"," +
"\"default_value\":20000," +
"\"min_value\":0," +
"\"max_value\":100000000," +
" \"sum_insureds\":[" +
" 50000" +
" ]" +
" }," +
"\"liability_no\":\"100193\"," +
"\"coverage\":\"1000000\"," +
"\"iop\":\"1\"," +
"\"premium\":\"880000\"," +
" \"options\":[{" +
" \"coverage\":\"xxx\"," +
"\"coverage_text\":\"yyy\"" +
" }]," +
"\"disabled\":\"0\"," +
"\"liability_premium\":\"2000\"," +
"\"iop_premium\":\"10000\"" +
" }]," +
"\"total_premium\":\"880000\"," +
"\"real_premium\":\"680000\"," +
"\"reduce_premium\":\"100000\"," +
"\"invalid_date\":\"2017-09-22 16:48:48\"" +
" }," +
"\"quote_type\":\"1\"," +
"\"check_type\":\"0\"," +
"\"company_id\":\"xxxx\"," +
"\"check_code\":\"xxx\"," +
"\"check_code_id\":\"xxx\"" +
" }";
AlipayInsAutoAutoinsprodQuoteApplyResponse response=client.execute(request,accessToken);
Console.WriteLine(response.Body);
$aop = new AopClient ();
$aop->gatewayUrl = 'https://openapi.alipay.com/gateway.do';
$aop->appId = 'your app_id';
$aop->rsaPrivateKey = '请填写开发者私钥去头去尾去回车,一行字符串';
$aop->alipayrsaPublicKey='请填写支付宝公钥,一行字符串';
$aop->apiVersion = '1.0';
$aop->signType = 'RSA2';
$aop->postCharset='GBK';
$aop->format='json';
$request = new AlipayInsAutoAutoinsprodQuoteApplyRequest ();
$request->setBizContent("{" .
"\"enquiry_biz_id\":\"2014112611001004680073956707\"," .
"\"force_product\":{" .
"\"prod_code\":\"ELEME_DELIVERY_DELAY\"," .
"\"prod_version\":\"1.0006\"," .
"\"prod_name\":\"航空意外险\"," .
"\"short_name\":\"航意险\"," .
"\"prod_desc\":\"最高赔付262万元/份\"," .
"\"is_sp\":false," .
"\"coverages\":{" .
"\"coverage_no\":\"F0070100200000001002\"," .
"\"coverage_name\":\"综合意外险\"," .
"\"coverage_desc\":\"提供乘坐飞机交通工具的意外伤害身故、残疾及医疗保障\"," .
"\"sum_insured\":{" .
"\"sum_insured_type\":\"MONEY_LIST\"," .
"\"default_value\":20000," .
"\"min_value\":0," .
"\"max_value\":100000000," .
" \"sum_insureds\":[" .
" 50000" .
" ]" .
" }," .
" \"periods\":[" .
" \"1D\"" .
" ]," .
"\"is_fixed_period\":true," .
" \"liabilities\":[{" .
" \"liability_name\":\"飞机乘客意外伤害身故\"," .
"\"liability_desc\":\"在保险期间内,如果被保险人持有效客票乘坐合法经营客运业务的民航班机自通过机场安全检查时起至抵达目的地走出民航班机的舱门止遭受意外伤害事故导致身故的,本公司一次性给付身故保险金260万元,保险责任终止。\"," .
"\"sum_insured\":{" .
"\"sum_insured_type\":\"MONEY_LIST\"," .
"\"default_value\":20000," .
"\"min_value\":0," .
"\"max_value\":100000000," .
" \"sum_insureds\":[" .
" 50000" .
" ]" .
" }," .
"\"liability_no\":\"100193\"," .
"\"coverage\":\"1000000\"," .
"\"iop\":\"1\"," .
"\"premium\":\"880000\"," .
" \"options\":[{" .
" \"coverage\":\"xxx\"," .
"\"coverage_text\":\"yyy\"" .
" }]," .
"\"disabled\":\"0\"," .
"\"liability_premium\":\"2000\"," .
"\"iop_premium\":\"10000\"" .
" }]" .
" }," .
"\"merchant\":{" .
"\"name\":\"众安在线财产保险股份有限公司\"," .
"\"short_name\":\"众安保险\"," .
"\"service_phone\":\"4009999595\"" .
" }," .
"\"sp_code\":\"6120\"," .
" \"resources\":[{" .
" \"key\":\"insMustKnow\"," .
"\"type\":\"text\"," .
"\"name\":\"保险条款链接\"," .
"\"value\":\"http://img02.taobaocdn.com/imgextra/i2/1124082407/TB288ERaFXXXXX_XpXXXXXXXXXX_!!1124082407.jpg\"" .
" }]," .
" \"tags\":[{" .
" \"tag_code\":\"xxxx_code\"," .
"\"tag_value\":\"xxxx_value\"" .
" }]," .
"\"sales\":1000000," .
"\"effect_date\":\"2017-10-10 23:00:00\"," .
"\"prod_no\":\"250\"," .
" \"liabilities\":[{" .
" \"liability_name\":\"飞机乘客意外伤害身故\"," .
"\"liability_desc\":\"在保险期间内,如果被保险人持有效客票乘坐合法经营客运业务的民航班机自通过机场安全检查时起至抵达目的地走出民航班机的舱门止遭受意外伤害事故导致身故的,本公司一次性给付身故保险金260万元,保险责任终止。\"," .
"\"sum_insured\":{" .
"\"sum_insured_type\":\"MONEY_LIST\"," .
"\"default_value\":20000," .
"\"min_value\":0," .
"\"max_value\":100000000," .
" \"sum_insureds\":[" .
" 50000" .
" ]" .
" }," .
"\"liability_no\":\"100193\"," .
"\"coverage\":\"1000000\"," .
"\"iop\":\"1\"," .
"\"premium\":\"880000\"," .
" \"options\":[{" .
" \"coverage\":\"xxx\"," .
"\"coverage_text\":\"yyy\"" .
" }]," .
"\"disabled\":\"0\"," .
"\"liability_premium\":\"2000\"," .
"\"iop_premium\":\"10000\"" .
" }]," .
"\"total_premium\":\"880000\"," .
"\"real_premium\":\"680000\"," .
"\"reduce_premium\":\"100000\"," .
"\"invalid_date\":\"2017-09-22 16:48:48\"" .
" }," .
"\"business_product\":{" .
"\"prod_code\":\"ELEME_DELIVERY_DELAY\"," .
"\"prod_version\":\"1.0006\"," .
"\"prod_name\":\"航空意外险\"," .
"\"short_name\":\"航意险\"," .
"\"prod_desc\":\"最高赔付262万元/份\"," .
"\"is_sp\":false," .
"\"coverages\":{" .
"\"coverage_no\":\"F0070100200000001002\"," .
"\"coverage_name\":\"综合意外险\"," .
"\"coverage_desc\":\"提供乘坐飞机交通工具的意外伤害身故、残疾及医疗保障\"," .
"\"sum_insured\":{" .
"\"sum_insured_type\":\"MONEY_LIST\"," .
"\"default_value\":20000," .
"\"min_value\":0," .
"\"max_value\":100000000," .
" \"sum_insureds\":[" .
" 50000" .
" ]" .
" }," .
" \"periods\":[" .
" \"1D\"" .
" ]," .
"\"is_fixed_period\":true," .
" \"liabilities\":[{" .
" \"liability_name\":\"飞机乘客意外伤害身故\"," .
"\"liability_desc\":\"在保险期间内,如果被保险人持有效客票乘坐合法经营客运业务的民航班机自通过机场安全检查时起至抵达目的地走出民航班机的舱门止遭受意外伤害事故导致身故的,本公司一次性给付身故保险金260万元,保险责任终止。\"," .
"\"sum_insured\":{" .
"\"sum_insured_type\":\"MONEY_LIST\"," .
"\"default_value\":20000," .
"\"min_value\":0," .
"\"max_value\":100000000," .
" \"sum_insureds\":[" .
" 50000" .
" ]" .
" }," .
"\"liability_no\":\"100193\"," .
"\"coverage\":\"1000000\"," .
"\"iop\":\"1\"," .
"\"premium\":\"880000\"," .
" \"options\":[{" .
" \"coverage\":\"xxx\"," .
"\"coverage_text\":\"yyy\"" .
" }]," .
"\"disabled\":\"0\"," .
"\"liability_premium\":\"2000\"," .
"\"iop_premium\":\"10000\"" .
" }]" .
" }," .
"\"merchant\":{" .
"\"name\":\"众安在线财产保险股份有限公司\"," .
"\"short_name\":\"众安保险\"," .
"\"service_phone\":\"4009999595\"" .
" }," .
"\"sp_code\":\"6120\"," .
" \"resources\":[{" .
" \"key\":\"insMustKnow\"," .
"\"type\":\"text\"," .
"\"name\":\"保险条款链接\"," .
"\"value\":\"http://img02.taobaocdn.com/imgextra/i2/1124082407/TB288ERaFXXXXX_XpXXXXXXXXXX_!!1124082407.jpg\"" .
" }]," .
" \"tags\":[{" .
" \"tag_code\":\"xxxx_code\"," .
"\"tag_value\":\"xxxx_value\"" .
" }]," .
"\"sales\":1000000," .
"\"effect_date\":\"2017-10-10 23:00:00\"," .
"\"prod_no\":\"250\"," .
" \"liabilities\":[{" .
" \"liability_name\":\"飞机乘客意外伤害身故\"," .
"\"liability_desc\":\"在保险期间内,如果被保险人持有效客票乘坐合法经营客运业务的民航班机自通过机场安全检查时起至抵达目的地走出民航班机的舱门止遭受意外伤害事故导致身故的,本公司一次性给付身故保险金260万元,保险责任终止。\"," .
"\"sum_insured\":{" .
"\"sum_insured_type\":\"MONEY_LIST\"," .
"\"default_value\":20000," .
"\"min_value\":0," .
"\"max_value\":100000000," .
" \"sum_insureds\":[" .
" 50000" .
" ]" .
" }," .
"\"liability_no\":\"100193\"," .
"\"coverage\":\"1000000\"," .
"\"iop\":\"1\"," .
"\"premium\":\"880000\"," .
" \"options\":[{" .
" \"coverage\":\"xxx\"," .
"\"coverage_text\":\"yyy\"" .
" }]," .
"\"disabled\":\"0\"," .
"\"liability_premium\":\"2000\"," .
"\"iop_premium\":\"10000\"" .
" }]," .
"\"total_premium\":\"880000\"," .
"\"real_premium\":\"680000\"," .
"\"reduce_premium\":\"100000\"," .
"\"invalid_date\":\"2017-09-22 16:48:48\"" .
" }," .
"\"quote_type\":\"1\"," .
"\"check_type\":\"0\"," .
"\"company_id\":\"xxxx\"," .
"\"check_code\":\"xxx\"," .
"\"check_code_id\":\"xxx\"" .
" }");
$result = $aop->execute ( $request , $accessToken );
$responseNode = str_replace(".", "_", $request->getApiMethodName()) . "_response";
$resultCode = $result->$responseNode->code;
if(!empty($resultCode)&&$resultCode == 10000){
echo "成功";
} else {
echo "失败";
}
https://openapi.alipay.com/gateway.do?timestamp=2013-01-01 08:08:08&method=alipay.ins.auto.autoinsprod.quote.apply&app_id=5265&sign_type=RSA2&sign=ERITJKEIJKJHKKKKKKKHJEREEEEEEEEEEE&version=1.0&auth_token=20130319e9b8d53d09034da8998caefa756c4006&biz_content=
{
"enquiry_biz_id":"2014112611001004680073956707",
"force_product":{
"prod_code":"ELEME_DELIVERY_DELAY",
"prod_version":"1.0006",
"prod_name":"航空意外险",
"short_name":"航意险",
"prod_desc":"最高赔付262万元/份",
"is_sp":false,
"coverages":{
"coverage_no":"F0070100200000001002",
"coverage_name":"综合意外险",
"coverage_desc":"提供乘坐飞机交通工具的意外伤害身故、残疾及医疗保障",
"sum_insured":{
"sum_insured_type":"MONEY_LIST",
"default_value":20000,
"min_value":0,
"max_value":100000000,
"sum_insureds":[
50000
]
},
"periods":[
"1D"
],
"is_fixed_period":true,
"liabilities":[{
"liability_name":"飞机乘客意外伤害身故",
"liability_desc":"在保险期间内,如果被保险人持有效客票乘坐合法经营客运业务的民航班机自通过机场安全检查时起至抵达目的地走出民航班机的舱门止遭受意外伤害事故导致身故的,本公司一次性给付身故保险金260万元,保险责任终止。",
"sum_insured":{
"sum_insured_type":"MONEY_LIST",
"default_value":20000,
"min_value":0,
"max_value":100000000,
"sum_insureds":[
50000
]
},
"liability_no":"100193",
"coverage":"1000000",
"iop":"1",
"premium":"880000",
"options":[{
"coverage":"xxx",
"coverage_text":"yyy"
}],
"disabled":"0",
"liability_premium":"2000",
"iop_premium":"10000"
}]
},
"merchant":{
"name":"众安在线财产保险股份有限公司",
"short_name":"众安保险",
"service_phone":"4009999595"
},
"sp_code":"6120",
"resources":[{
"key":"insMustKnow",
"type":"text",
"name":"保险条款链接",
"value":"http://img02.taobaocdn.com/imgextra/i2/1124082407/TB288ERaFXXXXX_XpXXXXXXXXXX_!!1124082407.jpg"
}],
"tags":[{
"tag_code":"xxxx_code",
"tag_value":"xxxx_value"
}],
"sales":1000000,
"effect_date":"2017-10-10 23:00:00",
"prod_no":"250",
"liabilities":[{
"liability_name":"飞机乘客意外伤害身故",
"liability_desc":"在保险期间内,如果被保险人持有效客票乘坐合法经营客运业务的民航班机自通过机场安全检查时起至抵达目的地走出民航班机的舱门止遭受意外伤害事故导致身故的,本公司一次性给付身故保险金260万元,保险责任终止。",
"sum_insured":{
"sum_insured_type":"MONEY_LIST",
"default_value":20000,
"min_value":0,
"max_value":100000000,
"sum_insureds":[
50000
]
},
"liability_no":"100193",
"coverage":"1000000",
"iop":"1",
"premium":"880000",
"options":[{
"coverage":"xxx",
"coverage_text":"yyy"
}],
"disabled":"0",
"liability_premium":"2000",
"iop_premium":"10000"
}],
"total_premium":"880000",
"real_premium":"680000",
"reduce_premium":"100000",
"invalid_date":"2017-09-22 16:48:48"
},
"business_product":{
"prod_code":"ELEME_DELIVERY_DELAY",
"prod_version":"1.0006",
"prod_name":"航空意外险",
"short_name":"航意险",
"prod_desc":"最高赔付262万元/份",
"is_sp":false,
"coverages":{
"coverage_no":"F0070100200000001002",
"coverage_name":"综合意外险",
"coverage_desc":"提供乘坐飞机交通工具的意外伤害身故、残疾及医疗保障",
"sum_insured":{
"sum_insured_type":"MONEY_LIST",
"default_value":20000,
"min_value":0,
"max_value":100000000,
"sum_insureds":[
50000
]
},
"periods":[
"1D"
],
"is_fixed_period":true,
"liabilities":[{
"liability_name":"飞机乘客意外伤害身故",
"liability_desc":"在保险期间内,如果被保险人持有效客票乘坐合法经营客运业务的民航班机自通过机场安全检查时起至抵达目的地走出民航班机的舱门止遭受意外伤害事故导致身故的,本公司一次性给付身故保险金260万元,保险责任终止。",
"sum_insured":{
"sum_insured_type":"MONEY_LIST",
"default_value":20000,
"min_value":0,
"max_value":100000000,
"sum_insureds":[
50000
]
},
"liability_no":"100193",
"coverage":"1000000",
"iop":"1",
"premium":"880000",
"options":[{
"coverage":"xxx",
"coverage_text":"yyy"
}],
"disabled":"0",
"liability_premium":"2000",
"iop_premium":"10000"
}]
},
"merchant":{
"name":"众安在线财产保险股份有限公司",
"short_name":"众安保险",
"service_phone":"4009999595"
},
"sp_code":"6120",
"resources":[{
"key":"insMustKnow",
"type":"text",
"name":"保险条款链接",
"value":"http://img02.taobaocdn.com/imgextra/i2/1124082407/TB288ERaFXXXXX_XpXXXXXXXXXX_!!1124082407.jpg"
}],
"tags":[{
"tag_code":"xxxx_code",
"tag_value":"xxxx_value"
}],
"sales":1000000,
"effect_date":"2017-10-10 23:00:00",
"prod_no":"250",
"liabilities":[{
"liability_name":"飞机乘客意外伤害身故",
"liability_desc":"在保险期间内,如果被保险人持有效客票乘坐合法经营客运业务的民航班机自通过机场安全检查时起至抵达目的地走出民航班机的舱门止遭受意外伤害事故导致身故的,本公司一次性给付身故保险金260万元,保险责任终止。",
"sum_insured":{
"sum_insured_type":"MONEY_LIST",
"default_value":20000,
"min_value":0,
"max_value":100000000,
"sum_insureds":[
50000
]
},
"liability_no":"100193",
"coverage":"1000000",
"iop":"1",
"premium":"880000",
"options":[{
"coverage":"xxx",
"coverage_text":"yyy"
}],
"disabled":"0",
"liability_premium":"2000",
"iop_premium":"10000"
}],
"total_premium":"880000",
"real_premium":"680000",
"reduce_premium":"100000",
"invalid_date":"2017-09-22 16:48:48"
},
"quote_type":"1",
"check_type":"0",
"company_id":"xxxx",
"check_code":"xxx",
"check_code_id":"xxx"
}
//为确保安全通信,需自行验证响应示例中的sign值是否为蚂蚁金服所提供。