查询房型详情,可以包含房型库存、房型开关、RP和Rate层级关系、标准房型信息,通过参数开关控制
| 名称 | 类型 | 是否必须 | 示例值 | 更多限制 | 描述 |
|---|---|---|---|---|---|
| rid | Number | 必须 | 32324 | 房型rid | |
| hid | Number | 可选 | 32423 | 酒店hid | |
| need_room_inventory_and_switch | Boolean | 可选 | false |
|
是否需要房型库存和开关 |
| need_sroom_info | Boolean | 可选 | false |
|
是否需要标准房型信息 |
| need_rp_and_rate | Boolean | 可选 | false |
|
是否需要RP和Rate |
| vendor | String | 可选 | taobao | 销售渠道 |
| 名称 | 类型 | 示例值 | 描述 |
|---|---|---|---|
| result | ResultSet | result | |
|
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
XhotelRoomtypeDetailGetRequest req = new XhotelRoomtypeDetailGetRequest();
req.setRid(32324L);
req.setHid(32423L);
req.setNeedRoomInventoryAndSwitch(false);
req.setNeedSroomInfo(false);
req.setNeedRpAndRate(false);
req.setVendor("taobao");
XhotelRoomtypeDetailGetResponse rsp = client.execute(req, sessionKey);
System.out.println(rsp.getBody());
<xhotel_roomtype_detail_get_response>
<result>
<error_code>0</error_code>
<error_msg>0</error_msg>
<success>false</success>
<first_result>
<rid>0</rid>
<room_type>
<window_type>0</window_type>
<hid>0</hid>
<remark>0</remark>
<out_hid>0</out_hid>
<srid>0</srid>
<pics>0</pics>
<area>0</area>
<bed_size>0</bed_size>
<seller_nick>0</seller_nick>
<priority>0</priority>
<name>0</name>
<old_rid>0</old_rid>
<data_confirm>0</data_confirm>
<agg_name>0</agg_name>
<name_e>0</name_e>
<vendor>0</vendor>
<extend>0</extend>
<floor>0</floor>
<rid>0</rid>
<seller_id>0</seller_id>
<match_status>0</match_status>
<service>0</service>
<bed_type>0</bed_type>
<oper_xiaoer_name>0</oper_xiaoer_name>
<comment>0</comment>
<max_occupancy>0</max_occupancy>
<internet>0</internet>
<internet_parser>0</internet_parser>
<outer_id>0</outer_id>
</room_type>
<s_room_type>
<window_type>0</window_type>
<name_e>0</name_e>
<network_service>0</network_service>
<auditor>0</auditor>
<last_modify>0</last_modify>
<status>0</status>
<bed>0</bed>
<extend>0</extend>
<transfer_pics>0</transfer_pics>
<shid>0</shid>
<original_pics>0</original_pics>
<version>0</version>
<srid>0</srid>
<pics_ext>0</pics_ext>
<pics>0</pics>
<area>0</area>
<source>0</source>
<facility>0</facility>
<floor>0</floor>
<name>0</name>
<max_occupancy>0</max_occupancy>
<outer_id>0</outer_id>
<add_bed>0</add_bed>
</s_room_type>
<rp_and_rate_unit_list>
<rp_and_rate_unit>
<x_rate_plan>
<cancel_policy_cal_list>
<cancel_policy_cal>
<cancel_policy_info>0</cancel_policy_info>
<date>0</date>
<cancel_policy_type>0</cancel_policy_type>
</cancel_policy_cal>
</cancel_policy_cal_list>
<breakfast_cal_list>
<breakfast_cal>
<bf_count>0</bf_count>
<date>0</date>
</breakfast_cal>
</breakfast_cal_list>
<rate_plan>
<fee_service_amount>-10000</fee_service_amount>
<parent_rp_code>0</parent_rp_code>
<hid>0</hid>
<rp_type>0</rp_type>
<parent_rpid>0</parent_rpid>
<can_checkin_end>0</can_checkin_end>
<seller_nick>0</seller_nick>
<pack_room_flag>0</pack_room_flag>
<min_days>-10000</min_days>
<start_time_daily>0</start_time_daily>
<status>-10000</status>
<can_dawn_book>0</can_dawn_book>
<fee_breakfast_amount>-10000</fee_breakfast_amount>
<cal_full_update>false</cal_full_update>
<first_stay>0</first_stay>
<english_name>0</english_name>
<fee_breakfast_count>-10000</fee_breakfast_count>
<is_student>0</is_student>
<max_adv_hours>-10000</max_adv_hours>
<min_amount>-10000</min_amount>
<bottom_price_flag>0</bottom_price_flag>
<guarantee_start_time>0</guarantee_start_time>
<fee_gov_tax_percent>-10000</fee_gov_tax_percent>
<invoice_content>0</invoice_content>
<member_level>0</member_level>
<gmt_modified>0</gmt_modified>
<super_rp_flag>false</super_rp_flag>
<base_rp_flag>false</base_rp_flag>
<out_hid>0</out_hid>
<fee_gov_tax_amount>-10000</fee_gov_tax_amount>
<allotment_release_time>0</allotment_release_time>
<version>0</version>
<extend_fee>0</extend_fee>
<breakfast_count>-10000</breakfast_count>
<max_days>-10000</max_days>
<name>0</name>
<guarantee_amount>0</guarantee_amount>
<fee_service_percent>-10000</fee_service_percent>
<gmt_effective>0</gmt_effective>
<occupancy>0</occupancy>
<min_adv_hours>-10000</min_adv_hours>
<guarantee_mode>0</guarantee_mode>
<rate_plan_id>-10000</rate_plan_id>
<gmt_create>0</gmt_create>
<vendor>0</vendor>
<payment_type>-10000</payment_type>
<extend>0</extend>
<dawn_book_end_time>0</dawn_book_end_time>
<agreement>0</agreement>
<new_rp_code>0</new_rp_code>
<dawn_book_start_time>0</dawn_book_start_time>
<operator>0</operator>
<sell_gid>0</sell_gid>
<rate_plan_code>0</rate_plan_code>
<guarantee_type>-10000</guarantee_type>
<source>0</source>
<end_time_daily>0</end_time_daily>
<rid>0</rid>
<seller_id>-10000</seller_id>
<gmt_deadline>0</gmt_deadline>
<hourage>0</hourage>
<out_rid>0</out_rid>
<display_name>0</display_name>
<can_checkin_start>0</can_checkin_start>
<channel>0</channel>
<sell_rp_type>-10000</sell_rp_type>
<cancel_policy>0</cancel_policy>
<common_allot_release_time>0</common_allot_release_time>
</rate_plan>
<guarantee_cal_list>
<guaranteecal>
<guarantee_time>0</guarantee_time>
<date>0</date>
<guarantee_type>0</guarantee_type>
</guaranteecal>
</guarantee_cal_list>
<tag_json>{"non-direct-RP":1,"super-could-price-change-RP":0,"base-could-derived-RP":1,"ebk-tail-room-RP":0}</tag_json>
</x_rate_plan>
<x_rate_list>
<xratelist>
<inv_price_with_switch_unit_list>
<inv_price_with_switch_unit>
<quota>0</quota>
<price>0</price>
<al_quota>0</al_quota>
<date>0</date>
<rate_switch>false</rate_switch>
<gen_al_quota>4</gen_al_quota>
</inv_price_with_switch_unit>
</inv_price_with_switch_unit_list>
<rate>
<tag_s_j_y_f>-10000</tag_s_j_y_f>
<lock_end_time>0</lock_end_time>
<inventory_type_flag>0</inventory_type_flag>
<exchange_rate>0</exchange_rate>
<cny_currency>true</cny_currency>
<tag_direct_type>0</tag_direct_type>
<version>0</version>
<seller_nick>0</seller_nick>
<lock_start_time>0</lock_start_time>
<name>0</name>
<rate_id>-10000</rate_id>
<switch_calendar_data>0</switch_calendar_data>
<tag_j_s_q_r>-10000</tag_j_s_q_r>
<exchange_rate_with_high_precision>0</exchange_rate_with_high_precision>
<add_bed>-10000</add_bed>
<nod>0</nod>
<rate_plan_id>-10000</rate_plan_id>
<currency_code_name>0</currency_code_name>
<currency_code>-10000</currency_code>
<status>-10000</status>
<vendor>0</vendor>
<tag_direct>0</tag_direct>
<nop>0</nop>
<operator>0</operator>
<price_deposit>-10000</price_deposit>
<source>0</source>
<bottom_price_flag>0</bottom_price_flag>
<seller_id>-10000</seller_id>
<gid>-10000</gid>
<add_bed_price>-10000</add_bed_price>
</rate>
<tag_json>{"ebk-tail-room-Rate":1}</tag_json>
<use_room_inv>false</use_room_inv>
</xratelist>
</x_rate_list>
</rp_and_rate_unit>
</rp_and_rate_unit_list>
<inv_and_switch_unit_list>
<room_inv_with_switch_unit>
<room_switch>false</room_switch>
<quota>0</quota>
<date>0</date>
</room_inv_with_switch_unit>
</inv_and_switch_unit_list>
<iid>0</iid>
<gid>0</gid>
<on_sell>false</on_sell>
<download_reason>0</download_reason>
<tag_json>{"non-direct-roomType":1}</tag_json>
</first_result>
</result>
</xhotel_roomtype_detail_get_response>
<error_response>
<code>50</code>
<msg>Remote service error</msg>
<sub_code>isv.invalid-parameter</sub_code>
<sub_msg>非法参数</sub_msg>
</error_response>
| 错误码 | 错误描述 | 解决方案 |
|---|