文档中心 > API类目 > 旅行度假API

taobao.fliggy.travel.promotion.apply (飞猪营销平台发奖接口,用户飞猪营销平台领券)

飞猪营销平台发奖接口,用户飞猪营销平台领券

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
param0 FliggyPromotionApplyRequest 可选 请求参数对象
  • └ channel
  • String
  • 必须
  • ubr5fu
  • 渠道标识
  • └ sub_act_id
  • Number
  • 必须
  • 10101
  • 飞猪营销平台子活动ID
  • └ biz_key
  • String
  • 必须
  • qwertqetq123
  • 业务唯一师表Key,用作领券幂等ID
  • └ alipay_user_id
  • String
  • 可选
  • 1103945
  • 支付宝用户ID

响应参数

名称 类型 示例值 描述
exception String exception 异常,本接口不需要
total_results Number totalResults totalResults,本接口不需要
e_code String ecode ecode
has_next Boolean hasNext hasNext,本接口不需要
results Boolean [] results结果对象,本接口不需要
error_msg String 系统异常 错误消息
is_success Boolean true;false 判断此参数,如果true表明业务处理成功,如果false表明业务处理失败,需要识别error_code

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
FliggyTravelPromotionApplyRequest req = new FliggyTravelPromotionApplyRequest();
FliggyTravelPromotionApplyRequest.FliggyPromotionApplyRequest obj1 = new FliggyTravelPromotionApplyRequest.FliggyPromotionApplyRequest();
obj1.setChannel("ubr5fu");
obj1.setSubActId(10101L);
obj1.setBizKey("qwertqetq123");
obj1.setAlipayUserId("1103945");
req.setParam0(obj1);
FliggyTravelPromotionApplyResponse rsp = client.execute(req);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<fliggy_travel_promotion_apply_response>
    <exception>exception</exception>
    <total_results>totalResults</total_results>
    <e_code>ecode</e_code>
    <has_next>hasNext</has_next>
    <error_msg>系统异常</error_msg>
    <is_success>true;false</is_success>
</fliggy_travel_promotion_apply_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

返回
顶部