文档中心 > API类目 > 天猫好房营销API

alibaba.alihouse.marketing.merchant.coupon.activity.list (商家卡券活动列表查询)

商家卡券活动列表查询

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
etc_coupon_activity_query_dto ETCCouponActivityQueryDTO 必须 入参
  • └ biz_type
  • String
  • 可选
  • rent_home
  • 业务类型
  • └ coupon_category
  • Number
  • 可选
  • 2
  • /** * 卡券分类(活动类型) * 1:店铺券 * 2:商品券 */
  • └ coupon_type
  • Number
  • 可选
  • 1
  • 活动类型
  • └ delivery_scene
  • Number
  • 可选
  • 1
  • 投放场景
  • └ page_no
  • Number
  • 必须
  • 1
  • 当前分页
  • └ page_size
  • Number
  • 必须
  • 20
  • 分页大小
  • └ promotion_scene
  • Number
  • 可选
  • 3
  • 优惠场景(线下码券业务场景) 3:到访礼 4:佣金优惠
  • └ outer_supplier_id
  • Number
  • 可选
  • 421312
  • 供应者ID
  • └ supplier_type
  • Number
  • 可选
  • 2
  • 供应者类型
  • └ activity_id_list
  • Number []
  • 可选
  • [100105]
  • 活动id列表
etc_coupon_activity_query_option ETCCouponActivityQueryOption 可选 查询扩展字段
  • └ is_contain_coupon_issued_and_consumed
  • Boolean
  • 可选
  • true
  • 是否需要查找券实例已发放数量&已核销数量
  • └ is_contain_participate_group_info
  • Boolean
  • 可选
  • false
  • 是否需要查找券模板圈品信息

响应参数

名称 类型 示例值 描述
result Result 返回结果
  • └ msg
  • String
  • 成功
  • 返回信息
  • └ code
  • String
  • success
  • 返回码
  • data
  • PageCommon
  • 分页信息
  • └ total
  • Number
  • 100
  • 总数
  • └ page_no
  • Number
  • 1
  • 当前分页
  • └ page_size
  • Number
  • 20
  • 分页数量
  • list
  • ETCCouponActivityDTO []
  • 卡券活动列表信息
  • └ discount_rate
  • Number
  • 99
  • 折扣率
  • └ upper_limit_amount
  • Number
  • 10000
  • /** * 多次核销扣减上限(封顶金额) */
  • └ promotion_type
  • Number
  • 3
  • /** * 优惠类型 * 3:折扣率 * 4:满减 */
  • └ biz_type
  • String
  • rent_home
  • 业务类型 ● "new_home": 新房 ● "existing_home":二手房 ● "rent_home": 租房
  • coupon_template_config_context
  • ETCCouponTemplateConfigContextDTO
  • 扩展信息
  • └ spread_end_time
  • String
  • 2022-12-07 14:13:57
  • 领取结束时间
  • └ expire_time
  • String
  • 2022-12-07 14:13:57
  • 有效期至(生效时间)
  • └ time_mode
  • Number
  • 1
  • 有效时间类型(固定有效时间/相对当前时间/相对指定时间)
  • └ spread_start_time
  • String
  • 2022-12-07 14:13:57
  • 领取开始时间
  • └ rent_promotion_price_type
  • Number
  • 1
  • /** * 租金优惠金额类型 * 1:租金 * 2:租客服务费(寄租) * 3:服务费(直租) */
  • └ rent_promotion_date_type
  • Number
  • 1
  • /** * 租金优惠期数类型 * 1:首期 * 2:末期 * 3:每期 */
  • └ effective_end_time
  • String
  • 2022-12-07 14:13:57
  • 活动结束时间
  • └ inventory
  • Number
  • 1000
  • 库存
  • use_rule_struct_list
  • UseRuleStruct []
  • 卡券使用门槛
  • └ type
  • Number
  • 1
  • 类型
  • use_rule
  • UseRule
  • 圈选范围
  • └ min
  • Number
  • 100000
  • 针对区间范围类型,若传金额,单位为分
  • └ max
  • Number
  • 200000
  • 针对区间范围类型,若传金额,单位为分
  • └ oper
  • String
  • in
  • 操作符
  • └ id_list
  • Number []
  • id列表
  • └ out_supplier_id
  • Number
  • 421312
  • 供应者ID
  • └ benefit
  • String
  • 利益点
  • 利益点
  • └ promotion_scene
  • Number
  • 3
  • 优惠场景(线下码券业务场景) 3:到访礼 4:佣金优惠
  • participate_group
  • ParticipateGroup
  • 圈品范围结构
  • └ common_store_id_list
  • Number []
  • 通用门店列表
  • participate_struct_list
  • ParticipateStruct []
  • 圈品结构列表
  • participate_id_list
  • ParticipateIdInfo []
  • 圈品ID列表
  • └ type
  • Number
  • 3
  • 区分是集中式还是分散式 2:小区 3:公寓
  • └ community_outer_id
  • String
  • 352331
  • /** * 外部父节点ID * (例:圈品类型为小区时, 填外部小区ID) */
  • └ outer_id
  • String
  • 412312312
  • /** * 外部子节点ID * (例:圈品类型为小区房源时, 填外部小区房源ID, 同时填写外部小区ID) */
  • └ store_id
  • Number
  • 214123
  • 门店ID
  • └ type
  • Number
  • 1
  • 圈品类型
  • └ is_common_with_store
  • Boolean
  • true
  • 是否通用
  • └ effective_start_time
  • String
  • 2022-12-07 14:13:57
  • 活动开始时间
  • └ decrease_money
  • Number
  • 1000
  • 减多少钱 (单位分)
  • └ activity_id
  • Number
  • 512412
  • 活动ID
  • └ coupon_category
  • Number
  • 2
  • /** * 卡券分类(活动类型) * 1:店铺券 * 2:商品券 */
  • └ coupon_type
  • Number
  • 1
  • 活动类型
  • └ start_fee
  • Number
  • 2000
  • startFee (单位分)
  • coupon_template_rule_content
  • ETCCouponTemplateRuleContentDTO
  • 卡券传播规则
  • └ limit_uid_receive_num
  • Boolean
  • true
  • 是否限制
  • └ uid_receive_num
  • Number
  • 1
  • 限制数量
  • └ name
  • String
  • gz测试满减券
  • 名称
  • └ delivery_scene
  • Number
  • 1
  • 投放场景
  • └ supplier_type
  • Number
  • 2
  • 供应者类型
  • └ user_receive_num
  • Number
  • 0
  • 用户领取量
  • └ user_exchange_num
  • Number
  • 0
  • 用户核销数量
  • └ status
  • Number
  • 20
  • 状态
  • └ outer_adviser_id
  • String
  • 2022102497
  • 外部经纪人ID
  • └ success
  • Boolean
  • true
  • 返回结果

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AlibabaAlihouseMarketingMerchantCouponActivityListRequest req = new AlibabaAlihouseMarketingMerchantCouponActivityListRequest();
AlibabaAlihouseMarketingMerchantCouponActivityListRequest.ETCCouponActivityQueryDTO obj1 = new AlibabaAlihouseMarketingMerchantCouponActivityListRequest.ETCCouponActivityQueryDTO();
obj1.setBizType("rent_home");
obj1.setCouponCategory(2L);
obj1.setCouponType(1L);
obj1.setDeliveryScene(1L);
obj1.setPageNo(1L);
obj1.setPageSize(20L);
obj1.setPromotionScene(3L);
obj1.setOuterSupplierId(421312L);
obj1.setSupplierType(2L);
obj1.setActivityIdList(new Long[] { 100105 };
);
req.setEtcCouponActivityQueryDto(obj1);
AlibabaAlihouseMarketingMerchantCouponActivityListRequest.ETCCouponActivityQueryOption obj2 = new AlibabaAlihouseMarketingMerchantCouponActivityListRequest.ETCCouponActivityQueryOption();
obj2.setIsContainCouponIssuedAndConsumed(true);
obj2.setIsContainParticipateGroupInfo(false);
req.setEtcCouponActivityQueryOption(obj2);
AlibabaAlihouseMarketingMerchantCouponActivityListResponse rsp = client.execute(req, sessionKey);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<alibaba_alihouse_marketing_merchant_coupon_activity_list_response>
    <result>
        <msg>成功</msg>
        <code>success</code>
        <data>
            <total>100</total>
            <page_no>1</page_no>
            <page_size>20</page_size>
            <list>
                <e_t_c_coupon_activity_d_t_o>
                    <discount_rate>99</discount_rate>
                    <upper_limit_amount>10000</upper_limit_amount>
                    <promotion_type>3</promotion_type>
                    <biz_type>rent_home</biz_type>
                    <coupon_template_config_context>
                        <spread_end_time>2022-12-07 14:13:57</spread_end_time>
                        <expire_time>2022-12-07 14:13:57</expire_time>
                        <time_mode>1</time_mode>
                        <spread_start_time>2022-12-07 14:13:57</spread_start_time>
                        <rent_promotion_price_type>1</rent_promotion_price_type>
                        <rent_promotion_date_type>1</rent_promotion_date_type>
                    </coupon_template_config_context>
                    <effective_end_time>2022-12-07 14:13:57</effective_end_time>
                    <inventory>1000</inventory>
                    <use_rule_struct_list>
                        <use_rule_struct>
                            <type>1</type>
                            <use_rule>
                                <min>100000</min>
                                <max>200000</max>
                                <oper>in</oper>
                            </use_rule>
                        </use_rule_struct>
                    </use_rule_struct_list>
                    <out_supplier_id>421312</out_supplier_id>
                    <benefit>利益点</benefit>
                    <promotion_scene>3</promotion_scene>
                    <participate_group>
                        <participate_struct_list>
                            <participate_struct>
                                <participate_id_list>
                                    <participate_id_info>
                                        <type>3</type>
                                        <community_outer_id>352331</community_outer_id>
                                        <outer_id>412312312</outer_id>
                                    </participate_id_info>
                                </participate_id_list>
                                <store_id>214123</store_id>
                                <type>1</type>
                            </participate_struct>
                        </participate_struct_list>
                        <is_common_with_store>true</is_common_with_store>
                    </participate_group>
                    <effective_start_time>2022-12-07 14:13:57</effective_start_time>
                    <decrease_money>1000</decrease_money>
                    <activity_id>512412</activity_id>
                    <coupon_category>2</coupon_category>
                    <coupon_type>1</coupon_type>
                    <start_fee>2000</start_fee>
                    <coupon_template_rule_content>
                        <limit_uid_receive_num>true</limit_uid_receive_num>
                        <uid_receive_num>1</uid_receive_num>
                    </coupon_template_rule_content>
                    <name>gz测试满减券</name>
                    <delivery_scene>1</delivery_scene>
                    <supplier_type>2</supplier_type>
                    <user_receive_num>0</user_receive_num>
                    <user_exchange_num>0</user_exchange_num>
                    <status>20</status>
                    <outer_adviser_id>2022102497</outer_adviser_id>
                </e_t_c_coupon_activity_d_t_o>
            </list>
        </data>
        <success>true</success>
    </result>
</alibaba_alihouse_marketing_merchant_coupon_activity_list_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

返回
顶部