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

taobao.film.fcode.export.query (券码数据导出查询)

券码数据导出查询

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
mix_id String 必须 code_8ebc4e741689bbc1 码商品混淆ID
partner_code String 必须 xuexiqiangguo 渠道编码
operate_type String 必须 ALL 操作类型(ALL-全量拉取,CONSUME-核销拉取)
params Json 可选 扩展参数

响应参数

名称 类型 示例值 描述
result ResultGeneralModel 系统自动生成
  • └ return_code
  • String
  • 0
  • 返回码
  • └ return_message
  • String
  • 返回码文案说明
  • return_value
  • FCodeExportResp
  • FCodeExportResp
  • FCodeExportResp
  • basic
  • FCodeExportBasic
  • FCodeExportBasic
  • FCodeExportBasic
  • └ bind_begin_time
  • Date
  • 2019-12-01 00:00:00
  • 绑定兑换开始时间
  • └ coupon_expire_time
  • Date
  • 2019-12-02 23:59:59
  • 券码过期时间(不允许绑定)
  • └ denomination
  • Number
  • 400
  • 面值(单位:分)
  • └ max_bind_count
  • Number
  • 4
  • 用户可绑定最大数量限制(空不限制)
  • └ mix_id
  • String
  • code_8ebc4e741689bbc1
  • 混淆ID
  • └ name
  • String
  • 淘票票示例活动
  • 名称
  • └ total_count
  • Number
  • 100
  • 券码总数量
  • └ valid_days
  • Number
  • 1
  • 有效天数
  • └ valid_duration_type
  • String
  • DAY
  • 券码有效期类型(GENERAL-固定日期、DAY-有效天数)
  • └ description
  • String
  • 券码描述
  • 券码描述
  • coupon_list
  • FCodeInfo []
  • FCodeInfo
  • FCodeInfo
  • └ code
  • String
  • 2X2QFKTZD2K
  • 优惠券明码
  • └ code_status
  • Number
  • 2
  • 券码状态(-2:已失效,-1:过期,0:正常,2:核销)
  • └ gmt_modified
  • Date
  • 2019-12-02 23:59:59
  • 券变更时间
  • └ bind_status
  • Number
  • -1
  • 绑定状态(-1:未绑定,0:已绑定)
  • └ has_next
  • Boolean
  • true
  • 是否存在下一页
  • └ last_sequence
  • Number
  • 1
  • 分页游标参数
  • └ current_rows
  • Number
  • 100
  • 当前返回数量

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
FilmFcodeExportQueryRequest req = new FilmFcodeExportQueryRequest();
req.setMixId("code_8ebc4e741689bbc1");
req.setPartnerCode("xuexiqiangguo");
req.setOperateType("ALL");
req.setParamsString("");
FilmFcodeExportQueryResponse rsp = client.execute(req, sessionKey);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<film_fcode_export_query_response>
    <result>
        <return_code>0</return_code>
        <return_message></return_message>
        <return_value>
            <basic>
                <bind_begin_time>2019-12-01 00:00:00</bind_begin_time>
                <coupon_expire_time>2019-12-02 23:59:59</coupon_expire_time>
                <denomination>400</denomination>
                <max_bind_count>4</max_bind_count>
                <mix_id>code_8ebc4e741689bbc1</mix_id>
                <name>淘票票示例活动</name>
                <total_count>100</total_count>
                <valid_days>1</valid_days>
                <valid_duration_type>DAY</valid_duration_type>
                <description>券码描述</description>
            </basic>
            <coupon_list>
                <f_code_info>
                    <code>2X2QFKTZD2K</code>
                    <code_status>2</code_status>
                    <gmt_modified>2019-12-02 23:59:59</gmt_modified>
                    <bind_status>-1</bind_status>
                </f_code_info>
            </coupon_list>
            <has_next>true</has_next>
            <last_sequence>1</last_sequence>
            <current_rows>100</current_rows>
        </return_value>
    </result>
</film_fcode_export_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

返回
顶部