message OTA_Ping
http://phuketcity.com:7080/api/ping
message OTA_HotelDescriptiveContentNotif
http://phuketcity.com:7080/api/hotel_descriptive_content_notif
» must have valid hotel email address under ContactInfo/Email path
sample RQ
Example (Ruby)
sample RQ
response= RestClient.post "http://phuketcity.com:7080/api/hotel_descriptive_content_notif", xml
message OTA_HotelAvailNotif
http://phuketcity.com:7080/api/hotel_avail_notif
» one property at a time
» MaxOccupancy attribute can be specified in StatusApplicationControl tag (optional)
» Rate attribute is required
sample RQ
» MaxOccupancy attribute can be specified in StatusApplicationControl tag (optional)
» Rate attribute is required
sample RQ
message OTA_HotelSearch
http://phuketcity.com:7080/api/hotel_search
» can request multiple properties
» first priority is RefPoint, then HotelRef (search by name), then Position
sample RQ
sample RQ with Limit
sample RQ search by name
sample RQ search by name with position
sample RQ search with filter
sample RS
» first priority is RefPoint, then HotelRef (search by name), then Position
sample RQ
sample RQ with Limit
sample RQ search by name
sample RQ search by name with position
sample RQ search with filter
sample RS
Rating
» specify in HotelDescriptiveContentNotifRQ in first tag Award attribute Rating
» invalid or unspecified Rating will be 0
» in HotelSearch <Sort By='Rating'/> will sort ascendance
» in HotelSearch <Sort By='Rating DESC'/> will sort descendance
» Rating Sort cannot be combined with Price Sort, The first Sort takes precedence
» in HotelSearchRS Rating is indicated by Rating attribute in Property tag
» invalid or unspecified Rating will be 0
» in HotelSearch <Sort By='Rating'/> will sort ascendance
» in HotelSearch <Sort By='Rating DESC'/> will sort descendance
» Rating Sort cannot be combined with Price Sort, The first Sort takes precedence
» in HotelSearchRS Rating is indicated by Rating attribute in Property tag
message OTA_HotelRes
http://phuketcity.com:7080/api/hotel_res
message POB_HotelAvail
http://phuketcity.com:7080/api/hotel_avail
message POB_HotelBook
http://phuketcity.com:7080/api/hotel_book
message POB_HotelBookID
http://phuketcity.com:7080/api/hotel_book_id
» use to inquire a particular booking id,
the system will verify if Booking ID belongs to HotelCode
sample RQ sample RS
sample RQ sample RS
message POB_Top20
http://phuketcity.com:7080/api/top20
access control
» POS element must specify valid RequestorID
» requestor id can be managed using config/pob.yml
» requestor id can be managed using config/pob.yml
encryption
» You can use anywhere in your XML by adding attribute Encrypt='1' in any element
» If you add to element then ALL attributes and text must be encrypted
» Note that inner elements do not get decrypted automatically, you must use attribute Encrypt="1" in every element that needs to be decrypted. If element has attributes and text then you must encrypt all attributes as well as text.
sample
» If you add to element then ALL attributes and text must be encrypted
» Note that inner elements do not get decrypted automatically, you must use attribute Encrypt="1" in every element that needs to be decrypted. If element has attributes and text then you must encrypt all attributes as well as text.
Correct
<PaymentCard Encrypt="1" CardCode="***encrypt***" CardNumber="***encrypt***" ExpireDate="***encrypt***">
Incorrect
<PaymentCard Encrypt="1" CardCode="VS" CardNumber="***encrypt***" ExpireDate="0506">
sample
message OTA_HotelStayInfoNotifRQ
http://phuketcity.com:7080/api/hotel_stay_info_notif
- unused for now
- must submit when guest check out and end of month
- <StayInfos HotelCode> is used to indicate hotel reporting
- <RoomRate NumberOfUnits> is used to report number of units stay
- The RevenueCategoryCode value of 9 indicates this is a Room charge
- The RevenueCategoryCode value of 12 indicates this is a Tax charge
ระบบแลกเปลี่ยนข้อมูลกลางสำหรับธุรกิจท่องเที่ยวและระบบโรงแรมลูกข่าย
