文档中心 > API类目 > 飞猪-菲住联盟

alitrip.futurehotel.haorder.notify.subscribe (菲住联盟渠道通知订阅)

飞猪-菲住联盟迁移,渠道通知订阅

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
param_notify_accredit_info_request NotifyAccreditInfoRequest 可选 渠道通知订阅请求对象
  • └ accredit_id
  • String
  • 可选
  • 1001
  • 授权id
  • └ channel
  • Number
  • 可选
  • 1
  • 渠道类型
  • └ order_id
  • Number
  • 可选
  • 1121321
  • 订单号
  • └ out_user_id
  • String
  • 可选
  • 121131
  • 微信openId/支付宝id
  • └ trace_id
  • String
  • 可选
  • 132432
  • 链路id
  • └ types
  • String []
  • 可选
  • [1,2]
  • 消息类型
  • └ user_id
  • Number
  • 可选
  • 3232
  • 用户id

响应参数

名称 类型 示例值 描述
result NotifyAccreditInfoResponse 服务出参 系统自动生成
  • └ fh_code
  • String
  • 200
  • 系统自动生成
  • └ fh_msg
  • String
  • 成功
  • 系统自动生成
  • └ fh_success
  • Boolean
  • true
  • 系统自动生成

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AlitripFuturehotelHaorderNotifySubscribeRequest req = new AlitripFuturehotelHaorderNotifySubscribeRequest();
AlitripFuturehotelHaorderNotifySubscribeRequest.NotifyAccreditInfoRequest obj1 = new AlitripFuturehotelHaorderNotifySubscribeRequest.NotifyAccreditInfoRequest();
obj1.setAccreditId("1001");
obj1.setChannel(1L);
obj1.setOrderId(1121321L);
obj1.setOutUserId("121131");
obj1.setTraceId("132432");
obj1.setTypes("1,2");
obj1.setUserId(3232L);
req.setParamNotifyAccreditInfoRequest(obj1);
AlitripFuturehotelHaorderNotifySubscribeResponse rsp = client.execute(req);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<alitrip_futurehotel_haorder_notify_subscribe_response>
    <result>
        <fh_code>200</fh_code>
        <fh_msg>成功</fh_msg>
        <fh_success>true</fh_success>
    </result>
</alitrip_futurehotel_haorder_notify_subscribe_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

返回
顶部