文档中心 > API类目 > 飞猪商家平台

alitrip.merchant.galaxy.activity.marketing.popup (营销弹屏)

星河=活动营销弹屏

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
tenant_key String 必须 10006373010 租户id
token String 可选 OnIRUAfOoYXzO3BQv/INEjB1jzHHqEvtRlYQrcLTrXM/69HByzhLivohAHTHuh5wCeMfwvrVEz09fvEIBmYT/irmh2EVZ7fbSjd6Yg4866EHfHfEzvEOSnHNrzJ1Denv7zdstCLmdjbRyGGuk4oYo+ia2dzFCqm1ZWZpNvFiKxI= 用户token
code String 可选 123 用户code
version String 可选 2 版本,适配灰度发布

响应参数

名称 类型 示例值 描述
result Response 默认描述
  • └ success
  • Boolean
  • true
  • 是否成功
  • └ error_code
  • String
  • error
  • 错误代码
  • content
  • PopUpInfoVO
  • 返回结果
  • activity_draw_popup
  • ActivityDrawPopupVo
  • 抽奖弹屏
  • └ popup_type
  • Number
  • 1
  • 抽奖类型
  • └ popup_do_text
  • String
  • 立即抽奖
  • 弹窗点击文本
  • └ popup_title
  • String
  • 注册雅高会员
  • 标题
  • └ popup_sub_text
  • String
  • 还有1次抽奖机会
  • 文本
  • └ top_title
  • String
  • 新/人/礼/遇
  • 头部标题
  • └ offer_id
  • String
  • demo
  • 活动id
  • └ popup_exit_text
  • String
  • 暂不抽奖
  • 弹窗文本
  • └ popup_text
  • String
  • 弹窗文本
  • 文本
  • └ title
  • String
  • 商品抽奖券
  • 标题
  • pop_up
  • PopUpVo
  • 活动弹窗
  • └ pop_up_redirect_url
  • String
  • 111
  • 弹屏跳转链接
  • └ pop_up_url
  • String
  • 1112
  • 弹屏图片
  • └ offer_id
  • Number
  • 11
  • 活动id
  • └ type
  • String
  • coupon
  • 弹屏类型
  • coupon_activity_pop_up
  • CouponActivityPopUpVo
  • 优惠券弹屏
  • coupon_template_v_o_list
  • DisplayCouponTemplateVo []
  • 优惠券模板
  • └ condition_amount
  • String
  • String
  • 使用门槛
  • └ discount_amount
  • String
  • 50
  • 面额
  • └ coupon_template_id
  • Number
  • 1
  • 优惠券模板id
  • └ coupon_name
  • String
  • 优惠券
  • 优惠券名称
  • └ condition_desc
  • String
  • 优惠券
  • 使用条件描述
  • └ detail_desc
  • String
  • 优惠券
  • 详细描述
  • └ expired_time_day
  • Number
  • 11111
  • 领取优惠券后的过期时间
  • └ expired_time_hour
  • Number
  • 11111
  • 领取优惠券后的过期时间
  • └ expired_time_min
  • Number
  • 11111
  • 领取优惠券后的过期时间
  • └ book_start_time
  • String
  • 2022-10-10
  • 优惠券预订开始时间
  • └ book_end_time
  • String
  • 2022-10-10
  • 优惠券预订结束时间
  • └ check_in_time
  • String
  • 2022-10-10
  • 允许入住开始时间
  • └ check_out_time
  • String
  • 2022-10-10
  • 允许入住结束时间
  • └ total_amount
  • Number
  • 100
  • 优惠券总数量
  • └ received_amount
  • Number
  • 99
  • 已领取数量
  • └ left_amount
  • Number
  • 1
  • 优惠券剩余数量
  • └ status
  • String
  • 0
  • 关联状态
  • └ relate_activity_id_list
  • Number []
  • 关联活动id
  • replace_rp_code
  • ReplaceRpCode
  • 关联商品
  • └ replace_rp_code
  • String
  • 111
  • 代替后商品
  • └ orig_rp_code
  • String
  • 222
  • 原价商品
  • └ expired_time
  • String
  • 2022-10-10
  • 优惠券过期时间
  • └ coupon_type
  • String
  • string
  • 优惠券类型
  • └ pm_activity_id
  • Number
  • 11
  • 活动id
  • └ home_page_popup
  • String
  • 1
  • 1
  • └ details_page_picture
  • String
  • 1
  • 1
  • └ error_msg
  • String
  • error
  • 错误信息

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AlitripMerchantGalaxyActivityMarketingPopupRequest req = new AlitripMerchantGalaxyActivityMarketingPopupRequest();
req.setTenantKey("10006373010");
req.setToken("OnIRUAfOoYXzO3BQv/INEjB1jzHHqEvtRlYQrcLTrXM/69HByzhLivohAHTHuh5wCeMfwvrVEz09fvEIBmYT/irmh2EVZ7fbSjd6Yg4866EHfHfEzvEOSnHNrzJ1Denv7zdstCLmdjbRyGGuk4oYo+ia2dzFCqm1ZWZpNvFiKxI=");
req.setCode("123");
req.setVersion("2");
AlitripMerchantGalaxyActivityMarketingPopupResponse rsp = client.execute(req);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<alitrip_merchant_galaxy_activity_marketing_popup_response>
    <result>
        <success>true</success>
        <error_code>error</error_code>
        <content>
            <activity_draw_popup>
                <popup_type>1</popup_type>
                <popup_do_text>立即抽奖</popup_do_text>
                <popup_title>注册雅高会员</popup_title>
                <popup_sub_text>还有1次抽奖机会</popup_sub_text>
                <top_title>新/人/礼/遇</top_title>
                <offer_id>demo</offer_id>
                <popup_exit_text>暂不抽奖</popup_exit_text>
                <popup_text>弹窗文本</popup_text>
                <title>商品抽奖券</title>
            </activity_draw_popup>
            <pop_up>
                <pop_up_redirect_url>111</pop_up_redirect_url>
                <pop_up_url>1112</pop_up_url>
                <offer_id>11</offer_id>
            </pop_up>
            <type>coupon</type>
            <coupon_activity_pop_up>
                <coupon_template_v_o_list>
                    <display_coupon_template_vo>
                        <condition_amount>String</condition_amount>
                        <discount_amount>50</discount_amount>
                        <coupon_template_id>1</coupon_template_id>
                        <coupon_name>优惠券</coupon_name>
                        <condition_desc>优惠券</condition_desc>
                        <detail_desc>优惠券</detail_desc>
                        <expired_time_day>11111</expired_time_day>
                        <expired_time_hour>11111</expired_time_hour>
                        <expired_time_min>11111</expired_time_min>
                        <book_start_time>2022-10-10</book_start_time>
                        <book_end_time>2022-10-10</book_end_time>
                        <check_in_time>2022-10-10</check_in_time>
                        <check_out_time>2022-10-10</check_out_time>
                        <total_amount>100</total_amount>
                        <received_amount>99</received_amount>
                        <left_amount>1</left_amount>
                        <status>0</status>
                        <relate_activity_id_list>
                            <number></number>
                        </relate_activity_id_list>
                        <replace_rp_code>
                            <replace_rp_code>111</replace_rp_code>
                            <orig_rp_code>222</orig_rp_code>
                        </replace_rp_code>
                        <expired_time>2022-10-10</expired_time>
                        <coupon_type>string</coupon_type>
                    </display_coupon_template_vo>
                </coupon_template_v_o_list>
                <pm_activity_id>11</pm_activity_id>
                <home_page_popup>1</home_page_popup>
                <details_page_picture>1</details_page_picture>
            </coupon_activity_pop_up>
        </content>
        <error_msg>error</error_msg>
    </result>
</alitrip_merchant_galaxy_activity_marketing_popup_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

返回
顶部