查询酒店房型价格房态
POST
/a/commoninterface/commonInterface/query
请求参数
Body 参数application/json
userName
string
用户名
passWord
string
密码
queryType
string
查询类型
实时查询 searchHotelPrice
hotelId
string
酒店ID
checkInDate
string
入住日期
checkOutDate
string
离店日期
roomtypeId
string
房型ID
rateTypeId
string
价格类型ID
示例
{
"userName": "87",
"passWord": "thcstourtest",
"queryType": "hotelPriceStatus",
"hotelId": "549901",
"checkInDate": "2023-08-10",
"checkOutDate": "2023-08-11",
"roomtypeId": "2271466",
"rateTypeId": "17"
}
示例代码
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST 'http://test-cn.your-api-server.com/a/commoninterface/commonInterface/query' \
--header 'Content-Type: application/json' \
--data-raw '{
"userName": "87",
"passWord": "thcstourtest",
"queryType": "hotelPriceStatus",
"hotelId": "549901",
"checkInDate": "2023-08-10",
"checkOutDate": "2023-08-11",
"roomtypeId": "2271466",
"rateTypeId": "17"
}'
返回响应
🟢200成功
application/json
Body
hotelPriceStatusList
array [object {22}]
必需
advanceDays
string
提前天数
advanceTime
string
小时 数
breakfastQty
string
早餐份数
channel
string
售卖渠道
city
string
城市ID
countDays
string
连住晚数
currency
string
币种
cancelType
string
取消类型
daySelect
string
取消提前天数
timeSelect
string
取消提前小时数
fineType
string
担保金额类型
hotelId
integer
酒店ID
nameChn
string
酒店名称
night
string
日期
pricingType
integer
定价类型
qtyAble
string
房间数量
ratetypeId
string
价格类型ID
ratetypeName
string
价格类型名称
roomtypeId
string
房型ID
roomtypeName
string
房型名称
salePrice
string
卖价/同行价
active
string
价格是否有效
msg
string
必需
success
string
必需
示例
{
"hotelPriceStatusList": [
{
"active": "1",
"advanceDays": "0",
"advanceTime": "23",
"allotmentType": 12,
"breakfastQty": "010022",
"cancelType": "14",
"city": "425",
"countDays": "0",
"currency": "RMB",
"daySelect": "2",
"fineType": "12",
"hotelId": 182,
"keyid": "20170324182377179121251660371",
"keyidnodate": "182377179121251660371",
"nameChn": "香港海景嘉福洲际酒店",
"night": "2017-03-24 00:00:00",
"pricingType": 12,
"qtyAble": "2",
"ratetypeId": "16",
"ratetypeName": "含单早",
"roomtypeId": 377179,
"roomtypeName": "豪华房超优惠特价(限内宾)",
"salePrice": "1732.0",
"supplierId": 5,
"supplierName": "深圳国际旅行社",
"channel": "商旅",
"timeSelect": "7"
},
{
"active": "1",
"advanceDays": "0",
"advanceTime": "23",
"allotmentType": 12,
"basePrice": "1613.00",
"breakfastQty": "010022",
"cancelType": "14",
"city": "425",
"countDays": "0",
"currency": "RMB",
"daySelect": "3",
"fineType": "12",
"hotelId": 182,
"keyid": "20170325182377179121251660366",
"keyidnodate": "182377179121251660366",
"nameChn": "香港海景嘉福洲际酒店",
"night": "2017-03-25 00:00:00",
"pricingType": 12,
"qtyAble": "2",
"ratetypeId": "16",
"ratetypeName": "含单早",
"roomtypeId": 377179,
"roomtypeName": "豪华房超优惠特价(限内宾)",
"salePrice": "1732.0",
"supplierId": 5,
"supplierName": "深圳国际旅行社",
"channel": "OTA",
"timeSelect": "7"
}
],
"msg": "成功",
"success": "1"
}
修改于 2024-08-28 01:08:16