推送珞瑾酒店信息接口
渠道方应提供该接口供珞瑾推送酒店信息 渠道方内部做好酒店之间的映射关系 且幂等 即重复推送的时候 返回匹配好的渠道方酒店id
成功返回的时候 返回带有hotelId(渠道方酒店id) 如果匹配不上 那么整体返回code为-1 message 为"酒店尚未匹配到"
调用方式
珞瑾调用渠道方
接口地址
请求参数
PmsHotelInfoRq
参数名称 | 参数类型 | 是否可为空 | 说明 |
---|---|---|---|
pmsHotelId | Integer | 否 | 珞瑾酒店id |
name | String | 否 | 珞瑾酒店名称 |
cityId | String | 否 | 珞瑾城市id 详情见珞瑾提供的城市编码表 |
district | String | 否 | 珞瑾酒店所在的区县编号 详情见珞瑾提供的城市编码表 |
address | String | 否 | 酒店地址 |
latitude | String | 否 | 纬度 |
longitude | String | 否 | 经度 |
positionType | String | 否 | 百度 (珞瑾提供的经纬度都是百度经纬度) |
tel | String | 否 | 酒店联系电话 |
rooms | Integer | 否 | 房间数 |
ctripHotelId | String | 是 | 携程酒店id |
ctripHotelName | String | 是 | 携程酒店名称 |
fliggyHotelId | String | 是 | 飞猪酒店id |
fliggyHotelName | String | 是 | 飞猪酒店名称 |
meituanHotelId | String | 是 | 美团酒店id |
meituanHotelName | String | 是 | 美团酒店名称 |
description | String | 是 | 酒店描述 |
返回参数
参数名称 | 数据类型 | 是否可为空 | 节点描述 |
---|---|---|---|
code | Integer | 否 | 返回code 非200为失败 |
message | String | 是 | 错误信息 |
result | ThirdHotelInfoRp | 否 | 返回结果 |
ThirdHotelInfoRp
参数名称 | 参数类型 | 是否可为空 | 说明 |
---|---|---|---|
hotelId | String | 否 | 渠道方酒店id |
hotelName | String | 否 | 渠道方酒店名称 |
示例推送数据:
{
"address": "XXXXX",
"cityId": "9999",
"ctripHotelId": "9999",
"ctripHotelName": "XXXXX",
"description": "",
"district": "XXXXX",
"fliggyHotelId": "XXXXX",
"fliggyHotelName": "XXXXX",
"latitude": "30.00",
"longitude": "120.00",
"meituanHotelId": "",
"meituanHotelName": "XXXXX",
"name": "XXXXX",
"pmsHotelId": 9999,
"positionType": "百度",
"rooms": 9999,
"tel": "+86-11111111111"
}
示例返回数据:
{
"code": 200,
"message": "成功",
"result": {
"hotelId": "xxxxx",
"hotelName": "xxxxx"
}
}