酒店列表
开发中
POST
/api/v1/hotel/list
请求参数
Header 参数
Authorization-AppKey
string
必需
默认值:
{{app_key}}
Authorization-Sign
string
必需
默认值:
{{sign}}
Authorization-Token
string
可选
默认值:
{{token}}
Body 参数application/json
checkin
string
入住日期
checkout
string
离店日期
room_count
integer
房间数量
adult_count
integer
成人总数/间
child_count
integer
儿童总数/间
child_ages
array[integer]
儿童年龄
city_name
string
城市名称
hotel_name
string
酒店名称
示例
{
"checkin": "string",
"checkout": "string",
"room_count": 0,
"adult_count": 0,
"child_count": 0,
"child_ages": [
0
],
"city_name": "string",
"hotel_name": "string"
}
示例代码
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://fourseasons-test.e.verystar.net/api/v1/hotel/list' \
--header 'Authorization-AppKey;' \
--header 'Authorization-Sign;' \
--header 'Authorization-Token: fake_001' \
--header 'Content-Type: application/json' \
--data-raw '{
"checkin": "string",
"checkout": "string",
"room_count": 0,
"adult_count": 0,
"child_count": 0,
"child_ages": [
0
],
"city_name": "string",
"hotel_name": "string"
}'
返回响应
🟢200成功
application/json
Body
total
integer
酒店数量
hotels
array [object {7}]
必需
hotel_id
string
酒店ID
name
string
酒店名称
address
string
酒店地址
image
string
酒店封面图片
lowest_amount
number
最低价格
currency
string
币种
is_book
boolean
是否可预订
示例
{
"total": 0,
"hotels": [
{
"hotel_id": "string",
"name": "string",
"address": "string",
"image": "string",
"lowest_amount": 0,
"currency": "string",
"is_book": true
}
]
}
修改于 2025-04-15 09:31:51