Skip to content

获取酒店,房型接口

  • 请求方式: GET
  • 请求地址: /nsAgentHotel/getInfo?appid=921a345cd6944b4c&template=1761543988&sign=154fb7e3ea8ad4fd7efca03107cbd460&eid=00503001

请求参数(Query)

参数类型必填说明示例
appidstringappid921a345cd6944b4c
templatestring十位时间戳1761543988
signstring签名(md5(‘nsAgent’+appid+secretKey+template))154fb7e3ea8ad4fd7efca03107cbd460
eidstringeid00503001

响应示例

json
{
	"msg": "",
	"url": "",
	"success": true,
	"status": "success",
	"data": {
		"id": 3233,
		"eid": "00503001",
		"name": "乐韵兴康养中心(北戴河老虎石店)",
		"address": "保二路10号",
		"tel": "0335-7520810",
		"gid": 2440802736,
		"rooms": [
			{
				"id": 1082759,
				"name": "【别墅区】尊享大床房",
				"elong_room_type_code": "1044",
				"for_elong_room": 1,
				"plans": [
					{
						"id": 1667132,
						"breakfast": 0,
						"sale": "2",
						"room_type_id": 1082759
					}
				]
			},
			{
				"id": 1082758,
				"name": "【别墅区】尊享亲子房",
				"elong_room_type_code": "1043",
				"for_elong_room": 1,
				"plans": [
					{
						"id": 1667130,
						"breakfast": 0,
						"sale": "2",
						"room_type_id": 1082758
					}
				]
			},
			{
				"id": 1082757,
				"name": "特惠房",
				"elong_room_type_code": "1042",
				"for_elong_room": 1,
				"plans": [
					{
						"id": 1667128,
						"breakfast": 0,
						"sale": "2",
						"room_type_id": 1082757
					}
				]
			},
			{
				"id": 1082756,
				"name": "精选大床房",
				"elong_room_type_code": "1041",
				"for_elong_room": 1,
				"plans": [
					{
						"id": 1667135,
						"breakfast": 0,
						"sale": "2",
						"room_type_id": 1082756
					}
				]
			},
			{
				"id": 1082755,
				"name": "精选家庭房",
				"elong_room_type_code": "1040",
				"for_elong_room": 1,
				"plans": [
					{
						"id": 1667134,
						"breakfast": 0,
						"sale": "2",
						"room_type_id": 1082755
					}
				]
			},
			{
				"id": 1082754,
				"name": "精选标准间",
				"elong_room_type_code": "1029",
				"for_elong_room": 1,
				"plans": [
					{
						"id": 1667136,
						"breakfast": 0,
						"sale": "2",
						"room_type_id": 1082754
					}
				]
			},
			{
				"id": 1082753,
				"name": "豪华套间",
				"elong_room_type_code": "1026",
				"for_elong_room": 1,
				"plans": [
					{
						"id": 1667129,
						"breakfast": 0,
						"sale": "2",
						"room_type_id": 1082753
					}
				]
			},
			{
				"id": 1082752,
				"name": "舒适三人间",
				"elong_room_type_code": "1023",
				"for_elong_room": 1,
				"plans": [
					{
						"id": 1667127,
						"breakfast": 0,
						"sale": "2",
						"room_type_id": 1082752
					}
				]
			}
		]
	},
	"code": 0
}
json
{
	"msg": "酒店不存在",
	"url": "",
	"success": false,
	"status": "error",
	"data": [],
	"code": 1
}