文档中心 > API类目 > 电影票API

taobao.film.lottery.performance.config.query (淘票票履约活动配置查询)

三方渠道合作,查询活动信息,尤其是库存信息

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
performance_query_config_param PerformanceQueryConfigParam 必须 查询参数
  • └ spread_id
  • String
  • 必须
  • prizePool_bkop558uhmi213ixredo4cjeqcrufx1bgglkt
  • 活动ID
  • └ biz_ext_info
  • String
  • 可选
  • {}
  • 拓展信息
  • └ platform
  • Number
  • 必须
  • 8
  • 渠道

响应参数

名称 类型 示例值 描述
return_value PerformanceQueryConfigResult 返回值
  • └ name
  • String
  • 三方合作发券
  • 活动名称
  • └ status
  • Number
  • 1
  • 活动状态(1-上架、2-下架)
  • segment_infos
  • PerformanceSegmentInfoDTO []
  • 分时段库存信息
  • └ start_time
  • String
  • 2025-07-04 00:00:00
  • 开始时间
  • └ end_time
  • String
  • 2025-09-30 23:59:59
  • 结束时间
  • └ win_times
  • Number
  • 2000
  • 本时段库存
  • └ consumed_win_times
  • Number
  • 0
  • 该时段已消耗库存
return_message String 成功 错误原因
return_code String 0 错误码,0表示成功

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
FilmLotteryPerformanceConfigQueryRequest req = new FilmLotteryPerformanceConfigQueryRequest();
FilmLotteryPerformanceConfigQueryRequest.PerformanceQueryConfigParam obj1 = new FilmLotteryPerformanceConfigQueryRequest.PerformanceQueryConfigParam();
obj1.setSpreadId("prizePool_bkop558uhmi213ixredo4cjeqcrufx1bgglkt");
obj1.setBizExtInfo("{}");
obj1.setPlatform(8L);
req.setPerformanceQueryConfigParam(obj1);
FilmLotteryPerformanceConfigQueryResponse rsp = client.execute(req);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<film_lottery_performance_config_query_response>
    <return_value>
        <name>三方合作发券</name>
        <status>1</status>
        <segment_infos>
            <performance_segment_info_d_t_o>
                <start_time>2025-07-04 00:00:00</start_time>
                <end_time>2025-09-30 23:59:59</end_time>
                <win_times>2000</win_times>
                <consumed_win_times>0</consumed_win_times>
            </performance_segment_info_d_t_o>
        </segment_infos>
    </return_value>
    <return_message>成功</return_message>
    <return_code>0</return_code>
</film_lottery_performance_config_query_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

返回
顶部