文档中心 > API类目 > 飞猪商家平台

alitrip.merchant.galaxy.trigger.event (抽奖活动自定义事件触发)

自定义事件触发

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
tenant_key String 可选 1 1
event_param EventParam 可选 触发事件入参
  • └ offer_id_list
  • Number []
  • 可选
  • 1
  • 活动 ID
  • └ event
  • String
  • 可选
  • 1
  • 触发事件
  • └ order_id_list
  • String []
  • 可选
  • 1
  • 订单 ID
  • └ hotel_id_list
  • String []
  • 可选
  • 1
  • 酒店 ID
  • └ token
  • String
  • 可选
  • 1
  • 用户 token

响应参数

名称 类型 示例值 描述
result Response 默认描述
  • └ success
  • Boolean
  • true
  • 是否成功
  • └ error_code
  • String
  • null
  • 状态码
  • content
  • EventCoupon
  • true
  • 消息体
  • └ whether_to_issue_coupons
  • Boolean
  • true
  • true
  • └ activity_name
  • String
  • 1
  • true
  • └ home_page_popup
  • String
  • 1
  • 1
  • └ details_page_picture
  • String
  • 1
  • 1
  • └ activity_id
  • Number
  • 1
  • 1
  • └ error_msg
  • String
  • null
  • 状态信息

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AlitripMerchantGalaxyTriggerEventRequest req = new AlitripMerchantGalaxyTriggerEventRequest();
req.setTenantKey("1");
AlitripMerchantGalaxyTriggerEventRequest.EventParam obj1 = new AlitripMerchantGalaxyTriggerEventRequest.EventParam();
obj1.setOfferIdList(new Long[] { 1 };
);
obj1.setEvent("1");
obj1.setOrderIdList("1");
obj1.setHotelIdList("1");
obj1.setToken("1");
req.setEventParam(obj1);
AlitripMerchantGalaxyTriggerEventResponse rsp = client.execute(req);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<alitrip_merchant_galaxy_trigger_event_response>
    <result>
        <success>true</success>
        <error_code>null</error_code>
        <content>
            <whether_to_issue_coupons>true</whether_to_issue_coupons>
            <activity_name>1</activity_name>
            <home_page_popup>1</home_page_popup>
            <details_page_picture>1</details_page_picture>
            <activity_id>1</activity_id>
        </content>
        <error_msg>null</error_msg>
    </result>
</alitrip_merchant_galaxy_trigger_event_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

返回
顶部