POST Hotel/DetailInfo
Request Information
URI Parameters
None.
Body Parameters
HotelDetailInfoRequestName | Description | Type | Additional information |
---|---|---|---|
hotelID | string |
None. |
|
userID |
user API |
string |
None. |
accessToken |
access code getting from login |
string |
None. |
Request Formats
application/json, text/json
Sample:
{ "hotelID": "sample string 1", "userID": "sample string 2", "accessToken": "sample string 3" }
application/xml, text/xml
Sample:
<HotelDetailInfoRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Cebes.DI.H2H.Api.Models"> <accessToken>sample string 3</accessToken> <userID>sample string 2</userID> <hotelID>sample string 1</hotelID> </HotelDetailInfoRequest>
Response Information
Resource Description
HotelDetailInfoResponseName | Description | Type | Additional information |
---|---|---|---|
name | string |
None. |
|
description | string |
None. |
|
address | string |
None. |
|
phone | string |
None. |
|
string |
None. |
||
website | string |
None. |
|
rating | decimal number |
None. |
|
respTime |
describe time in sending response |
date |
None. |
userID |
user ID to access API |
string |
None. |
accessToken |
access token that needed to access API |
string |
None. |
status |
SUCCESS or FAILED |
string |
None. |
respMessage |
detail message of response status |
string |
None. |
Response Formats
application/json, text/json
Sample:
{ "name": "sample string 1", "description": "sample string 2", "address": "sample string 3", "phone": "sample string 4", "email": "sample string 5", "website": "sample string 6", "rating": 7.0, "respTime": "2025-01-23T00:03:37.9703265+07:00", "userID": "sample string 9", "accessToken": "sample string 10", "status": "sample string 11", "respMessage": "sample string 12" }
application/xml, text/xml
Sample:
<HotelDetailInfoResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Cebes.DI.H2H.Api.Models"> <accessToken>sample string 10</accessToken> <respMessage>sample string 12</respMessage> <respTime>2025-01-23T00:03:37.9703265+07:00</respTime> <status>sample string 11</status> <userID>sample string 9</userID> <address>sample string 3</address> <description>sample string 2</description> <email>sample string 5</email> <name>sample string 1</name> <phone>sample string 4</phone> <rating>7</rating> <website>sample string 6</website> </HotelDetailInfoResponse>