文档中心 > API类目 > 飞猪酒店签约中心

alitrip.hotel.hms.taobao.account.fetch (获取酒店子淘宝账号)

获取一个未被消费过的淘宝账号

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
fetch_account_param FetchAccountParam 必须 fetchAccount入参
  • └ biz_name
  • String
  • 必须
  • EBK获取子账号的淘宝账号
  • 业务名称

响应参数

名称 类型 示例值 描述
result HmsTopResultSet 出参结果
  • └ error_code
  • String
  • 错误代码
  • └ error_msg
  • String
  • 错误信息
  • hoc_account
  • HocAccount
  • 子账号实体
  • └ consumed
  • Boolean
  • 是否被消费
  • └ enable
  • Boolean
  • 是否生效
  • └ password
  • String
  • 账号初始密码
  • └ username
  • String
  • 账号名称
  • └ success
  • Boolean
  • 操作是否成功

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AlitripHotelHmsTaobaoAccountFetchRequest req = new AlitripHotelHmsTaobaoAccountFetchRequest();
AlitripHotelHmsTaobaoAccountFetchRequest.FetchAccountParam obj1 = new AlitripHotelHmsTaobaoAccountFetchRequest.FetchAccountParam();
obj1.setBizName("EBK获取子账号的淘宝账号");
req.setFetchAccountParam(obj1);
AlitripHotelHmsTaobaoAccountFetchResponse rsp = client.execute(req, sessionKey);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<alitrip_hotel_hms_taobao_account_fetch_response>
    <result>
        <error_code></error_code>
        <error_msg></error_msg>
        <hoc_account>
            <consumed></consumed>
            <enable></enable>
            <password></password>
            <username></username>
        </hoc_account>
        <success></success>
    </result>
</alitrip_hotel_hms_taobao_account_fetch_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

返回
顶部