商旅酒店api分销-详情报价接口
名称 | 类型 | 是否必须 | 示例值 | 更多限制 | 描述 |
---|---|---|---|---|---|
param_hotel_detail_r_q | HotelDetailRq | 可选 | 详情报价入参 | ||
|
名称 | 类型 | 示例值 | 描述 |
---|---|---|---|
result | HisvResult | 详情报价回参 | |
|
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret); AlitripBtripHotelDistributionSearchDetailRequest req = new AlitripBtripHotelDistributionSearchDetailRequest(); AlitripBtripHotelDistributionSearchDetailRequest.HotelDetailRq obj1 = new AlitripBtripHotelDistributionSearchDetailRequest.HotelDetailRq(); obj1.setCheckIn("2021-06-06"); obj1.setCheckOut("2021-06-06"); obj1.setCityCode(654300L); obj1.setShid(60405003L); obj1.setSubChannel("distribution_hkfghnmiujhgv01"); req.setParamHotelDetailRQ(obj1); AlitripBtripHotelDistributionSearchDetailResponse rsp = client.execute(req); System.out.println(rsp.getBody());
<alitrip_btrip_hotel_distribution_search_detail_response> <result> <module> <check_in>2021-06-06 00:00:00</check_in> <check_out>2021-06-06 00:00:00</check_out> <eagle_trace_id>abcdef123</eagle_trace_id> <rooms> <hotel_detail_room_dto> <area>20</area> <bed_type_string>双人床</bed_type_string> <facility>设施</facility> <floor>1</floor> <max_occupancy>2</max_occupancy> <name>大床房</name> <network_service>0</network_service> <pics>img//...</pics> <rates> <hotel_detail_rate_dto> <breakfast>双早</breakfast> <cancel_policy_desc>免费取消</cancel_policy_desc> <company_aassist>1</company_aassist> <currency_code>CNY</currency_code> <end_time_daily>3.21</end_time_daily> <instant_confirm>true</instant_confirm> <inventory_price>{"price":46943,"quota":10}</inventory_price> <item_id>abc</item_id> <min_adv_hours>0</min_adv_hours> <min_days>0</min_days> <nod>0</nod> <nop>0</nop> <payment_type>1</payment_type> <promotion_info>[]</promotion_info> <rate_id>3909860467401</rate_id> <rate_plan_name>阿里商旅专营价</rate_plan_name> <rp_id>3259284392401</rp_id> <start_time_daily>1234</start_time_daily> <supplier_code>fliggy</supplier_code> <supplier_name>飞猪</supplier_name> <support_special_invoice>true</support_special_invoice> <btrip_hotel_cancel_policy_d_t_o> <cancel_policy_type>1</cancel_policy_type> <btrip_hotel_cancel_policy_info_d_t_o_list> <btrip_hotel_cancel_policy_info_dto> <hour>6</hour> <value>100</value> </btrip_hotel_cancel_policy_info_dto> </btrip_hotel_cancel_policy_info_d_t_o_list> </btrip_hotel_cancel_policy_d_t_o> <daily_price_format_yuan>100</daily_price_format_yuan> <daily_price_view>100</daily_price_view> <price_plan> <discount_daily_price> <rate_start_time>2000-01-01</rate_start_time> <discount_daily_price>1000</discount_daily_price> <rounding_after_discount_daily_price>1000</rounding_after_discount_daily_price> </discount_daily_price> </price_plan> </hotel_detail_rate_dto> </rates> <srid>73261624</srid> <status>0</status> <window_type>1</window_type> </hotel_detail_room_dto> </rooms> <search_id>123</search_id> <shid>60405003</shid> </module> <result_code>200</result_code> <result_msg>系统异常</result_msg> </result> </alitrip_btrip_hotel_distribution_search_detail_response>
<error_response> <code>50</code> <msg>Remote service error</msg> <sub_code>isv.invalid-parameter</sub_code> <sub_msg>非法参数</sub_msg> </error_response>
错误码 | 错误描述 | 解决方案 |
---|