POST api/hotel/search/{citycode}?iscache={iscache}
搜索酒店房间信息
Request Information
URI Parameters
Name | Description | Type | Additional information |
---|---|---|---|
citycode |
城市编号 |
string |
Required |
iscache |
是否缓存 |
boolean |
Default value is True |
Body Parameters
相关协议数据
HotelAvailRQContractName | Description | Type | Additional information |
---|---|---|---|
hotelcode |
酒店编码 |
string |
None. |
hotelname |
酒店名称 |
string |
None. |
starttime |
开始时间 |
date |
None. |
endtime |
结束时间 |
date |
None. |
nationallity |
国籍(预留暂无用) |
string |
None. |
rateplanid |
搜索PlanId(预留暂无用) |
Collection of string |
None. |
roomcount |
预订酒店数量 |
integer |
None. |
guestslist | Collection of Guest |
None. |
|
roomtypecode |
房间类型code |
string |
None. |
pageindex |
当前页 |
integer |
None. |
pagesize |
每页记录条数 |
integer |
None. |
loadModules |
加载模块(酒店为固定,1.概要总计,2.房间,3.酒店地址汇总) |
Collection of integer |
None. |
star |
星级(筛选) |
string |
None. |
facility |
设施(筛选) |
string |
None. |
price |
价格(筛选) |
string |
None. |
orderby |
排序 |
string |
None. |
platformSource |
平台来源 |
string |
None. |
cdnplatformSource |
加速平台 |
string |
None. |
clientguid |
客户端guid |
string |
None. |
markupby |
Source MarkUpBy(A.金额, R.百分比) |
string |
None. |
markupamt |
Markup数值 |
decimal number |
None. |
Request Formats
application/json, text/json
Sample:
{ "hotelcode": "sample string 1", "hotelname": "sample string 2", "starttime": "2024-12-23T19:54:24.8133447+08:00", "endtime": "2024-12-23T19:54:24.8133447+08:00", "nationallity": "sample string 5", "rateplanid": [ "sample string 1", "sample string 2" ], "roomcount": 6, "guestslist": [ { "audultcount": 1, "childagelist": [ 1, 2 ] }, { "audultcount": 1, "childagelist": [ 1, 2 ] } ], "roomtypecode": "sample string 7", "pageindex": 8, "pagesize": 9, "loadModules": [ 1, 2 ], "star": "sample string 10", "facility": "sample string 11", "price": "sample string 12", "orderby": "sample string 13", "platformSource": "sample string 14", "cdnplatformSource": "sample string 15", "clientguid": "sample string 16", "markupby": "sample string 17", "markupamt": 18.0 }
application/x-www-form-urlencoded
Sample:
Response Information
Resource Description
搜索酒店房间信息
ReturnResultOfHotelAvailResponseName | Description | Type | Additional information |
---|---|---|---|
data | HotelAvailResponse |
None. |
|
code |
状态码:100成功,其他自定义 |
integer |
None. |
message |
提示消息 |
string |
None. |
Response Formats
application/json, text/json
Sample:
{ "data": { "<RoomStays>k__BackingField": [ { "<IsAlternate>k__BackingField": "sample string 1", "<ResponseType>k__BackingField": "sample string 2", "<InfoSource>k__BackingField": "sample string 3", "<RoomTypes>k__BackingField": [ { "<RoomType>k__BackingField": "sample string 1", "<RoomTypeCode>k__BackingField": "sample string 2" }, { "<RoomType>k__BackingField": "sample string 1", "<RoomTypeCode>k__BackingField": "sample string 2" } ], "<RatePlans>k__BackingField": [ { "<RatePlanID>k__BackingField": "sample string 1", "<MealsIncluded>k__BackingField": { "<Breakfast>k__BackingField": "sample string 1", "<MealPlanCodes>k__BackingField": "sample string 2" }, "<AdditionalDetails>k__BackingField": "sample string 2" }, { "<RatePlanID>k__BackingField": "sample string 1", "<MealsIncluded>k__BackingField": { "<Breakfast>k__BackingField": "sample string 1", "<MealPlanCodes>k__BackingField": "sample string 2" }, "<AdditionalDetails>k__BackingField": "sample string 2" } ], "<RoomRates>k__BackingField": [ { "<RoomTypeCode>k__BackingField": "sample string 1", "<RatePlanID>k__BackingField": "sample string 2", "<AvailabilityStatus>k__BackingField": "sample string 3", "<NumberOfUnits>k__BackingField": "sample string 4", "<Rates>k__BackingField": [ { "<EffectiveDate>k__BackingField": "sample string 1", "<ExpireDate>k__BackingField": "sample string 2", "<BaseInfo>k__BackingField": { "<AmountBeforeTax>k__BackingField": "sample string 1", "<CurrencyCode>k__BackingField": "sample string 2", "<RSP>k__BackingField": "sample string 3" }, "<PaymentPolicies>k__BackingField": "sample string 3" }, { "<EffectiveDate>k__BackingField": "sample string 1", "<ExpireDate>k__BackingField": "sample string 2", "<BaseInfo>k__BackingField": { "<AmountBeforeTax>k__BackingField": "sample string 1", "<CurrencyCode>k__BackingField": "sample string 2", "<RSP>k__BackingField": "sample string 3" }, "<PaymentPolicies>k__BackingField": "sample string 3" } ], "<total>k__BackingField": { "<AmountBeforeTax>k__BackingField": 1.0, "<CurrencyCode>k__BackingField": "sample string 2", "<RSP>k__BackingField": 3.0 } }, { "<RoomTypeCode>k__BackingField": "sample string 1", "<RatePlanID>k__BackingField": "sample string 2", "<AvailabilityStatus>k__BackingField": "sample string 3", "<NumberOfUnits>k__BackingField": "sample string 4", "<Rates>k__BackingField": [ { "<EffectiveDate>k__BackingField": "sample string 1", "<ExpireDate>k__BackingField": "sample string 2", "<BaseInfo>k__BackingField": { "<AmountBeforeTax>k__BackingField": "sample string 1", "<CurrencyCode>k__BackingField": "sample string 2", "<RSP>k__BackingField": "sample string 3" }, "<PaymentPolicies>k__BackingField": "sample string 3" }, { "<EffectiveDate>k__BackingField": "sample string 1", "<ExpireDate>k__BackingField": "sample string 2", "<BaseInfo>k__BackingField": { "<AmountBeforeTax>k__BackingField": "sample string 1", "<CurrencyCode>k__BackingField": "sample string 2", "<RSP>k__BackingField": "sample string 3" }, "<PaymentPolicies>k__BackingField": "sample string 3" } ], "<total>k__BackingField": { "<AmountBeforeTax>k__BackingField": 1.0, "<CurrencyCode>k__BackingField": "sample string 2", "<RSP>k__BackingField": 3.0 } } ], "<GuestCounts>k__BackingField": [ { "AgeQualifyingCode": "sample string 1", "Count": 2 }, { "AgeQualifyingCode": "sample string 1", "Count": 2 } ], "<CancelPenalties>k__BackingField": [ { "RoomTypeCode": "sample string 1", "Deadline": { "AbsoluteDeadline": "sample string 1" }, "AmountPercent": { "Percent": 1.0 } }, { "RoomTypeCode": "sample string 1", "Deadline": { "AbsoluteDeadline": "sample string 1" }, "AmountPercent": { "Percent": 1.0 } } ], "<baseicPropertyInfo>k__BackingField": { "HotelCode": "sample string 1", "HotelName": "sample string 2", "HotelCodeContext": "sample string 3", "Address": { "<StreetNmbr>k__BackingField": "sample string 1", "<StateProv>k__BackingField": "sample string 2", "<CountryName>k__BackingField": "sample string 3", "<Extension>k__BackingField": { "<Client>k__BackingField": "sample string 1", "<CreatedDate>k__BackingField": "2024-12-23T19:54:24.8133447+08:00", "<EngRefNumber>k__BackingField": "sample string 3", "<Hotel>k__BackingField": { "<ConfirmedBy>k__BackingField": "sample string 1", "<Reference>k__BackingField": "sample string 2" }, "<Agent>k__BackingField": { "<ContactPerson>k__BackingField": "sample string 1", "<EmailOrFax>k__BackingField": "sample string 2", "<Phone>k__BackingField": "sample string 3" } } } } }, { "<IsAlternate>k__BackingField": "sample string 1", "<ResponseType>k__BackingField": "sample string 2", "<InfoSource>k__BackingField": "sample string 3", "<RoomTypes>k__BackingField": [ { "<RoomType>k__BackingField": "sample string 1", "<RoomTypeCode>k__BackingField": "sample string 2" }, { "<RoomType>k__BackingField": "sample string 1", "<RoomTypeCode>k__BackingField": "sample string 2" } ], "<RatePlans>k__BackingField": [ { "<RatePlanID>k__BackingField": "sample string 1", "<MealsIncluded>k__BackingField": { "<Breakfast>k__BackingField": "sample string 1", "<MealPlanCodes>k__BackingField": "sample string 2" }, "<AdditionalDetails>k__BackingField": "sample string 2" }, { "<RatePlanID>k__BackingField": "sample string 1", "<MealsIncluded>k__BackingField": { "<Breakfast>k__BackingField": "sample string 1", "<MealPlanCodes>k__BackingField": "sample string 2" }, "<AdditionalDetails>k__BackingField": "sample string 2" } ], "<RoomRates>k__BackingField": [ { "<RoomTypeCode>k__BackingField": "sample string 1", "<RatePlanID>k__BackingField": "sample string 2", "<AvailabilityStatus>k__BackingField": "sample string 3", "<NumberOfUnits>k__BackingField": "sample string 4", "<Rates>k__BackingField": [ { "<EffectiveDate>k__BackingField": "sample string 1", "<ExpireDate>k__BackingField": "sample string 2", "<BaseInfo>k__BackingField": { "<AmountBeforeTax>k__BackingField": "sample string 1", "<CurrencyCode>k__BackingField": "sample string 2", "<RSP>k__BackingField": "sample string 3" }, "<PaymentPolicies>k__BackingField": "sample string 3" }, { "<EffectiveDate>k__BackingField": "sample string 1", "<ExpireDate>k__BackingField": "sample string 2", "<BaseInfo>k__BackingField": { "<AmountBeforeTax>k__BackingField": "sample string 1", "<CurrencyCode>k__BackingField": "sample string 2", "<RSP>k__BackingField": "sample string 3" }, "<PaymentPolicies>k__BackingField": "sample string 3" } ], "<total>k__BackingField": { "<AmountBeforeTax>k__BackingField": 1.0, "<CurrencyCode>k__BackingField": "sample string 2", "<RSP>k__BackingField": 3.0 } }, { "<RoomTypeCode>k__BackingField": "sample string 1", "<RatePlanID>k__BackingField": "sample string 2", "<AvailabilityStatus>k__BackingField": "sample string 3", "<NumberOfUnits>k__BackingField": "sample string 4", "<Rates>k__BackingField": [ { "<EffectiveDate>k__BackingField": "sample string 1", "<ExpireDate>k__BackingField": "sample string 2", "<BaseInfo>k__BackingField": { "<AmountBeforeTax>k__BackingField": "sample string 1", "<CurrencyCode>k__BackingField": "sample string 2", "<RSP>k__BackingField": "sample string 3" }, "<PaymentPolicies>k__BackingField": "sample string 3" }, { "<EffectiveDate>k__BackingField": "sample string 1", "<ExpireDate>k__BackingField": "sample string 2", "<BaseInfo>k__BackingField": { "<AmountBeforeTax>k__BackingField": "sample string 1", "<CurrencyCode>k__BackingField": "sample string 2", "<RSP>k__BackingField": "sample string 3" }, "<PaymentPolicies>k__BackingField": "sample string 3" } ], "<total>k__BackingField": { "<AmountBeforeTax>k__BackingField": 1.0, "<CurrencyCode>k__BackingField": "sample string 2", "<RSP>k__BackingField": 3.0 } } ], "<GuestCounts>k__BackingField": [ { "AgeQualifyingCode": "sample string 1", "Count": 2 }, { "AgeQualifyingCode": "sample string 1", "Count": 2 } ], "<CancelPenalties>k__BackingField": [ { "RoomTypeCode": "sample string 1", "Deadline": { "AbsoluteDeadline": "sample string 1" }, "AmountPercent": { "Percent": 1.0 } }, { "RoomTypeCode": "sample string 1", "Deadline": { "AbsoluteDeadline": "sample string 1" }, "AmountPercent": { "Percent": 1.0 } } ], "<baseicPropertyInfo>k__BackingField": { "HotelCode": "sample string 1", "HotelName": "sample string 2", "HotelCodeContext": "sample string 3", "Address": { "<StreetNmbr>k__BackingField": "sample string 1", "<StateProv>k__BackingField": "sample string 2", "<CountryName>k__BackingField": "sample string 3", "<Extension>k__BackingField": { "<Client>k__BackingField": "sample string 1", "<CreatedDate>k__BackingField": "2024-12-23T19:54:24.8133447+08:00", "<EngRefNumber>k__BackingField": "sample string 3", "<Hotel>k__BackingField": { "<ConfirmedBy>k__BackingField": "sample string 1", "<Reference>k__BackingField": "sample string 2" }, "<Agent>k__BackingField": { "<ContactPerson>k__BackingField": "sample string 1", "<EmailOrFax>k__BackingField": "sample string 2", "<Phone>k__BackingField": "sample string 3" } } } } } ], "<Success>k__BackingField": "sample string 1", "<Errors>k__BackingField": { "<error>k__BackingField": "sample string 1" }, "<error>k__BackingField": { "ErrorDescription": "sample string 1" } }, "code": 1, "message": "sample string 2" }