【商旅】酒店交易查询流水接口——杭州市政府
名称 | 类型 | 是否必须 | 示例值 | 更多限制 | 描述 |
---|---|---|---|---|---|
rq | OpenApiZzdSearchRq | 可选 | 入参 | ||
|
名称 | 类型 | 示例值 | 描述 |
---|---|---|---|
result | HisvResultSupport | result | 出参 |
|
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret); AlitripBtripOpenSupplychainHotelTradeRequest req = new AlitripBtripOpenSupplychainHotelTradeRequest(); AlitripBtripOpenSupplychainHotelTradeRequest.OpenApiZzdSearchRq obj1 = new AlitripBtripOpenSupplychainHotelTradeRequest.OpenApiZzdSearchRq(); obj1.setThirdpartCorpId("sfdsdf"); obj1.setOrderId(1234124324L); obj1.setEndDate("2021-04-01 00:00:00"); obj1.setPageSize(100L); obj1.setUserId("dffdss"); obj1.setApplyId(212131231L); obj1.setPage(1L); obj1.setTradeId("uuyewruwhrwh"); obj1.setStartDate("2021-04-01 00:00:00"); req.setRq(obj1); AlitripBtripOpenSupplychainHotelTradeResponse rsp = client.execute(req, sessionKey); System.out.println(rsp.getBody());
<alitrip_btrip_open_supplychain_hotel_trade_response> <result> <success>true</success> <trade_list> <open_api_zzd_hotel_order_rs> <service_fee>100</service_fee> <refund_service_fee>100</refund_service_fee> <refund_fee>100</refund_fee> <personal_amount>100</personal_amount> <corp_amount>100</corp_amount> <amount>1000</amount> <settle_type>1</settle_type> <pay_type>2</pay_type> <gmt_modified>2021-04-01 00:00:00</gmt_modified> <gmt_create>2021-04-01 00:00:00</gmt_create> <status>1</status> <apply_title>审批单名称</apply_title> <third_part_apply_id>ssfsdfs</third_part_apply_id> <apply_id>111111</apply_id> <depart_name>测试部门</depart_name> <user_nick>测试用户</user_nick> <user_id>testUserId</user_id> <thirdpart_corp_id>testsdfsf</thirdpart_corp_id> <corp_id>qqwew</corp_id> <order_id>7389298237</order_id> <trade_action>1</trade_action> <trade_type>1</trade_type> <trade_id>12313132442</trade_id> <currency>CNY</currency> <approver>测试用户</approver> <settlement_batch_no>yyyy-MM-dd HH:mm:ss</settlement_batch_no> <travel_standard_amount>400</travel_standard_amount> <invoice_id>12313</invoice_id> <invoice_title>测试发票抬头</invoice_title> <project_code>uiyiuyuiy</project_code> <project_title>测试项目</project_title> <thirdpart_itinerary_id>2213131</thirdpart_itinerary_id> <itinerary_no>213124214</itinerary_no> <cost_center_list> <cost_center_do> <cost_center_id>123123</cost_center_id> <cost_center_title>测试成本</cost_center_title> <cost_center_number>oiuouoi</cost_center_number> <third_cost_center_id>sdfssaf</third_cost_center_id> </cost_center_do> </cost_center_list> <client_info_dos> <client_info_do> <user_id>sdfds</user_id> <user_name>测试用户名称</user_name> </client_info_do> </client_info_dos> <type>6</type> <voucher_type>11</voucher_type> <check_in_date>2021-04-01 00:00:00</check_in_date> <check_out_date>2021-04-01 00:00:00</check_out_date> <hotel_info_do> <hotel_name>酒店</hotel_name> <hotel_tel>131342242</hotel_tel> <hotel_address>杭州市</hotel_address> <hotel_city_code>hz</hotel_city_code> <city>杭州</city> <star_rating>4</star_rating> </hotel_info_do> <room_info_do> <room_name>标间</room_name> <room_price>100</room_price> <room_num>1</room_num> <night_number>2</night_number> <currency>CNY</currency> </room_info_do> </open_api_zzd_hotel_order_rs> </trade_list> <result_code>0</result_code> <result_msg>成功</result_msg> </result> </alitrip_btrip_open_supplychain_hotel_trade_response>
<error_response> <code>50</code> <msg>Remote service error</msg> <sub_code>isv.invalid-parameter</sub_code> <sub_msg>非法参数</sub_msg> </error_response>
错误码 | 错误描述 | 解决方案 |
---|