文档中心 > API类目 > 酒店会员API

taobao.xhotel.member.alipay.query (希尔顿会员查询)

希尔顿会员查询

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
alipay_user_id Number 必须 123245 支付宝id
fpt String 必须 ftid(09428) 渠道

响应参数

名称 类型 示例值 描述
result HMemberResult 结果
  • module
  • MerchantMemberBindInfoVO
  • 数据
  • └ fpt
  • String
  • ftid(09428)
  • 渠道
  • └ status
  • Boolean
  • true
  • 是否完成任务
  • └ time
  • String
  • yyyy-MM-dd HH:mm:ss
  • 注册时间
  • └ reason
  • String
  • 未注册/非支付宝端注册的会员
  • 1.未注册/非支付宝端注册的会员2.未注册成功3.非新会员
  • └ success
  • Boolean
  • true
  • 状态
  • └ result_code
  • String
  • B0001
  • 错误码
  • └ result_info
  • String
  • info
  • 信息

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
XhotelMemberAlipayQueryRequest req = new XhotelMemberAlipayQueryRequest();
req.setAlipayUserId(123245L);
req.setFpt("ftid(09428)");
XhotelMemberAlipayQueryResponse rsp = client.execute(req);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<xhotel_member_alipay_query_response>
    <result>
        <module>
            <fpt>ftid(09428)</fpt>
            <status>true</status>
            <time>yyyy-MM-dd HH:mm:ss</time>
            <reason>未注册/非支付宝端注册的会员</reason>
        </module>
        <success>true</success>
        <result_code>B0001</result_code>
        <result_info>info</result_info>
    </result>
</xhotel_member_alipay_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

返回
顶部