alipay.baoxian.qwyfx.product.recommend (全网运费险开放推荐接口)

全网运费险开放推荐接口

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
ins_user_qwyfx_recommend_info_request InsUserQwyfxRecommendInfoRequest 可选 推荐请求信息
  • └ prod_no
  • String
  • 可选
  • 21142
  • 机构产品编码
  • └ sale_out_no
  • String
  • 可选
  • 2114105
  • 销售单元外部编号
  • └ biz_code
  • String
  • 必须
  • wyg_guide
  • 业务编码
  • └ sp_no
  • String
  • 必须
  • 21141
  • 标准产品编码
  • └ entrance
  • String
  • 可选
  • cainiao
  • 渠道
  • └ user_id
  • Number
  • 必须
  • 3866001974
  • 用户id
  • └ alipay_user_id
  • String
  • 可选
  • 2088302763034833
  • 支付宝id
  • └ user_type
  • String
  • 必须
  • TAOBAO
  • 用户类型:TAOBAO,ALIPAY
  • └ marketing_scene_code
  • String
  • 必须
  • qwyfx_cainiao_promotion
  • 营销场景码,可以识别菜鸟渠道

响应参数

名称 类型 示例值 描述
qwyfx_success Boolean true 是否调用成功,true是成功
qwyfx_error_code String -1 错误码
model InsUserQwyfxRecommendInfoResponse 返回推荐数据
  • ins_rights_list
  • InsRights []
  • 权益对象列表
  • └ unit
  • String
  • 单位
  • └ name
  • String
  • 运费减首重
  • 券权益名称
  • └ count
  • Number
  • 1
  • 券权益数量
  • └ type
  • String
  • YFX_WYG_DISCOUNT
  • 无忧购权益-固定值
  • └ desc
  • String
  • 运费减首重
  • 券权益描述
  • └ sale_out_no
  • String
  • 2114105
  • 销售单元
  • ins_quote_result
  • InsQuoteResultDTO
  • 询价对象
  • discount_list
  • DiscountDTO []
  • 折扣信息
  • └ discount_amount
  • Number
  • 500
  • 折扣金额
  • └ discount_type
  • String
  • 抵扣
  • 折扣类型
  • └ discount_rate
  • String
  • 0.1
  • 折扣费率
  • └ coupon_id
  • String
  • 12322
  • 营销权益id
  • └ coupon_type
  • String
  • xx
  • 营销权益类型
  • └ actual_coupon_value
  • String
  • 12
  • 实际使用权益值
  • └ biz_data
  • String
  • {}
  • 扩展字段
  • └ quote_premium
  • Number
  • 990
  • 返回保费
  • └ origin_price
  • Number
  • 990
  • 原价
  • discount_cash
  • Money
  • 优惠保费
  • └ amount
  • BigDecimal
  • 0
  • 金额以元为单位
  • └ cent_factor
  • Number
  • 100
  • 本货币币种的元/分换算比率
  • └ cent
  • Number
  • 0
  • 金额以分为单位
  • └ display_unit
  • String
  • 展示单位
  • └ currency_code
  • String
  • CNY
  • 币种编码
  • └ quote_id
  • String
  • 20220920000831010001083301183519
  • 询价id
  • └ sum_insured
  • Number
  • 202200
  • 保额
  • └ extend_map
  • String
  • {}
  • 扩展字段
  • quote_amount
  • Money
  • 返回保费
  • └ amount
  • BigDecimal
  • 9.9
  • 金额,以元为单位。
  • └ cent_factor
  • Number
  • 100
  • 本货币币种的元/分换算比率
  • └ cent
  • Number
  • 990
  • 金额数,以分为单位。
  • └ display_unit
  • String
  • 显示用的单位,比如“元”,“美元”
  • └ currency_code
  • String
  • CNY
  • 获取本货币对象代表的币种代码
  • └ discount_id
  • String
  • 123223
  • 优惠单号
  • show_premium
  • Money
  • 优惠后的保费
  • └ amount
  • BigDecimal
  • 9.9
  • 金额以元为单位
  • └ cent_factor
  • Number
  • 100
  • 本货币币种的元/分换算比率
  • └ cent
  • Number
  • 990
  • 金额以分为单位
  • └ display_unit
  • String
  • 展示单位
  • └ currency_code
  • String
  • CNY
  • 币种编码
  • └ csu_name
  • String
  • 入门版
  • 销售单元名称
  • └ sp_no
  • String
  • 21141
  • 标准产品编码
  • └ product_no
  • String
  • 21142
  • 机构产品编码
  • └ product_name
  • String
  • 全网运费险
  • 产品名称
error_msg String true 是否成功
is_success Boolean -1 错误信息

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AlipayBaoxianQwyfxProductRecommendRequest req = new AlipayBaoxianQwyfxProductRecommendRequest();
AlipayBaoxianQwyfxProductRecommendRequest.InsUserQwyfxRecommendInfoRequest obj1 = new AlipayBaoxianQwyfxProductRecommendRequest.InsUserQwyfxRecommendInfoRequest();
obj1.setProdNo("21142");
obj1.setSaleOutNo("2114105");
obj1.setBizCode("wyg_guide");
obj1.setSpNo("21141");
obj1.setEntrance("cainiao");
obj1.setUserId(3866001974L);
obj1.setAlipayUserId("2088302763034833");
obj1.setUserType("TAOBAO");
obj1.setMarketingSceneCode("qwyfx_cainiao_promotion");
req.setInsUserQwyfxRecommendInfoRequest(obj1);
AlipayBaoxianQwyfxProductRecommendResponse rsp = client.execute(req);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<alipay_baoxian_qwyfx_product_recommend_response>
    <qwyfx_success>true</qwyfx_success>
    <qwyfx_error_code>-1</qwyfx_error_code>
    <model>
        <ins_rights_list>
            <ins_rights>
                <unit>元</unit>
                <name>运费减首重</name>
                <count>1</count>
                <type>YFX_WYG_DISCOUNT</type>
                <desc>运费减首重</desc>
            </ins_rights>
        </ins_rights_list>
        <sale_out_no>2114105</sale_out_no>
        <ins_quote_result>
            <discount_list>
                <discount_d_t_o>
                    <discount_amount>500</discount_amount>
                    <discount_type>抵扣</discount_type>
                    <discount_rate>0.1</discount_rate>
                    <coupon_id>12322</coupon_id>
                    <coupon_type>xx</coupon_type>
                    <actual_coupon_value>12</actual_coupon_value>
                    <biz_data>{}</biz_data>
                </discount_d_t_o>
            </discount_list>
            <quote_premium>990</quote_premium>
            <origin_price>990</origin_price>
            <discount_cash>
                <amount>0</amount>
                <cent_factor>100</cent_factor>
                <cent>0</cent>
                <display_unit>元</display_unit>
                <currency_code>CNY</currency_code>
            </discount_cash>
            <quote_id>20220920000831010001083301183519</quote_id>
            <sum_insured>202200</sum_insured>
            <extend_map>{}</extend_map>
            <quote_amount>
                <amount>9.9</amount>
                <cent_factor>100</cent_factor>
                <cent>990</cent>
                <display_unit>元</display_unit>
                <currency_code>CNY</currency_code>
            </quote_amount>
            <discount_id>123223</discount_id>
            <show_premium>
                <amount>9.9</amount>
                <cent_factor>100</cent_factor>
                <cent>990</cent>
                <display_unit>元</display_unit>
                <currency_code>CNY</currency_code>
            </show_premium>
        </ins_quote_result>
        <csu_name>入门版</csu_name>
        <sp_no>21141</sp_no>
        <product_no>21142</product_no>
        <product_name>全网运费险</product_name>
    </model>
    <error_msg>true</error_msg>
    <is_success>-1</is_success>
</alipay_baoxian_qwyfx_product_recommend_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

返回
顶部