POST api/hotel/totalstay/search/{lang}?iscache={iscache}
搜索
Request Information
URI Parameters
Name | Description | Type | Additional information |
---|---|---|---|
lang |
语言(en-us) |
string |
Required |
iscache | boolean |
Default value is True |
Body Parameters
搜索数据
TsHotelSearchRQContractName | Description | Type | Additional information |
---|---|---|---|
regionid |
区域编号 |
integer |
None. |
mealbasisid |
餐饮编号 |
integer |
None. |
checkintime |
开始时间 |
date |
None. |
checkouttime |
结束时间 |
date |
None. |
star |
星级 |
integer |
None. |
roomorders |
房间预定列表 |
Collection of TsRoomOrderContract |
None. |
platformSource |
平台来源 |
string |
None. |
clientguid |
客户端guid |
string |
None. |
pageindex |
当前页 |
integer |
None. |
pagesize |
每页记录条数 |
integer |
None. |
loadModules |
加载模块(酒店为固定,1.概要总计,2,酒店房间明细) |
Collection of integer |
None. |
mulitstar |
星级(筛选) |
string |
None. |
facility |
设施(筛选) |
string |
None. |
price |
价格(筛选) |
string |
None. |
orderby |
排序 |
string |
None. |
Request Formats
application/json, text/json
Sample:
{ "regionid": 1, "mealbasisid": 2, "checkintime": "2024-12-23T20:17:52.5229467+08:00", "checkouttime": "2024-12-23T20:17:52.5229467+08:00", "star": 5, "roomorders": [ { "adultcount": 1, "childcount": 2, "infants": 3, "childagelist": [ 1, 2 ] }, { "adultcount": 1, "childcount": 2, "infants": 3, "childagelist": [ 1, 2 ] } ], "platformSource": "sample string 6", "clientguid": "sample string 7", "pageindex": 8, "pagesize": 9, "loadModules": [ 1, 2 ], "mulitstar": "sample string 10", "facility": "sample string 11", "price": "sample string 12", "orderby": "sample string 13" }
application/x-www-form-urlencoded
Sample:
Response Information
Resource Description
搜索
ReturnResultOfTsHotelSearchPageContractName | Description | Type | Additional information |
---|---|---|---|
data | TsHotelSearchPageContract |
None. |
|
code |
状态码:100成功,其他自定义 |
integer |
None. |
message |
提示消息 |
string |
None. |
Response Formats
application/json, text/json
Sample:
{ "data": { "pagehotellist": { "total_count": 1, "page": 2, "page_size": 3, "data_list": [ { "propertyid": "sample string 2", "propertyrefId": 3, "propertyname": "sample string 4", "star": 5.0, "ourstar": 6.0, "country": "sample string 7", "region": "sample string 8", "resort": "sample string 9", "paytotal": 10.0, "roomtypes": [ { "roomtypeid": 1, "bookingtoken": "sample string 2", "mealbasisid": 3, "mealbasis": "sample string 4", "roomtypename": "sample string 5", "roomview": "sample string 6", "subtotal": 7.0, "discount": 8.0, "sellertotal": 9.0, "adultcount": 10, "childcount": 11, "infants": 12, "warns": [ { "WarnTitle": "sample string 1", "Descript": "sample string 2" }, { "WarnTitle": "sample string 1", "Descript": "sample string 2" } ], "specialofferapplied": "sample string 13", "Adjusts": [ { "AdjustmentType": "sample string 1", "AdjustmentName": "sample string 2", "Total": 3.0 }, { "AdjustmentType": "sample string 1", "AdjustmentName": "sample string 2", "Total": 3.0 } ] }, { "roomtypeid": 1, "bookingtoken": "sample string 2", "mealbasisid": 3, "mealbasis": "sample string 4", "roomtypename": "sample string 5", "roomview": "sample string 6", "subtotal": 7.0, "discount": 8.0, "sellertotal": 9.0, "adultcount": 10, "childcount": 11, "infants": 12, "warns": [ { "WarnTitle": "sample string 1", "Descript": "sample string 2" }, { "WarnTitle": "sample string 1", "Descript": "sample string 2" } ], "specialofferapplied": "sample string 13", "Adjusts": [ { "AdjustmentType": "sample string 1", "AdjustmentName": "sample string 2", "Total": 3.0 }, { "AdjustmentType": "sample string 1", "AdjustmentName": "sample string 2", "Total": 3.0 } ] } ], "longitude": 11.1, "latitude": 12.1, "coverpic": "sample string 13", "imagelists": [ "sample string 1", "sample string 2" ], "hotelfacilitylist": [ { "FacilityType": "sample string 1", "FacilityID": "sample string 2", "Facility": "sample string 3", "FacilityGroup": "sample string 4", "Notes": "sample string 5", "CostInformation": "sample string 6" }, { "FacilityType": "sample string 1", "FacilityID": "sample string 2", "Facility": "sample string 3", "FacilityGroup": "sample string 4", "Notes": "sample string 5", "CostInformation": "sample string 6" } ], "allroomfacilitylist": [ { "PropertyRoomTypeID": "sample string 1", "RoomType": "sample string 2", "RoomView": "sample string 3", "DefaultMealBasis": "sample string 4", "vfacilities": [ { "FacilityType": "sample string 1", "FacilityID": "sample string 2", "Facility": "sample string 3", "FacilityGroup": "sample string 4", "Notes": "sample string 5", "CostInformation": "sample string 6" }, { "FacilityType": "sample string 1", "FacilityID": "sample string 2", "Facility": "sample string 3", "FacilityGroup": "sample string 4", "Notes": "sample string 5", "CostInformation": "sample string 6" } ] }, { "PropertyRoomTypeID": "sample string 1", "RoomType": "sample string 2", "RoomView": "sample string 3", "DefaultMealBasis": "sample string 4", "vfacilities": [ { "FacilityType": "sample string 1", "FacilityID": "sample string 2", "Facility": "sample string 3", "FacilityGroup": "sample string 4", "Notes": "sample string 5", "CostInformation": "sample string 6" }, { "FacilityType": "sample string 1", "FacilityID": "sample string 2", "Facility": "sample string 3", "FacilityGroup": "sample string 4", "Notes": "sample string 5", "CostInformation": "sample string 6" } ] } ] }, { "propertyid": "sample string 2", "propertyrefId": 3, "propertyname": "sample string 4", "star": 5.0, "ourstar": 6.0, "country": "sample string 7", "region": "sample string 8", "resort": "sample string 9", "paytotal": 10.0, "roomtypes": [ { "roomtypeid": 1, "bookingtoken": "sample string 2", "mealbasisid": 3, "mealbasis": "sample string 4", "roomtypename": "sample string 5", "roomview": "sample string 6", "subtotal": 7.0, "discount": 8.0, "sellertotal": 9.0, "adultcount": 10, "childcount": 11, "infants": 12, "warns": [ { "WarnTitle": "sample string 1", "Descript": "sample string 2" }, { "WarnTitle": "sample string 1", "Descript": "sample string 2" } ], "specialofferapplied": "sample string 13", "Adjusts": [ { "AdjustmentType": "sample string 1", "AdjustmentName": "sample string 2", "Total": 3.0 }, { "AdjustmentType": "sample string 1", "AdjustmentName": "sample string 2", "Total": 3.0 } ] }, { "roomtypeid": 1, "bookingtoken": "sample string 2", "mealbasisid": 3, "mealbasis": "sample string 4", "roomtypename": "sample string 5", "roomview": "sample string 6", "subtotal": 7.0, "discount": 8.0, "sellertotal": 9.0, "adultcount": 10, "childcount": 11, "infants": 12, "warns": [ { "WarnTitle": "sample string 1", "Descript": "sample string 2" }, { "WarnTitle": "sample string 1", "Descript": "sample string 2" } ], "specialofferapplied": "sample string 13", "Adjusts": [ { "AdjustmentType": "sample string 1", "AdjustmentName": "sample string 2", "Total": 3.0 }, { "AdjustmentType": "sample string 1", "AdjustmentName": "sample string 2", "Total": 3.0 } ] } ], "longitude": 11.1, "latitude": 12.1, "coverpic": "sample string 13", "imagelists": [ "sample string 1", "sample string 2" ], "hotelfacilitylist": [ { "FacilityType": "sample string 1", "FacilityID": "sample string 2", "Facility": "sample string 3", "FacilityGroup": "sample string 4", "Notes": "sample string 5", "CostInformation": "sample string 6" }, { "FacilityType": "sample string 1", "FacilityID": "sample string 2", "Facility": "sample string 3", "FacilityGroup": "sample string 4", "Notes": "sample string 5", "CostInformation": "sample string 6" } ], "allroomfacilitylist": [ { "PropertyRoomTypeID": "sample string 1", "RoomType": "sample string 2", "RoomView": "sample string 3", "DefaultMealBasis": "sample string 4", "vfacilities": [ { "FacilityType": "sample string 1", "FacilityID": "sample string 2", "Facility": "sample string 3", "FacilityGroup": "sample string 4", "Notes": "sample string 5", "CostInformation": "sample string 6" }, { "FacilityType": "sample string 1", "FacilityID": "sample string 2", "Facility": "sample string 3", "FacilityGroup": "sample string 4", "Notes": "sample string 5", "CostInformation": "sample string 6" } ] }, { "PropertyRoomTypeID": "sample string 1", "RoomType": "sample string 2", "RoomView": "sample string 3", "DefaultMealBasis": "sample string 4", "vfacilities": [ { "FacilityType": "sample string 1", "FacilityID": "sample string 2", "Facility": "sample string 3", "FacilityGroup": "sample string 4", "Notes": "sample string 5", "CostInformation": "sample string 6" }, { "FacilityType": "sample string 1", "FacilityID": "sample string 2", "Facility": "sample string 3", "FacilityGroup": "sample string 4", "Notes": "sample string 5", "CostInformation": "sample string 6" } ] } ] } ], "page_count": 1, "skip": 4 }, "hotelsummary": { "starlist": [ { "summaryitemid": "sample string 1", "summaryitemcount": 2, "summaryitemname": "sample string 3" }, { "summaryitemid": "sample string 1", "summaryitemcount": 2, "summaryitemname": "sample string 3" } ], "facilitylist": [ { "summaryitemid": "sample string 1", "summaryitemcount": 2, "summaryitemname": "sample string 3" }, { "summaryitemid": "sample string 1", "summaryitemcount": 2, "summaryitemname": "sample string 3" } ], "maxprice": 1.0 }, "hotellocations": [ { "HotelName": "sample string 1", "HotelLng": 2.1, "HotelLat": 3.1, "HotelCode": "sample string 4" }, { "HotelName": "sample string 1", "HotelLng": 2.1, "HotelLat": 3.1, "HotelCode": "sample string 4" } ] }, "code": 1, "message": "sample string 2" }