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

alitrip.hotel.ebooking.account.mgentity.query (查询酒店或者卖家绑定实体列表)

查询酒店或者卖家绑定实体列表

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
query QueryManagementEntitiesDo 可选 query
  • └ management_entities_id
  • Number
  • 可选
  • 20762025316
  • 管理实体id
  • └ management_entities_name
  • String
  • 可选
  • 傅嘉妮测试酒店2
  • 管理实体名称
  • └ offset
  • Number
  • 可选
  • 100
  • 偏移量
  • └ partner_id1
  • Number
  • 可选
  • 7684326981
  • 合作商id
  • └ seller_id
  • Number
  • 可选
  • 3690432316
  • 卖家id
  • └ seller_tb_account
  • String
  • 可选
  • hwecautotest02
  • 授权账号
  • └ start_row
  • Number
  • 可选
  • 1
  • 开始行数
  • └ gmt_modified
  • Date
  • 可选
  • 2018-03-22 12:05:00
  • 修改时间
  • └ action_type
  • Number
  • 可选
  • 1
  • 查询表类型,0:查询seller_authority_management_entities,1:查询management_entities_delete_record

响应参数

名称 类型 示例值 描述
result TopResultSet result
  • └ error
  • Boolean
  • error
  • └ error_code
  • String
  • demo
  • errorCode
  • └ error_msg
  • String
  • demo
  • errorMsg
  • first_result
  • ManagementEntitiesResult
  • null
  • firstResult
  • management_entities_list
  • ManagementEntitiesDo []
  • null
  • 管理实体列表
  • └ account_type
  • String
  • 1
  • 账号类型
  • └ gmt_create
  • Date
  • 2017-03-08 16:15:38
  • 创建时间
  • └ gmt_modified
  • Date
  • 2017-08-02 14:38:30
  • 修改时间
  • └ id
  • Number
  • 87685
  • 记录主键
  • └ management_entities_id
  • Number
  • 20762025316
  • 管理实体id
  • └ management_entities_name
  • String
  • 傅嘉妮测试酒店2
  • 管理实体名称
  • └ memo
  • String
  • EBOOKING前台传入
  • 备注
  • └ notification_ways
  • String
  • null
  • 通知方式
  • notification_ways_d_o
  • NotificationWaysDo
  • null
  • 通知方式DO封装
  • └ emails
  • String []
  • null
  • 邮箱
  • └ faxs
  • String []
  • null
  • 传真
  • └ mobiles
  • String []
  • null
  • 电话
  • notify_all_setting
  • NotifyAllSetting
  • null
  • 通知方式设置
  • email_notify_all_setting_map
  • Emailnotifyallsettingmap
  • null
  • 邮箱通知方式设置
  • └ empty
  • Boolean
  • true
  • empty
  • fax_notify_all_setting_map
  • Faxnotifyallsettingmap
  • null
  • 传真通知方式设置
  • └ empty
  • Boolean
  • true
  • empty
  • mobile_notify_all_setting_map
  • Mobilenotifyallsettingmap
  • null
  • 电话通知方式设置
  • └ empty
  • Boolean
  • true
  • empty
  • └ operator
  • String
  • zander
  • 操作人
  • └ source
  • String
  • ebooking
  • 操作来源
  • telephone_notify_all_setting_map
  • Telephonenotifyallsettingmap
  • null
  • 手机通知方式设置
  • └ empty
  • Boolean
  • true
  • empty
  • └ operator
  • String
  • zander
  • 操作人
  • └ source
  • String
  • ebooking
  • 操作来源
  • └ telephones
  • String []
  • null
  • 手机
  • └ operator
  • String
  • zander
  • 操作人
  • └ partner_id
  • Number
  • null
  • 合作商id
  • └ seller_id
  • Number
  • 3690432316
  • 卖家id
  • └ seller_nick
  • String
  • htaautotest02
  • 卖家昵称
  • └ seller_tb_account
  • String
  • hwecautotest02
  • 授权账号
  • └ source
  • String
  • ebooking
  • 操作来源
  • └ status
  • Number
  • 1
  • 状态
  • └ type
  • Number
  • 10
  • 绑定资源类型
  • └ has_next
  • Boolean
  • hasNext
  • └ success
  • Boolean
  • success
  • └ total_results
  • Number
  • 1
  • totalResults
  • └ warn_message
  • String
  • 1
  • warnMessage

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AlitripHotelEbookingAccountMgentityQueryRequest req = new AlitripHotelEbookingAccountMgentityQueryRequest();
AlitripHotelEbookingAccountMgentityQueryRequest.QueryManagementEntitiesDo obj1 = new AlitripHotelEbookingAccountMgentityQueryRequest.QueryManagementEntitiesDo();
obj1.setManagementEntitiesId(20762025316L);
obj1.setManagementEntitiesName("傅嘉妮测试酒店2");
obj1.setOffset(100L);
obj1.setPartnerId1(7684326981L);
obj1.setSellerId(3690432316L);
obj1.setSellerTbAccount("hwecautotest02");
obj1.setStartRow(1L);
obj1.setGmtModified(StringUtils.parseDateTime("2018-03-22 12:05:00"));
obj1.setActionType(1L);
req.setQuery(obj1);
AlitripHotelEbookingAccountMgentityQueryResponse rsp = client.execute(req);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<alitrip_hotel_ebooking_account_mgentity_query_response>
    <result>
        <error></error>
        <error_code>demo</error_code>
        <error_msg>demo</error_msg>
        <first_result>
            <management_entities_list>
                <management_entities_do>
                    <account_type>1</account_type>
                    <gmt_create>2017-03-08 16:15:38</gmt_create>
                    <gmt_modified>2017-08-02 14:38:30</gmt_modified>
                    <id>87685</id>
                    <management_entities_id>20762025316</management_entities_id>
                    <management_entities_name>傅嘉妮测试酒店2</management_entities_name>
                    <memo>EBOOKING前台传入</memo>
                    <notification_ways>null</notification_ways>
                    <notification_ways_d_o>
                        <emails>
                            <string>null</string>
                        </emails>
                        <faxs>
                            <string>null</string>
                        </faxs>
                        <mobiles>
                            <string>null</string>
                        </mobiles>
                        <notify_all_setting>
                            <email_notify_all_setting_map>
                                <empty>true</empty>
                            </email_notify_all_setting_map>
                            <fax_notify_all_setting_map>
                                <empty>true</empty>
                            </fax_notify_all_setting_map>
                            <mobile_notify_all_setting_map>
                                <empty>true</empty>
                            </mobile_notify_all_setting_map>
                            <operator>zander</operator>
                            <source>ebooking</source>
                            <telephone_notify_all_setting_map>
                                <empty>true</empty>
                            </telephone_notify_all_setting_map>
                        </notify_all_setting>
                        <operator>zander</operator>
                        <source>ebooking</source>
                        <telephones>
                            <string>null</string>
                        </telephones>
                    </notification_ways_d_o>
                    <operator>zander</operator>
                    <partner_id>null</partner_id>
                    <seller_id>3690432316</seller_id>
                    <seller_nick>htaautotest02</seller_nick>
                    <seller_tb_account>hwecautotest02</seller_tb_account>
                    <source>ebooking</source>
                    <status>1</status>
                    <type>10</type>
                </management_entities_do>
            </management_entities_list>
        </first_result>
        <has_next></has_next>
        <success></success>
        <total_results>1</total_results>
        <warn_message>1</warn_message>
    </result>
</alitrip_hotel_ebooking_account_mgentity_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

返回
顶部