房型信息
约 742 字大约 2 分钟
POST 房型静态信息
POST /v1.0/static/roomTypeInfo
请求参数
{
"hotelIds": [
"11775754",
"420032"
],
"language": ""
}| 名称 | 类型 | 必选 | 约束 | 中文名 | 说明 |
|---|---|---|---|---|---|
| hotels | List | 必填 | none | 酒店编号 | 酒店编号:最多50个酒店 |
| language | string | 非必填 | none | 语言 | 语言:中文:zh-CN,英文:en-US |
请求示例
curl --location --request POST '{{domain}}v1.0/static/roomTypeInfo' \
--header 'Authorization: PHT apikey={{api_key}},signature={{signature}},timestamp={{timestamp}}' \
--header 'api_key: {{api_key}}' \
--header 'Content-Type: application/json' \
--header 'Accept: */*' \
--header 'Connection: keep-alive' \
--data-raw '{
"hotelIds":[
"11775754",
"420032"
],
"language":""
}'返回示例
{
"responseStatus": "SUCCESS",
"version": "v1.0",
"hotels": [
{
"hotelId": "420032",
"roomList": [
{
"roomId": "2535250",
"roomName": "豪华套房",
"maxOccupancy": 2,
"description": "config.js 张特大床90 平方米 布局 - 用餐区和起居区放松 - 壁炉网络 - 免费 WiFi 和有线上网接入服务 娱乐 - 液晶电视带有收费频道和收费电影餐饮 - 咖啡壶/茶具、迷你吧、24 小时客房送餐服务和免费瓶装水舒适睡眠 - 高档床上用品、夜床服务和床单 浴室 - 私人浴室、浴衣,独立浴缸和淋浴备有雨淋花洒实用 - 保险箱、免费报纸和熨斗及熨板;如有需要,可提供折叠床/加床和免费婴儿床舒适设施/服务 - 恒温控制空调和每日客房清洁无障碍设施 - 浴室扶手无烟客房可要求提供连通房/毗邻房,视供应情况而定",
"floor": "config.js-3F",
"useArea": "90m²",
"bedTypeInfos": {
"37321": {
"id": "37321",
"description": "config.js 张特大床",
"configuration": [
{
"type": "KingBed",
"size": "King",
"quantity": 1
}
]
}
},
"amenities": {
"1073743560": {
"id": "1073743560",
"name": "浴室扶手",
"value": null,
"categories": null
},
"2034": {
"id": "2034",
"name": "高档床品",
"value": null,
"categories": null
},
"1073744653": {
"id": "1073744653",
"name": "隐藏式字幕电视",
"value": null,
"categories": null
},
"2396": {
"id": "2396",
"name": "卫星电视服务",
"value": null,
"categories": null
},
"2030": {
"id": "2030",
"name": "房内恒温控制(空调)",
"value": null,
"categories": [
"air_conditioning"
]
},
"1073744217": {
"id": "1073744217",
"name": "电源适配器/充电器",
"value": null,
"categories": null
}
},
"images": [
{
"caption": "客房",
"hero_image": true,
"category": 21001,
"links": {
"350px": {
"method": "GET",
"href": "https://i.travelapi.com/lodging/5000000/4630000/4624400/4624387/00b32642_b.jpg",
"expires": null
},
"70px": {
"method": "GET",
"href": "https://i.travelapi.com/lodging/5000000/4630000/4624400/4624387/00b32642_t.jpg",
"expires": null
}
}
},
{
"caption": "客房",
"hero_image": false,
"category": 21001,
"links": {
"350px": {
"method": "GET",
"href": "https://i.travelapi.com/lodging/5000000/4630000/4624400/4624387/9313725a_b.jpg",
"expires": null
},
"70px": {
"method": "GET",
"href": "https://i.travelapi.com/lodging/5000000/4630000/4624400/4624387/9313725a_t.jpg",
"expires": null
}
}
},
{
"caption": "酒廊",
"hero_image": false,
"category": 82001,
"links": {
"350px": {
"method": "GET",
"href": "https://i.travelapi.com/lodging/5000000/4630000/4624400/4624387/871f58db_b.jpg",
"expires": null
}
}
}
]
}
]
}
],
"remark": ""
}| 属性 | 类型 | 说明 |
|---|---|---|
| responseStatus | string | 状态 |
| version | string | 版本号 |
| remark | string | 备注 |
| hotels | List | 酒店集合 |
| hotelId | string | 酒店编号 |
| roomList | List | 房型列表 |
| roomId | string | 房型编号 |
| roomName | string | 房型名称 |
| maxOccupancy | int | 最大成人人数 |
| description | string | 房型描述 |
| floor | string | 楼层 |
| useArea | string | 面积 单位(m²) |
| bedTypeInfos | List | 床型集合 |
| bedTypeInfo | List | 床型明细 |
| id | string | 床型Id |
| description | string | 床型描述 |
| configuration | list | 床型配置 |
| type | string | 床型类型 |
| size | string | 床型大小 |
| quantity | int | 床型数量 |
| amenities | list | 房型设备 |
| id | string | 设备ID |
| name | string | 设备名称 |
| value | string | 设备值 |
| categories | [string] | 设备类别的列表 |
| images | list | 房型图片 |
状态码
| 编码 | 说明 |
|---|---|
| SUCCESS | 成功 |
| NO_FIND | 无数据 |
| UNAUTHORIZED | 认证校验失败 |
| HOTEL_SIZE | 酒店数量超过最大值 |
| SUPPLIER_SERVER_ERROR | 系统或接口异常 |