rate详细信息批量查询
| 名称 | 类型 | 是否必须 | 示例值 | 更多限制 | 描述 |
|---|---|---|---|---|---|
| gid | Number | 可选 | 1 | 商品id | |
| rate_plan_id_list | String | 可选 | [] | 系统自动生成 | |
| is_multiple | Boolean | 可选 | false | 复杂价格:true 简单价格:true | |
| start_date | Date | 可选 | 2019-08-12 08:00:00 | 日历化信息开始时间 | |
| end_date | Date | 可选 | 2019-08-12 08:00:00 | 日历化信息结束时间 | |
| start_row | Number | 可选 | 0 | 分页查询起始行数 | |
| page_size | Number | 可选 | 0 | 分页查询页数 | |
| need_calendar_info | Boolean | 可选 | false | 是否需要日历化信息,不填表示不需要 |
| 名称 | 类型 | 示例值 | 描述 |
|---|---|---|---|
| result | ResultSet | result | |
|
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
XhotelRateDetailBatchGetRequest req = new XhotelRateDetailBatchGetRequest();
req.setGid(1L);
req.setRatePlanIdList("[]");
req.setIsMultiple(false);
req.setStartDate(StringUtils.parseDateTime("2019-08-12 08:00:00"));
req.setEndDate(StringUtils.parseDateTime("2019-08-12 08:00:00"));
req.setStartRow(0L);
req.setPageSize(0L);
req.setNeedCalendarInfo(false);
XhotelRateDetailBatchGetResponse rsp = client.execute(req, sessionKey);
System.out.println(rsp.getBody());
<xhotel_rate_detail_batch_get_response>
<result>
<success>false</success>
<error_msg>0</error_msg>
<error_code>0</error_code>
<first_result>
<xrate_list>
<x_rate>
<inv_price_with_switch_unit_list>
<inv_and_switch_unit>
<quota>0</quota>
<price>0</price>
<al_quota>0</al_quota>
<date>0</date>
<gen_al_quota>0</gen_al_quota>
<rate_switch>0</rate_switch>
</inv_and_switch_unit>
</inv_price_with_switch_unit_list>
<rate>
<tag_s_j_y_f>0</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>false</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>0</rate_id>
<switch_calendar_data>0</switch_calendar_data>
<tag_j_s_q_r>0</tag_j_s_q_r>
<exchange_rate_with_high_precision>0</exchange_rate_with_high_precision>
<add_bed>0</add_bed>
<nod>0</nod>
<rate_plan_id>0</rate_plan_id>
<currency_code_name>0</currency_code_name>
<currency_code>0</currency_code>
<status>0</status>
<vendor>0</vendor>
<tag_direct>0</tag_direct>
<nop>0</nop>
<operator>0</operator>
<price_deposit>0</price_deposit>
<source>0</source>
<bottom_price_flag>0</bottom_price_flag>
<seller_id>0</seller_id>
<gid>0</gid>
<add_bed_price>0</add_bed_price>
<config_content></config_content>
</rate>
<tag_json>0</tag_json>
<use_room_inv>0</use_room_inv>
</x_rate>
</xrate_list>
<total_count>0</total_count>
</first_result>
</result>
</xhotel_rate_detail_batch_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>
| 错误码 | 错误描述 | 解决方案 |
|---|