POST Hotel/BookingDetail
Request Information
URI Parameters
None.
Body Parameters
HotelBookingDetailRequest| Name | Description | Type | Additional information |
|---|---|---|---|
| reservationNo | string |
None. |
|
| osRefNo | string |
None. |
|
| agentOsRef | string |
None. |
|
| userID |
user API |
string |
None. |
| accessToken |
access code getting from login |
string |
None. |
Request Formats
application/json, text/json
Sample:
{
"reservationNo": "sample string 1",
"osRefNo": "sample string 2",
"agentOsRef": "sample string 3",
"userID": "sample string 4",
"accessToken": "sample string 5"
}
application/xml, text/xml
Sample:
<HotelBookingDetailRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Cebes.DI.H2H.Api.Models"> <accessToken>sample string 5</accessToken> <userID>sample string 4</userID> <agentOsRef>sample string 3</agentOsRef> <osRefNo>sample string 2</osRefNo> <reservationNo>sample string 1</reservationNo> </HotelBookingDetailRequest>
Response Information
Resource Description
HotelBookingDetailResponse| Name | Description | Type | Additional information |
|---|---|---|---|
| bookingDetail | HotelBookingDetailModel |
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:
{
"bookingDetail": {
"bookingDate": "2025-10-28T14:36:34.3715193+07:00",
"reservationNo": "sample string 2",
"osRefNo": "sample string 3",
"voucherNo": "sample string 4",
"agentOsRef": "sample string 5",
"hotelName": "sample string 6",
"hotelAddress": "sample string 7",
"roomName": "sample string 8",
"checkInDate": "2025-10-28T14:36:34.3715193+07:00",
"checkOutDate": "2025-10-28T14:36:34.3715193+07:00",
"roomNum": 11,
"totalPrice": 12.0,
"bookingStatus": "sample string 13",
"requestDescription": "sample string 14",
"breakfast": "sample string 15",
"refundDate": "2025-10-28T14:36:34.3715193+07:00",
"refund": 17.0,
"cancelFee": 18.0,
"cancelationRemark": "sample string 19",
"cancelationPolicy": "sample string 20",
"issuedTimeLimit": "2025-10-28T14:36:34.3715193+07:00"
},
"respTime": "2025-10-28T14:36:34.3715193+07:00",
"userID": "sample string 2",
"accessToken": "sample string 3",
"status": "sample string 4",
"respMessage": "sample string 5"
}
application/xml, text/xml
Sample:
<HotelBookingDetailResponse 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>
<respMessage>sample string 5</respMessage>
<respTime>2025-10-28T14:36:34.3715193+07:00</respTime>
<status>sample string 4</status>
<userID>sample string 2</userID>
<bookingDetail>
<agentOsRef>sample string 5</agentOsRef>
<bookingDate>2025-10-28T14:36:34.3715193+07:00</bookingDate>
<bookingStatus>sample string 13</bookingStatus>
<breakfast>sample string 15</breakfast>
<cancelFee>18</cancelFee>
<cancelationPolicy>sample string 20</cancelationPolicy>
<cancelationRemark>sample string 19</cancelationRemark>
<checkInDate>2025-10-28T14:36:34.3715193+07:00</checkInDate>
<checkOutDate>2025-10-28T14:36:34.3715193+07:00</checkOutDate>
<hotelAddress>sample string 7</hotelAddress>
<hotelName>sample string 6</hotelName>
<issuedTimeLimit>2025-10-28T14:36:34.3715193+07:00</issuedTimeLimit>
<osRefNo>sample string 3</osRefNo>
<refund>17</refund>
<refundDate>2025-10-28T14:36:34.3715193+07:00</refundDate>
<requestDescription>sample string 14</requestDescription>
<reservationNo>sample string 2</reservationNo>
<roomName>sample string 8</roomName>
<roomNum>11</roomNum>
<totalPrice>12</totalPrice>
<voucherNo>sample string 4</voucherNo>
</bookingDetail>
</HotelBookingDetailResponse>