POST Hotel/PriceAndPolicyInfo

Request Information

URI Parameters

None.

Body Parameters

HotelPriceAndPolicyInfoRequest
NameDescriptionTypeAdditional information
paxPassport

string

None.

countryID

string

None.

cityID

string

None.

checkInDate

date

None.

checkOutDate

date

None.

roomRequest

Collection of HotelRoomRequestModel

None.

internalCode

string

None.

hotelID

string

None.

breakfast

string

None.

roomID

string

None.

userID

user API

string

None.

accessToken

access code getting from login

string

None.

Request Formats

application/json, text/json

Sample:
{
  "paxPassport": "sample string 1",
  "countryID": "sample string 2",
  "cityID": "sample string 3",
  "checkInDate": "2021-11-27T01:21:03.0459968+07:00",
  "checkOutDate": "2021-11-27T01:21:03.0459968+07:00",
  "roomRequest": [
    {
      "roomType": 0,
      "isRequestChildBed": true,
      "childNum": 2,
      "childAges": [
        1,
        2
      ]
    },
    {
      "roomType": 0,
      "isRequestChildBed": true,
      "childNum": 2,
      "childAges": [
        1,
        2
      ]
    }
  ],
  "internalCode": "sample string 6",
  "hotelID": "sample string 7",
  "breakfast": "sample string 8",
  "roomID": "sample string 9",
  "userID": "sample string 10",
  "accessToken": "sample string 11"
}

application/xml, text/xml

Sample:
<HotelPriceAndPolicyInfoRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Cebes.DI.H2H.Api.Models">
  <accessToken>sample string 11</accessToken>
  <userID>sample string 10</userID>
  <breakfast>sample string 8</breakfast>
  <checkInDate>2021-11-27T01:21:03.0459968+07:00</checkInDate>
  <checkOutDate>2021-11-27T01:21:03.0459968+07:00</checkOutDate>
  <cityID>sample string 3</cityID>
  <countryID>sample string 2</countryID>
  <hotelID>sample string 7</hotelID>
  <internalCode>sample string 6</internalCode>
  <paxPassport>sample string 1</paxPassport>
  <roomID>sample string 9</roomID>
  <roomRequest>
    <HotelRoomRequestModel>
      <childAges xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
        <d4p1:int>1</d4p1:int>
        <d4p1:int>2</d4p1:int>
      </childAges>
      <childNum>2</childNum>
      <isRequestChildBed>true</isRequestChildBed>
      <roomType>Single</roomType>
    </HotelRoomRequestModel>
    <HotelRoomRequestModel>
      <childAges xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
        <d4p1:int>1</d4p1:int>
        <d4p1:int>2</d4p1:int>
      </childAges>
      <childNum>2</childNum>
      <isRequestChildBed>true</isRequestChildBed>
      <roomType>Single</roomType>
    </HotelRoomRequestModel>
  </roomRequest>
</HotelPriceAndPolicyInfoRequest>

Response Information

Resource Description

HotelPriceAndPolicyInfoResponse
NameDescriptionTypeAdditional information
paxPassport

string

None.

countryID

string

None.

cityID

string

None.

cityName

string

None.

checkInDate

date

None.

checkOutDate

date

None.

roomRequest

Collection of HotelRoomRequestModel

None.

internalCode

string

None.

hotelID

string

None.

hotelName

string

None.

breakfast

string

None.

roomID

string

None.

commission

decimal number

None.

totalPrice

decimal number

None.

isEnableBooking

boolean

None.

cancelPolicy

string

None.

isAgentDebtOverdue

boolean

None.

bookingType

string

None.

specialRequestArray

Collection of SpecialRequestArray

None.

additionalInformation

string

None.

specialRequestArrayRequired

boolean

None.

bedTypes

Collection of BedType

None.

mandatoryPaxPerRoom

boolean

None.

isPackageDeal

boolean

None.

isMandatoryFee

boolean

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:
{
  "paxPassport": "sample string 1",
  "countryID": "sample string 2",
  "cityID": "sample string 3",
  "cityName": "sample string 4",
  "checkInDate": "2021-11-27T01:21:03.0615972+07:00",
  "checkOutDate": "2021-11-27T01:21:03.0615972+07:00",
  "roomRequest": [
    {
      "roomType": 0,
      "isRequestChildBed": true,
      "childNum": 2,
      "childAges": [
        1,
        2
      ]
    },
    {
      "roomType": 0,
      "isRequestChildBed": true,
      "childNum": 2,
      "childAges": [
        1,
        2
      ]
    }
  ],
  "internalCode": "sample string 7",
  "hotelID": "sample string 8",
  "hotelName": "sample string 9",
  "breakfast": "sample string 10",
  "roomID": "sample string 11",
  "commission": 12.0,
  "totalPrice": 13.0,
  "isEnableBooking": true,
  "cancelPolicy": "sample string 15",
  "isAgentDebtOverdue": true,
  "bookingType": "sample string 17",
  "specialRequestArray": [
    {
      "ID": "sample string 1",
      "description": "sample string 2"
    },
    {
      "ID": "sample string 1",
      "description": "sample string 2"
    }
  ],
  "additionalInformation": "sample string 18",
  "specialRequestArrayRequired": true,
  "bedTypes": [
    {
      "ID": "sample string 1",
      "bed": "sample string 2"
    },
    {
      "ID": "sample string 1",
      "bed": "sample string 2"
    }
  ],
  "mandatoryPaxPerRoom": true,
  "isPackageDeal": true,
  "isMandatoryFee": true,
  "respTime": "2021-11-27T01:21:03.0615972+07:00",
  "userID": "sample string 24",
  "accessToken": "sample string 25",
  "status": "sample string 26",
  "respMessage": "sample string 27"
}

application/xml, text/xml

Sample:
<HotelPriceAndPolicyInfoResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Cebes.DI.H2H.Api.Models">
  <accessToken>sample string 25</accessToken>
  <respMessage>sample string 27</respMessage>
  <respTime>2021-11-27T01:21:03.0615972+07:00</respTime>
  <status>sample string 26</status>
  <userID>sample string 24</userID>
  <additionalInformation>sample string 18</additionalInformation>
  <bedTypes>
    <BedType>
      <ID>sample string 1</ID>
      <bed>sample string 2</bed>
    </BedType>
    <BedType>
      <ID>sample string 1</ID>
      <bed>sample string 2</bed>
    </BedType>
  </bedTypes>
  <bookingType>sample string 17</bookingType>
  <breakfast>sample string 10</breakfast>
  <cancelPolicy>sample string 15</cancelPolicy>
  <checkInDate>2021-11-27T01:21:03.0615972+07:00</checkInDate>
  <checkOutDate>2021-11-27T01:21:03.0615972+07:00</checkOutDate>
  <cityID>sample string 3</cityID>
  <cityName>sample string 4</cityName>
  <commission>12</commission>
  <countryID>sample string 2</countryID>
  <hotelID>sample string 8</hotelID>
  <hotelName>sample string 9</hotelName>
  <internalCode>sample string 7</internalCode>
  <isAgentDebtOverdue>true</isAgentDebtOverdue>
  <isEnableBooking>true</isEnableBooking>
  <isMandatoryFee>true</isMandatoryFee>
  <isPackageDeal>true</isPackageDeal>
  <mandatoryPaxPerRoom>true</mandatoryPaxPerRoom>
  <paxPassport>sample string 1</paxPassport>
  <roomID>sample string 11</roomID>
  <roomRequest>
    <HotelRoomRequestModel>
      <childAges xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
        <d4p1:int>1</d4p1:int>
        <d4p1:int>2</d4p1:int>
      </childAges>
      <childNum>2</childNum>
      <isRequestChildBed>true</isRequestChildBed>
      <roomType>Single</roomType>
    </HotelRoomRequestModel>
    <HotelRoomRequestModel>
      <childAges xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
        <d4p1:int>1</d4p1:int>
        <d4p1:int>2</d4p1:int>
      </childAges>
      <childNum>2</childNum>
      <isRequestChildBed>true</isRequestChildBed>
      <roomType>Single</roomType>
    </HotelRoomRequestModel>
  </roomRequest>
  <specialRequestArray>
    <SpecialRequestArray>
      <ID>sample string 1</ID>
      <description>sample string 2</description>
    </SpecialRequestArray>
    <SpecialRequestArray>
      <ID>sample string 1</ID>
      <description>sample string 2</description>
    </SpecialRequestArray>
  </specialRequestArray>
  <specialRequestArrayRequired>true</specialRequestArrayRequired>
  <totalPrice>13</totalPrice>
</HotelPriceAndPolicyInfoResponse>