获取房态接口
一、接口名称:
getRoomStatusDirect
二、接口说明:
获取房态有关信息,房态渠道Ctrip,Quanr ,B2B,ChannelA,Share
三、输入参数:
| 父节点 | 名称 | 编码 | 类型 | 必填 | 描述 |
|---|---|---|---|---|---|
| 请求信息 | requestor | RequestorType | y | ||
| 渠道 | channel | SaleStatusChannel | y | ||
| 酒店id | hotelId | int | y | ||
| 房型id | roomIds | List |
y | 一次不能超过30个房型 | |
| 起始日期 | startDate | Calendar | y | ||
| 结束日期 | endDate | Calendar | y |
四、输入参数示例:
{
"requestor": { //请求方信息
"invoker": "String",
"operatorName": "String",
"opClientIP": "String",
"userId": 0,
"languageType": "String"
},
"channel":"B2B",
"hotelId":4794451,
"roomIds":[96815247],
"startDate":"/Date(1524644041671+0800)/",
"endDate":"/Date(1524730441671+0800)/"
}
五、输出参数示例:
{
"ResponseStatus": {
"Timestamp": "/Date(1516876448998+0800)/",
"Ack": "Success",
"Errors": [],
"Build": null,
"Version": "v1",
"Extension": null
},
"resultStatus": {
"resultCode": 0,
"resultMsg": "success"
},
"channelRoomStatus": [
{
"roomId": 96815247,
"effectDate": "/Date(1524585600000+0800)/", //生效日期
"saleStatus": 1 //房态:0满房1销售2限量
},
// ……
]
}