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

taobao.film.fcode.merchant.send (淘宝电影外部商家发码)

淘宝电影外部商家发码

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
param_f_code_merchant_send_code_request FCodeMerchantSendCodeRequest 可选 外部商户发码请求
  • └ activity_id
  • Number
  • 可选
  • 11057
  • 发码活动ID
  • └ single_price
  • Number
  • 可选
  • 2500
  • 每个码单价(只对代金券有效)
  • └ each_num
  • Number
  • 可选
  • 1
  • 每个用户发码的数量
  • └ ext_order_id
  • String
  • 可选
  • 123456789042
  • 外部商户发码的外部业务号
  • └ partner_code
  • String
  • 可选
  • tfxenia
  • 外部商户标示
  • └ number
  • Number
  • 可选
  • 1
  • 发码总数
  • └ feature
  • String
  • 可选
  • suesu
  • 请求属性字段
  • └ user_id_list
  • String
  • 可选
  • 3649052181
  • 淘宝用户ID列表,用|分割
  • └ product_id
  • Number
  • 可选
  • 123
  • 发码产品ID(非必填)
  • └ out_uid
  • String
  • 可选
  • uid-333
  • 外部业务用户id
  • └ out_user_name
  • String
  • 可选
  • usernamexxxxx
  • 外面用户昵称
  • └ order_time
  • String
  • 可选
  • 2015-06-07 00:00:00
  • 外部下单时间
  • └ product_mix_id
  • String
  • 可选
  • a12b345678def9
  • product_mix_id

响应参数

名称 类型 示例值 描述
return_code String 0 服务返回出参
return_message String success 调用信息
return_value FCodeMerchantSendCodeResponse 返回具体结果
  • f_code_merchant_info_list
  • Fcodemerchantinfolist []
  • 码对外信息描述列表
  • fcode_merchant_info
  • FCodeMerchantInfo
  • 码对外信息描述
  • └ gmt_expire
  • Date
  • 2015-03-23 10:07:48
  • 码过期时间
  • └ cost_price
  • Number
  • 123
  • 码可抵用金额
  • └ user_id
  • Number
  • 123
  • 拥有者淘宝ID
  • └ code
  • String
  • demo
  • 码值
  • └ gen_task_id
  • Number
  • 123
  • 码生成任务ID

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
FilmFcodeMerchantSendRequest req = new FilmFcodeMerchantSendRequest();
FCodeMerchantSendCodeRequest obj1 = new FCodeMerchantSendCodeRequest();
obj1.setActivityId(11057L);
obj1.setSinglePrice(2500L);
obj1.setEachNum(4L);
obj1.setExtOrderId("123456789042");
obj1.setPartnerCode("tfxenia");
obj1.setNumber(4L);
obj1.setFeature("suesu");
obj1.setUserIdList("3649052181");
obj1.setProductId(264L);
obj1.setOutUid("uid-333");
obj1.setOutUserName("usernamexxxxx");
obj1.setOrderTime("2015-06-07 00:00:00");
obj1.setProductMixId("1");
req.setParamFCodeMerchantSendCodeRequest(obj1);
FilmFcodeMerchantSendResponse rsp = client.execute(req);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<film_fcode_merchant_send_response>
    <return_code>0</return_code>
    <return_message>success</return_message>
    <return_value>
        <f_code_merchant_info_list>
            <fcodemerchantinfolist>
                <fcode_merchant_info>
                    <gmt_expire>2015-03-23 10:07:48</gmt_expire>
                    <cost_price>123</cost_price>
                    <user_id>123</user_id>
                    <code>demo</code>
                    <gen_task_id>123</gen_task_id>
                </fcode_merchant_info>
            </fcodemerchantinfolist>
        </f_code_merchant_info_list>
    </return_value>
</film_fcode_merchant_send_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

返回
顶部