邮箱:347952660@qq.com
手机:13824342636
电话:13824342636
地址:广东省深圳市罗湖区笋岗东路3002号万通大厦20F东
发布时间:2021-06-01 15:08:26 人气:
深乐轩智慧IPTV HotelTV与Hotel PMS接口规范
HotelTV与Hotel PMS之间采用Rest API方式进行通信。接口定义入下:
一.入住客人名称查询
请求格式:http://pms-server-ip/api/xml/query_guest?RoomNo=_room_no_
例如: http://192.168.1.2/api/xml/query_guest?RoomNo=B212
当Hotel PMS收到该请求后,把查询结果送回,格式如下:
<response>
<GuestList>
<GuestItem>
<GuestName>张三</GuestName>
<Gender>male</Gender>
</GuestItem>
<GuestItem>
<GuestName>李四</GuestName>
<Gender>female</Gender>
</GuestItem>
</GuestList>
</response>
说明:
GuestName:客户名称
Gender:性别,男性为male,女性为female。
二.账单查询
请求格式:http://pms-server-ip/api/xml/query_bill?RoomNo=_room_no_
例如: http://192.168.1.2/api/xml/query_bill?RoomNo=B212
当Hotel PMS收到该请求后,把查询结果送回,格式如下:
<response>
<BillList>
<BillItem>
<GuestAccount>G00000003</GuestAccount>
<RoomNo>B212</RoomNo>
<BillTime>2015-01-03 13:00:00</BillTime>
<ProductName>餐饮</ProductName>
<ProductName_en>FoodCharge</ProductName_en>
<BillPrice>1024.78</BillPrice>
</BillItem>
<BillItem>
<GuestAccount>G00000003</GuestAccount>
<RoomNo>B212</RoomNo>
<BillTime>2015-01-03 10:00:08</BillTime>
<ProductName>房费</ProductName>
<ProductName_en>RoomCharge</ProductName_en>
<BillPrice>288</BillPrice>
</BillItem>
相关推荐