OTA/RMS

Get Bookings to eZee

This API allows you to push bookings to eZee. In this mechanism, eZee will provide an endpoint to OTA/RMS where they can send bookings.

This mechanism is basically used to maintain sync by pushing us latest timely updates thereby keeping our system up-to date.

The request and response will be placed in XML format. The web service responds to HTTP POST requests.

End Point URL: Provided by eZee

Response

NameTypeDescriptionExample
HotelCodeINT(11)Unique Hotel codexxxx
BookingIDVARCHAR(255)Unique Booking id10125, 86436, B4525 etc
StatusVARCHAR(255)Booking Status i.e. New, Modify, CancelNew
SourceVARCHAR(1000)Booking generated sourceFor example Booking.com, Expedia etc.
BookingTran.*Here * denotes Credit*Card Informations like “Code CCNo CCType” “CCExpiryDate”
BookingTran.RateTypeIDINT(20)Unique RateType ID123400000000000001
BookingTran.RateTypeVARCHAR(1000)RateType NameGrand Sea View Junior Suite
BookingTran.RoomTypeCodeINT(20)Unique RoomType Code123400000000000001
BookingTran.RoomTypeNameVARCHAR(1000)RoomType NameGarden View Studio Room
BookingTran.StartDATETIMECheck-in date2021-03-05 [format : yyyy-mm-dd]
BookingTran.EndDATETIMECheck-out date2021-03-05 [format : yyyy-mm-dd]
BookingTran.TotalRateDECIMAL(19,4)Rate on room in amount1500.43
BookingTran.TotalDiscountDECIMAL(19,4)Discount on room in
BookingTran.TotalExtraChargeDECIMAL(19,4)Extra charges in amount
BookingTran.TotalTaxDECIMAL(19,4)Total Tax amount
BookingTran.TotalPaymentDECIMAL(19,4)Payment for room in2500.54
BookingTran.VehicleVARCHAR(255)Detail of vehicle
BookingTran.PickupDateDATETIMEPickup date2021-03-05 etc
BookingTran.PickupTimeDATETIMEPickup time
BookingTran.CommentVARCHAR(1000)Additional Information or comment
BookingTran.RentalInfo.EffectiveDateDATETIMEDate for which the given details in the same block are effective2021-03-05 etc effectiveDate particular effective date
BookingTran.RentalInfo.AdultINT(11)No. of Adults
BookingTran.RentalInfo.ChildINT(11)No. of Childs
BookingTran.RentalInfo.RentDECIMAL(19,4)Room rental amount
BookingTran.ExtraChargeDECIMAL(19,4)Extra charges in amount
BookingTran.RentalInfo.TaxDECIMAL(19,4)Tax on Room rental amount
BookingTran.RentalInfo.DiscountDECIMAL(19,4)Discount on rental room in

Sample Booking XML for Single Room Booking

<?xml version="1.0" encoding="UTF-8"?>
<RES_Response>
    <Reservations>
        <Reservation>
            <HotelCode>xxxx</HotelCode>
            <BookingID>7002016070604</BookingID>
            <Status>New</Status>
            <Source>Test</Source>
            <Code></Code> 
            <CCNo></CCNo>
            <CCType></CCType>
            <CCExpiryDate></CCExpiryDate>
            <CardHoldersName></CardHoldersName>
            <BookingTran>
                <SubBookingId>1</SubBookingId>
                <RateTypeID>1234000000000008</RateTypeID>
                <RateType>Deluxe single</RateType>
                <RoomTypeCode>1234000000000001</RoomTypeCode>
                <RoomTypeName>Deluxe</RoomTypeName>
                <Start>2021-03-05</Start> 
                <End>2021-03-07</End> 
                <TotalRate>1000.00</TotalRate>
                <TotalDiscount>0.00</TotalDiscount>
                <TotalExtraCharge>0.00</TotalExtraCharge>
                <TotalTax>0.00</TotalTax>
                <TotalPayment>0.00</TotalPayment>
                <Salutation>Ms</Salutation>
                <FirstName>test</FirstName>
                <LastName>name</LastName>
                <Gender>Male</Gender>
                <Address></Address>
                <City>Goa</City>
                <State></State>
                <Country></Country>
                <Zipcode>403604</Zipcode>
                <Phone>123456</Phone>
                <Mobile>+91 1234567890</Mobile>
                <Fax></Fax>
                <Email>ezee@test.com</Email>
                <TransportationMode></TransportationMode>
                <Vehicle></Vehicle>
                <PickupDate></PickupDate>
                <PickupTime></PickupTime>
                <Comment>Reservation : test</Comment>
                <RentalInfo>
                    <EffectiveDate>2021-03-05</EffectiveDate>
                    <Adult>2</Adult>
                    <Child>0</Child>
                    <Rent>1000.00</Rent>
                    <ExtraCharge>0.00</ExtraCharge>
                    <Tax>1000.00</Tax>
                    <Discount>0.00</Discount>
                </RentalInfo>
            </BookingTran>
        </Reservation>
    </Reservations>
</RES_Response>

Sample Booking XML for Multiple Rooms in a Single Booking [Group of rooms in the same booking]

If you want to send multiple rooms with a single booking then you have to send a separate for each room in the booking XML with different SubBookingId id.

<?xml version="1.0" encoding="UTF-8"?>
<RES_Response>
    <Reservations>
        <Reservation>
            <HotelCode>xxxx</HotelCode>
            <BookingID>7002016070604</BookingID>
            <Status>New</Status>
            <Source>Test</Source>
            <Code></Code> 
            <CCNo></CCNo>
            <CCType></CCType>
            <CCExpiryDate></CCExpiryDate>
            <CardHoldersName></CardHoldersName>
            <BookingTran>
                <SubBookingId>1</SubBookingId>
                <RateTypeID>1234000000000008</RateTypeID>
                <RateType>Deluxe single</RateType>
                <RoomTypeCode>1234000000000001</RoomTypeCode>
                <RoomTypeName>Deluxe</RoomTypeName>
                <Start>2021-03-05</Start> 
                <End>2021-03-07</End> 
                <TotalRate>1000.00</TotalRate>
                <TotalDiscount>0.00</TotalDiscount>
                <TotalExtraCharge>0.00</TotalExtraCharge>
                <TotalTax>0.00</TotalTax>
                <TotalPayment>0.00</TotalPayment>
                <Salutation>Ms</Salutation>
                <FirstName>test</FirstName>
                <LastName>name</LastName>
                <Gender>Male</Gender>
                <Address></Address>
                <City>Goa</City>
                <State></State>
                <Country></Country>
                <Zipcode>403604</Zipcode>
                <Phone>123456</Phone>
                <Mobile>+91 1234567890</Mobile>
                <Fax></Fax>
                <Email>ezee@test.com</Email>
                <TransportationMode></TransportationMode>
                <Vehicle></Vehicle>
                <PickupDate></PickupDate>
                <PickupTime></PickupTime>
                <Comment>Reservation : test</Comment>
                <RentalInfo>
                    <EffectiveDate>2021-03-05</EffectiveDate>
                    <Adult>2</Adult>
                    <Child>0</Child>
                    <Rent>1000.00</Rent>
                    <ExtraCharge>0.00</ExtraCharge>
                    <Tax>1000.00</Tax>
                    <Discount>0.00</Discount>
                </RentalInfo>
            </BookingTran>
            <BookingTran>
                  <SubBookingId>2</SubBookingId>
                  <RateTypeID>1234000000000008</RateTypeID>
                  <RateType>Deluxe single</RateType>
                  <RoomTypeCode>1234000000000001</RoomTypeCode>
                  <RoomTypeName>Deluxe</RoomTypeName>
                  <Start>2021-03-05</Start>
                  <End>2021-03-07</End>
                  <TotalRate>1000.00</TotalRate>
                  <TotalDiscount>0.00</TotalDiscount>
                  <TotalExtraCharge>0.00</TotalExtraCharge>
                  <TotalTax>0.00</TotalTax>
                  <TotalPayment>0.00</TotalPayment>
                  <Salutation>Ms</Salutation>
                  <FirstName>test</FirstName>
                  <LastName>name</LastName>
                  <Gender>Male</Gender>
                  <Address></Address>
                  <City>Goa</City>
                  <State></State>
                  <Country></Country>
                  <Zipcode>403604</Zipcode>
                  <Phone>123456</Phone>
                  <Mobile>+91 1234567890</Mobile>
                  <Fax></Fax>
                  <Email>ezee@test.com</Email>
                  <TransportationMode></TransportationMode>
                  <Vehicle></Vehicle>
                  <PickupDate></PickupDate>
                  <PickupTime></PickupTime>
                  <Comment>Reservation : test</Comment>
                  <RentalInfo>
                      <EffectiveDate>2021-03-05</EffectiveDate>
                      <Adult>2</Adult>
                      <Child>0</Child>
                      <Rent>1000.00</Rent>
                      <ExtraCharge>0.00</ExtraCharge>
                      <Tax>1000.00</Tax>
                     <Discount>0.00</Discount>
                 </RentalInfo>
                 </BookingTran>
        </Reservation>
    </Reservations>
</RES_Response>

Sample Booking XML for multiple reservation in single request [ For Multiple New/Modify/Cancel Booking ]

<?xml version="1.0" encoding="UTF-8"?>
<RES_Response>
    <Reservations>
        <Reservation>
            <HotelCode>xxxx</HotelCode>
            <BookingID>7002016070604</BookingID>
            <Status>New</Status>
            <Source>Test</Source>
            <Code></Code> 
            <CCNo></CCNo>
            <CCType></CCType>
            <CCExpiryDate></CCExpiryDate>
            <CardHoldersName></CardHoldersName>
            <BookingTran>
                <SubBookingId>138</SubBookingId>
                <RateTypeID>1234000000000008</RateTypeID>
                <RateType>Deluxe single</RateType>
                <RoomTypeCode>1234000000000001</RoomTypeCode>
                <RoomTypeName>Grand Sea View Junior Suite</RoomTypeName>
                <Start>2021-03-05</Start> 
                <End>2021-03-06</End> 
                <TotalRate>30243.50</TotalRate>
                <TotalDiscount>0.00</TotalDiscount>
                <TotalExtraCharge>0.00</TotalExtraCharge>
                <TotalTax>0.00</TotalTax>
                <TotalPayment>0.00</TotalPayment>
                <TACommision>0.00</TACommision>
                <Salutation />
                <FirstName>Test</FirstName>
                <LastName>Test</LastName>
                <Gender>Male</Gender>
                <Address />
                <City>London</City>
                <State />
                <Country>United Kingdom</Country>
                <Zipcode />
                <Phone>+447464942724</Phone>
                <Mobile />
                <Fax />
                <Email />
                <TransportationMode />
                <Vehicle />
                <PickupDate />
                <PickupTime />
                <Comment>
Reservation : ** THIS RESERVATION HAS BEEN PRE-PAID **Guest has paid: PHP 44100.07
You have a booker that prefers communication by email ,Breakfast is included in the room rate.,
Non-Smoking
                </Comment>
                <RentalInfo>
                    <EffectiveDate>2021-03-01</EffectiveDate>
                    <Adult>2</Adult>
                    <Child>0</Child>
                    <Rent>15121.75</Rent>
                    <ExtraCharge>0.00</ExtraCharge>
                    <Tax>1000.00</Tax>
                    <Discount>0.00</Discount>
                </RentalInfo>
                <RentalInfo>
                    <EffectiveDate>2021-03-02</EffectiveDate>
                    <Adult>2</Adult>
                    <Child>0</Child>
                    <Rent>15121.75</Rent>
                    <ExtraCharge>0.00</ExtraCharge>
                    <Tax>1000.00</Tax>
                    <Discount>0.00</Discount>
                </RentalInfo>
            </BookingTran>
        </Reservation>
        <Reservation>
            <HotelCode>[Hotel Code]</HotelCode>
            <BookingID>7002016070604</BookingID>
            <Status>New</Status>
            <Source>Test</Source>
            <Code></Code> 
            <CCNo></CCNo>
            <CCType></CCType>
            <CCExpiryDate></CCExpiryDate>
            <CardHoldersName></CardHoldersName>
            <BookingTran>
                <SubBookingId>138</SubBookingId>
                <RateTypeID>1234000000000008</RateTypeID>
                <RateType>Deluxe single</RateType>
                <RoomTypeCode>123400000000000006</RoomTypeCode>
                <RoomTypeName>Grand Sea View Junior Suite</RoomTypeName>
                <Start>2021-03-05</Start> 
                <End>2021-03-06</End> 
                <TotalRate>30243.50</TotalRate>
                <TotalDiscount>0.00</TotalDiscount>
                <TotalExtraCharge>0.00</TotalExtraCharge>
                <TotalTax>0.00</TotalTax>
                <TotalPayment>0.00</TotalPayment>
                <TACommision>0.00</TACommision>
                <Salutation />
                <FirstName>Test</FirstName>
                <LastName>Test</LastName>
                <Gender>Male</Gender>
                <Address />
                <City>London</City>
                <State />
                <Country>United Kingdom</Country>
                <Zipcode />
                <Phone>+447464942724</Phone>
                <Mobile />
                <Fax />
                <Email />
                <TransportationMode />
                <Vehicle />
                <PickupDate />
                <PickupTime />
                <Comment>
Reservation : ** THIS RESERVATION HAS BEEN PRE-PAID **Guest has paid: PHP 44100.07
You have a booker that prefers communication by email ,Breakfast is included in the room rate.,
Non-Smoking
                </Comment>
                <RentalInfo>
                    <EffectiveDate>2021-03-01</EffectiveDate>
                    <Adult>2</Adult>
                    <Child>0</Child>
                    <Rent>15121.75</Rent>
                    <ExtraCharge>0.00</ExtraCharge>
                    <Tax>1000.00</Tax>
                    <Discount>0.00</Discount>
                </RentalInfo>
                <RentalInfo>
                    <EffectiveDate>2021-03-02</EffectiveDate>
                    <Adult>2</Adult>
                    <Child>0</Child>
                    <Rent>15121.75</Rent>
                    <ExtraCharge>0.00</ExtraCharge>
                    <Tax>1000.00</Tax>
                    <Discount>0.00</Discount>
                </RentalInfo>
            </BookingTran>
        </Reservation>
    </Reservations>
</RES_Response>

Success

<?xml version="1.0" encoding="UTF-8"?>
<RES_Response>    
<Success>
        <SuccessMsg>[Success Message]</SuccessMsg>
    </Success>
    <Errors>
        <ErrorCode>[Success Code]</ErrorCode>                 
        <ErrorMessage>Success</ErrorMessage>
    </Errors>
</RES_Response>

Error

<?xml version="1.0" encoding="UTF-8"?>
<RES_Response>  
    <Errors>
        <ErrorCode>[Error Code]</ErrorCode>                 
        <ErrorMessage>[Error Message]</ErrorMessage>
    </Errors>
</RES_Response>

Error Codes

CodeMessage
-100Unsuccessful inserting reservation : Transaction already exists.
-400Unsuccessful modify reservation : Transaction is inhouse.
-500Unsuccessful cancel reservation : Transaction is inhouse.
-600Unsuccessful modify reservation : Transaction is already void/cancelled/noshowed.
-700Unsuccessful cancel reservation : Transaction is already void/cancelled/noshowed.
-700Unsuccessful cancel reservation : We have received this booking directly in cancel mode, So your channel manager account doesn’t have record of this booking.
-800No Operation : Cannot find binding Room Type or Rate Plan Ids.
-800Unsuccessful inserting reservation : Past Date Reservation.
-800Unsuccessful modify reservation : Room is not added because of past date reservation..
-900No Operation : We have received this booking directly in modify mode, So your channel manager account doesn’t have record of this booking.
-900Unsuccessful inserting reservation : Some technical issue raised while processing this booking.
-1000Unsuccessful reservation : Some error arised while processing channel booking.
-1000Unsuccessful reservation : No reservation,blank data received.
-1000Unsuccessful reservation : Invalid XML data received. Effective Date/Time is not received.
-1000Unsuccessful reservation : Some error arised while parsing channel booking XML.
-1000Unsuccessful reservation : No inventory exists in the system for specified reservation dates that’s why Booking is not processed further.
-1000Unsuccessful reservation : Inventory is less than the no. of rooms booked that’s why Booking is not processed further.
-1000Unsuccessful reservation : MoreThan1000daysbooking.
-1000Unsuccessful reservation : Booking is Rejected by Hotel.
-1000Unsuccessful reservation : ArrivalDate or DepartureDate is not valid.
-1002No Operation : We have received this booking directly in modify mode.

Success Codes

CodeMessage
0Successfully inserted reservation.
-300Successfully modified reservation.
-200Successfully cancelled reservation.

OTA/RMS

Push Close on Departure

This API allows you to update close on departure on OTA/RMS. eZee will be pushing Close On Departure updates on their OTA/RMS end points. The request and response will be placed in XML format. The web service responds to HTTP POST requests.

End Point URL: Provided by OTA/RMS

Parameter

NameTypeDescriptionExample
HotelCode*INT(11)Unique Hotel codexxxx
AuthCode*VARCHAR(300)Unique Authentication codexxxxxxxxxx
RatePlan->
RoomTypeID*
INT(20)/VARCHAR(20)Unique RoomType ID123400000000000001
RatePlan->
RateTypeID*
INT(20)/VARCHAR(20)Unique RateType ID123400000000000001
RatePlan->
FromDate*
DATETIMEUpdate From date [Format: yyyy-mm-dd]2021-03-05
RatePlan->
ToDate*
DATETIMEUpdate To date [Format: yyyy-mm-dd]2021-03-09
RatePlan->
COD*
INT(1)COD oprvalue [1 or 0] 1: Enable StopSell 0: Disable Stopsell1 or 0

Request

<RES_Request>
    <Request_Type>UpdateCOD</Request_Type>
    <Authentication>
        <HotelCode>xxxx</HotelCode>
        <AuthCode>xxxxxxxxxx</AuthCode>
    </Authentication>
    <RatePlan>
        <RoomTypeID>123400000000000001</RoomTypeID>
        <RateTypeID>123400000000000001</RateTypeID>
        <FromDate>2021-03-05</FromDate>
        <ToDate>2021-03-09</ToDate>
        <COD>[oprvalue]</COD>
    </RatePlan>
</RES_Request>

Response

NameTypeDescriptionExample
Success.SuccessMsgUnique Response MessageCOD Successfully Updated
Errors.ErrorCodeResponse Error Code104, 404 etc
Errors.ErrorMessageGenerate Response MessageRate type is missing etc

Success

<?xml version="1.0" encoding="UTF-8"?>
<RES_Response>
    <Success>
        <SuccessMsg>COD Updated Successfully.</SuccessMsg>
    </Success>
    <Errors>
           <ErrorCode>0</ErrorCode>
           <ErrorMessage>Success</ErrorMessage>
    </Errors>
</RES_Response>

Error

<?xml version="1.0" standalone="yes"?>
<RES_Response>
    <Errors>
        <ErrorCode>[ErrorCode]</ErrorCode>
        <ErrorMessage>[ErrorMessage]</ErrorMessage>
    </Errors>
</RES_Response>

Error Codes

CodeMessage
405Request Parsing Error
401Unauthorized request error.  (Invalid rom type/ Rate Plan, Invalid auth code or Invalid hotelcode)
400Temporary error! Please try again.

Success Codes

CodeMessage
0COD Successfully Updated

OTA/RMS

Push Close On Arrival

This API allows you to update close on arrival on OTA/RMS. eZee will be pushing Close On Arrival updates on their OTA/RMS end points. The request and response will be placed in XML format. The web service responds to HTTP POST requests.

End Point URL: Provided by OTA/RMS

Parameter

NameTypeDescriptionExample
HotelCode*INT(11)Unique Hotel codexxxx
AuthCode*VARCHAR(300)Unique Authentication codexxxxxxxxxx
RatePlan->
RoomTypeID*
INT(20)/VARCHAR(20)Unique RoomType ID123400000000000001
RatePlan->
RateTypeID*
INT(20)/VARCHAR(20)Unique RateType ID123400000000000001
RatePlan->
FromDate*
DATETIMEUpdate From date [Format: yyyy-mm-dd]2021-03-05
RatePlan->
ToDate*
DATETIMEUpdate To date [Format: yyyy-mm-dd]2021-03-09
RatePlan->
COA*
INT(1)COA oprvalue [1 or 0] 1: Enable StopSell 0: Disable Stopsell1 or 0

Request

<RES_Request>
    <Request_Type>UpdateCOA</Request_Type>
    <Authentication>
        <HotelCode>xxxx</HotelCode>
        <AuthCode>xxxxxxxxxx</AuthCode>
    </Authentication>
    <RatePlan>
        <RoomTypeID>123400000000000001</RoomTypeID>
        <RateTypeID>123400000000000001</RateTypeID>
        <FromDate>2021-03-05</FromDate>
        <ToDate>2021-03-09</ToDate>
        <COA>[oprvalue]</COA>
    </RatePlan>
</RES_Request>

Response

NameTypeDescriptionExample
Success.SuccessMsgUnique Response MessageCOA Successfully Updated
Errors.ErrorCodeResponse Error Code104, 404 etc
Errors.ErrorMessageGenerate Response MessageRate type is missing etc

Success

<?xml version="1.0" encoding="UTF-8"?>
<RES_Response>
    <Success>
        <SuccessMsg>COA Updated Successfully.</SuccessMsg>
    </Success>
    <Errors>
           <ErrorCode>0</ErrorCode>
           <ErrorMessage>Success</ErrorMessage>
    </Errors>
</RES_Response>

Error

<?xml version="1.0" standalone="yes"?>
<RES_Response>
    <Errors>
        <ErrorCode>[ErrorCode]</ErrorCode>
        <ErrorMessage>[ErrorMessage]</ErrorMessage>
    </Errors>
</RES_Response>

Error Codes

CodeMessage
405Request Parsing Error
401Unauthorized request error.  (Invalid rom type/ Rate Plan, Invalid auth code or Invalid hotelcode)
400Temporary error! Please try again.

Success Codes

CodeMessage
0COA Successfully Updated

OTA/RMS

Push Stop Sell

This API allows you to update stop sell on OTA/RMS. eZee will be pushing stop sell updates on their OTA/RMS end points. The request and response will be placed in XML format. The web service responds to HTTP POST requests.

End Point URL: Provided by OTA/RMS

Parameter

NameTypeDescriptionExample
HotelCode*INT(11)Unique Hotel codexxxx
AuthCode*VARCHAR(300)Unique Authentication codexxxxxxxxxx
RatePlan->
RoomTypeID*
INT(20)/VARCHAR(20)Unique RoomType ID123400000000000001
RatePlan->
RateTypeID*
INT(20)/VARCHAR(20)Unique RateType ID123400000000000001
RatePlan->
FromDate*
DATETIMEUpdate From date [Format: yyyy-mm-dd]2021-03-05
RatePlan->
ToDate*
DATETIMEUpdate To date [Format: yyyy-mm-dd]2021-03-09
RatePlan->
StopSell*
INT(1)Stopsell oprvalue [1 or 0] 1: Enable StopSell 0: Disable Stopsell1 or 0

Request

<RES_Request>
    <Request_Type>UpdateStopSell</Request_Type>
    <Authentication>
        <HotelCode>xxxx</HotelCode>
        <AuthCode>xxxxxxxxxx</AuthCode>
    </Authentication>
    <RatePlan>
        <RoomTypeID>123400000000000001</RoomTypeID>
        <RateTypeID>123400000000000001</RateTypeID>
        <FromDate>2021-03-05</FromDate>
        <ToDate>2021-03-09</ToDate>
        <StopSell>[oprvalue]</StopSell>
    </RatePlan>
</RES_Request>

Response

NameTypeDescriptionExample
Success.SuccessMsgUnique Response MessageStopSell Successfully Updated
Errors.ErrorCodeResponse Error Code104, 404 etc
Errors.ErrorMessageGenerate Response MessageRate type is missing etc

Success

<?xml version="1.0" encoding="UTF-8"?>
<RES_Response>
    <Success>
        <SuccessMsg>StopSell Updated Successfully.</SuccessMsg>
    </Success>
    <Errors>
           <ErrorCode>[ErrorCode]</ErrorCode>
           <ErrorMessage>[ErrorMessage]</ErrorMessage>
    </Errors>
</RES_Response>

Error

<?xml version="1.0" standalone="yes"?>
<RES_Response>
    <Errors>
        <ErrorCode>[ErrorCode]</ErrorCode>
        <ErrorMessage>[ErrorMessage]</ErrorMessage>
    </Errors>
</RES_Response>

Error Codes

CodeMessage
405Request Parsing Error
401Unauthorized request error.  (Invalid rom type/ Rate Plan, Invalid auth code or Invalid hotelcode)
400Temporary error! Please try again.

Success Codes

CodeMessage
0StopSell Successfully Updated

OTA/RMS

Push Minimum Nights

This API allows you to update minimum nights on OTA/RMS. eZee will be pushing minimum nights updates on their OTA/RMS end points. The request and response will be placed in XML format. The web service responds to HTTP POST requests.

End Point URL: Provided by OTA/RMS

Parameter

NameTypeDescriptionExample
HotelCode*INT(11)Unique Hotel codexxxx
AuthCode*VARCHAR(300)Unique Authentication codexxxxxxxxxx
RatePlan-> RoomTypeID*INT(20)/VARCHAR(20)Unique RoomType ID123400000000000001
RatePlan->
RateTypeID*
INT(20)/VARCHAR(20)Unique RateType ID123400000000000001
RatePlan->
FromDate*
DATETIMEUpdate From date [Format: yyyy-mm-dd]2021-03-05
RatePlan->
ToDate*
DATETIMEUpdate To date [Format: yyyy-mm-dd]2021-03-09
RatePlan->
MinNight*
INT(11)MinNight oprvalue2,5,10 etc

Request

<RES_Request>
    <Request_Type>UpdateMinNights</Request_Type>
    <Authentication>
        <HotelCode>xxxx</HotelCode>
        <AuthCode>xxxxxxxxxx</AuthCode>
    </Authentication>
    <RatePlan>
        <RoomTypeID>123400000000000001</RoomTypeID>
        <RateTypeID>123400000000000001</RateTypeID>
        <FromDate>2021-03-05</FromDate>
        <ToDate>2021-03-09</ToDate>
        <MinNight>2,5,10 etc</MinNight>
    </RatePlan>
</RES_Request>

Response

NameTypeDescriptionExample
Success.SuccessMsgUnique Response MessageMin Nights Successfully Updated
Errors.ErrorCodeResponse Error Code104, 404 etc
Errors.ErrorMessageGenerate Response MessageRate type is missing etc

Success

<?xml version="1.0" encoding="UTF-8"?>
<RES_Response>
    <Success>
        <SuccessMsg>Min Nights Successfully Updated</SuccessMsg>
    </Success>
    <Errors>
            <ErrorCode>0</ErrorCode> 
            <ErrorMessage>Success</ErrorMessage>
    </Errors>
</RES_Response>

Error

<?xml version="1.0" standalone="yes"?>
<RES_Response>
    <Errors>
        <ErrorCode>[ErrorCode]</ErrorCode>
        <ErrorMessage>[ErrorMessage]</ErrorMessage>
    </Errors>
</RES_Response>

Error Codes

CodeMessage
405Request Parsing Error
401Unauthorized request error.  (Invalid rom type/ Rate Plan, Invalid auth code or Invalid hotelcode)
400Temporary error! Please try again.

Success Codes

CodeMessage
0Min Nights Successfully Updated

OTA/RMS

Push Non-Linear Rates (Occupancy Base rates)

This API allows you to update rates according to occupancy of room on RMS/OTA, In other words, set different rates according to different no. of pax. 

For example, if a room has occupancy of 5 adults, base occupancy 2, base rate 1200, then upto 2 adults the price will be applied as 1200 and after that the price will be varied according to the rate setting for different adults like 1800 for 3 adults, 2200 for 4 adults and 2650 for 5 adults.

The request and response will be placed in XML format. The web service responds to HTTP POST requests.

End Point URL: Provided by OTA/RMS

Parameter

NameTypeDescriptionExample
HotelCode*INT(11)Unique Hotel codexxxx
AuthCode*VARCHAR(300)Unique Authentication codexxxxxxxxxx
RoomTypeID*INT(20)/VARCHAR(20)Unique RoomType ID123400000000000001
RateTypeID*INT(20)/VARCHAR(20)Unique RateType ID123400000000000001
FromDate*DATETIMEUpdate From date [Format: yyyy-mm-dd]2021-03-05
ToDate*DATETIMEUpdate To date [Format: yyyy-mm-dd]2021-03-09
RoomRate.Adult1 …Adult7*FLOATAdult Rates(According to room occupancy)1000, 550.25 etc
RoomRate.Child1 …Child7FLOATChild Rates(According to room occupancy)1000, 550.25 etc

Request

<RES_Request>
    <Request_Type>UpdateRoomRatesNL</Request_Type>
    <Authentication>
        <HotelCode>xxxx</HotelCode>
        <AuthCode>xxxxxxxxxx</AuthCode>
    </Authentication>
    <RateType>
        <RoomTypeID>123400000000000001</RoomTypeID>
        <RateTypeID>123400000000000001</RateTypeID>
        <FromDate>2021-03-05</FromDate>
        <ToDate>2021-03-09</ToDate>
        <RoomRate>
            <Adult1>1000, 550.25 etc</Adult1>
            <Adult2>1000, 550.25 etc</Adult2>
            <Adult3>1000, 550.25 etc</Adult3>
            <Adult4>1000, 550.25 etc</Adult4>
            <Adult5>1000, 550.25 etc</Adult5>
            <Adult6>1000, 550.25 etc</Adult6>
            <Adult7>1000, 550.25 etc</Adult7>
            <Child1>1000, 550.25 etc</Child1>
            <Child2>1000, 550.25 etc</Child2>
            <Child3>1000, 550.25 etc</Child3>
            <Child4>1000, 550.25 etc</Child4>
            <Child5>1000, 550.25 etc</Child5>
            <Child6>1000, 550.25 etc</Child6>
            <Child7>1000, 550.25 etc</Child7>
        </RoomRate>
    </RateType>
</RES_Request>

Response

NameTypeDescriptionExample
Success.SuccessMsgUnique Response MessageMin Nights Successfully Updated
Errors.ErrorCodeResponse Error Code104, 404 etc
Errors.ErrorMessageGenerate Response MessageRate type is missing etc

Success

<?xml version="1.0" standalone="yes"?>
<RES_Response>
    <Success>
        <SuccessMsg>Room Inventory Successfully Updated</SuccessMsg>
    </Success>
    <Errors>
            <ErrorCode>0</ErrorCode> 
            <ErrorMessage>Success</ErrorMessage>
    </Errors>
</RES_Response>

Error

<?xml version="1.0" standalone="yes"?>
<RES_Response>
    <Errors>
        <ErrorCode>[ErrorCode]</ErrorCode>
        <ErrorMessage>[ErrorMessage]</ErrorMessage>
    </Errors>
</RES_Response>

Error Codes

CodeMessage
405Request Parsing Error
401Unauthorized request error.  (Invalid rom type/ Rate Plan, Invalid auth code or Invalid hotelcode)
400Temporary error! Please try again.

Success Codes

CodeMessage
0Room Rates Updated successfully.

OTA/RMS

Push Linear Rates (Room Base Rates)

This API allows you to update base rate & extra adult/child rate on RMS/OTA. Fixed price will be added for every addition of extra adults/child. 

For example, if a room has occupancy of 5 adults, base occupancy 2, base rate 1200 and extra adult rate is 500, then upto 2 adults the price will be applied as 1200 and after that 500 will be added for every extra adult like 1700 for 3 adults, 2200 for 4 adults and 2700 for 5 adults.

The request and response will be placed in XML format. The web service responds to HTTP POST requests.

End Point URL: Provided by OTA/RMS

Parameter

NameTypeDescriptionExample
HotelCode*INT(11)Unique Hotel codexxxx
AuthCode*VARCHAR(300)Unique Authentication codexxxxxxxxxx
RoomTypeID*INT(20)/VARCHAR(20)Unique RoomType ID123400000000000001
RateTypeID*INT(20)/VARCHAR(20)Unique RateType ID123400000000000001
FromDate*DATETIMEUpdate From date [Format: yyyy-mm-dd]2021-03-05
ToDate*DATETIMEUpdate To date [Format: yyyy-mm-dd]2021-03-09
RoomRate.Base*FLOATBase Rate1000, 550.25 etc
RoomRate.ExtraAdultFLOATExtra Adult Rate (it is optional)1000, 550.25 etc
RoomRate.ExtraChildFLOATInventory Count1000, 550.25 etc

Request

<RES_Request>
    <Request_Type>UpdateRoomRates</Request_Type>
    <Authentication>
        <HotelCode>xxxx</HotelCode>
        <AuthCode>xxxxxxxxxx</AuthCode>
    </Authentication>
    <RateType>
        <RoomTypeID>123400000000000001]</RoomTypeID>
        <RateTypeID>123400000000000001</RateTypeID>
        <FromDate>2021-03-05</FromDate>
        <ToDate>2021-03-09</ToDate>
        <RoomRate>
            <Base>1000, 550.25 etc</Base>
            <ExtraAdult>1000, 550.25 etc</ExtraAdult>[Optional]
            <ExtraChild>1000, 550.25 etc</ExtraChild>[Optional]
        </RoomRate>
    </RateType>
</RES_Request>

Response

NameTypeDescriptionExample
Success.SuccessMsgUnique Response MessageMin Nights Successfully Updated
Errors.ErrorCodeResponse Error Code104, 404 etc
Errors.ErrorMessageGenerate Response MessageRate type is missing etc

Success

<?xml version="1.0" encoding="UTF-8"?>
<RES_Response>
    <Success>
        <SuccessMsg>Room Rates Updated sucessfully.</SuccessMsg>
    </Success>
    <Errors>
        <ErrorCode>[Code]</ErrorCode>
        <ErrorMessage>[Message]</ErrorMessage>
    </Errors>
</RES_Response>

Error

<?xml version="1.0" standalone="yes"?>
<RES_Response>
    <Errors>
        <ErrorCode>[ErrorCode]</ErrorCode>
        <ErrorMessage>[ErrorMessage]</ErrorMessage>
    </Errors>
</RES_Response>

Error Codes

CodeMessage
405Request Parsing Error
401Unauthorized request error. (Invalid rom type/ Rate Plan, Invalid auth code or Invalid hotelcode)
400Temporary error! Please try again.

Success Codes

CodeMessage
0Room Rates Updated successfully.

OTA/RMS

Push Inventory

This API allows you to update inventory on OTA/RMS. eZee will be pushing inventory updates on their OTA/RMS end points. The request and response will be placed in XML format. The web service responds to HTTP POST requests.

End Point URL: Provided by OTA/RMS

Parameter

NameTypeDescriptionExample
HotelCode*INT(11)Unique Hotel codexxxx
AuthCode*VARCHAR(300)Unique Authentication codexxxxxxxxxx
RoomTypeID*INT(20)/VARCHAR(20)Unique RoomType ID123400000000000001
FromDate*DATETIMEUpdate From date [Format: yyyy-mm-dd]2021-03-05
ToDate*DATETIMEUpdate To date [Format: yyyy-mm-dd]2021-03-09
Availability*INT(11)Inventory Count5, 10 , 50 etc

Request

<RES_Request>
    <Request_Type>UpdateAvailability</Request_Type>
    <Authentication>
        <HotelCode>xxxx</HotelCode>
        <AuthCode>xxxxxxxxxx</AuthCode>
    </Authentication>
    <RoomType>
        <RoomTypeID>123400000000000001</RoomTypeID>
        <FromDate>2021-03-05</FromDate>
        <ToDate>2021-03-09</ToDate>
        <Availability>5, 10 , 50 etc</Availability>
    </RoomType>
</RES_Request>

Response

NameTypeDescriptionExample
SuccessMsgUnique Response MessageRoom Inventory Successfully Updated
ErrorCodeResponse Error Code104, 404 ,111 etc
ErrorMessageGenerate Response MessageRate type is missing, Invalid inventory value etc

Success

<?xml version="1.0" standalone="yes"?>
<RES_Response>
    <Success>
        <SuccessMsg>Room Inventory Successfully Updated</SuccessMsg>
    </Success>
    <Errors>
        <ErrorCode>0</ErrorCode>
        <ErrorMessage>Success</ErrorMessage>
    </Errors>
</RES_Response>

Error

<?xml version="1.0" standalone="yes"?>
<RES_Response>
    <Errors>
        <ErrorCode>[ErrorCode]</ErrorCode>
        <ErrorMessage>[ErrorMessage]</ErrorMessage>
    </Errors>
</RES_Response>

Error Codes

CodeMessage
405Request Parsing Error
401Unauthorized request error. (Invalid rom type, Invalid auth code or Invalid hotelcode)
400Temporary error! Please try again.

Success Codes

CodeMessage
0Room Inventory Successfully Updated

OTA/RMS

Request Room Information

With this API, we will be requesting rate plan mappings from the OTA/RMS. We will be calling their end point to have their data in our system. The request and response will be placed in XML format.

This mechanism is basically used to store your room configurations at our end and create the connectivity to the communication platform between eZee and the OTA/RMS.The web service responds to HTTP POST requests.

End Point URL: Provided by OTA/RMS

Parameter

NameTypeDescriptionExample
HotelCode*INT(11)Unique Hotel codexxxx
AuthCode*VARCHAR(300)Unique Authentication codexxxxxxxxxx

Request

<RES_Request>
    <Request_Type>RoomInfo</Request_Type>
    <Authentication>
        <HotelCode>XXXX</HotelCode>
        <AuthCode>XXXXXXXXXXXXX</AuthCode>
    </Authentication>
</RES_Request>

Response

NameTypeDescriptionExample
RoomTypeIDINT(20)/VARCHAR(20)Unique Room Type ID123400000000000001
RoomTypeVARCHAR(1000)Room Type NameGarden View Studio Room
RateTypeIDINT(20)/VARCHAR(20)Unique Rate Type ID123400000000000001
RateTypeVARCHAR(1000)Rate Type NameEuropean Plan
Errors.ErrorCodeResponse Error Code301, 404 etc
Errors.ErrorMessageGenerate Response MessageSuccess, Unauthorized Request Message

Response

<?xml version="1.0" encoding="UTF-8"?>
<RES_Response>
<RoomInfo>
    <RatePlans>
        <RatePlan>
            <RoomTypeID>123400000000000001</RoomTypeID>
            <RoomType>Garden View Studio Room</RoomType>
            <RateTypeID>123400000000000001</RateTypeID>
            <RateType>European Plan</RateType>
        </RatePlan>
        <RatePlan>
            <RoomTypeID>123400000000000001</RoomTypeID>
            <RoomType>Garden View Studio Room</RoomType>
            <RateTypeID>123400000000000002</RateTypeID>
            <RateType>Non-Refundable</RateType>
        </RatePlan>
    </RatePlans>
</RoomInfo>
<Errors>
    <ErrorCode>0</ErrorCode>
    <ErrorMessage>Success</ErrorMessage>
</Errors>
</RES_Response>
 

Error Codes

CodeMessage
405Request Parsing Error
401Unauthorized request error.(Invalid auth code or Invalid hotelcode)
400Temporary error! Please try again.

Bookings

Autosync Future Bookings and its modifications

With this push mechanism, we will be sending the latest booking updates to your end point. We will be calling your end point every 5 minutes based on bookings inflow you have in your property. The data will be sent in XML format.

This mechanism is basically used to keep your revenue management systems updated. So after syncing historical bookings for the first time, you can get this mechanism activated so our system will keep pushing you latest timely updates thereby keeping your system up-to date.

Push bookings data will be in below format

NameData TypeDescriptionExample
LocationIdINT(11)Hotel codexxxx
UniqueIDVARCHAR(255)Unique Booking id10125, 86436, B4525 etc
BookedByVARCHAR(255)Information regarding Booked byBooking.com etc
Salutation, FirstName, LastName, Gender, Address, City, State, Country, Zip Code, Phone, Mobile, Fax, Email.VARCHAR(255)Here * denotes guest information like Salutation, FirstName, LastName, Gender, Address, City, State, Country, Zip Code, Phone, Mobile, Fax, Email.shown in JSON response below.
BusinessSourceVARCHAR(100)Business Source NameBooking.com
SourceVARCHAR(1000)Booking generated sourceExpedia
PaymentMethodVARCHAR(255)Payment Mode selected by guestCash, Credit, CityLedger etc
IsChannelBookingINT(1)Is booking comes from channel [0 or 1]
1 : Booking from the channel.
0: Booking not from the channel.
0 or 1
BookingTran. SubBookingIdVARCHAR(255)Sub booking Id138
BookingTran. TransactionIdINT(20)Booking Transaction ID112500000000000163
BookingTran. StatusVARCHAR(1000)Booking StatusNew or Modify or Cancel.
BookingTran.I sConfirmedINT(1)Booking Confirmation Flag. [1 or 0]
1 : Confirmed
0 : Not Confirmed
1 or 0.
BookingTran. VoucherNoVARCHAR(255)Booking Voucher No10203049/8512
BookingTran. PackageCodeINT(20)Package Code112500000000000001
BookingTran. PackageNameVARCHAR(1000)Package NameEuropean Plan etc
BookingTran. RateplanCodeINT(20)Unique RatePlan Code112500000000000006
BookingTran. RateplanNameSTRING(1000)RatePlan NameGrand Sea View Junior Suite
BookingTran. RoomTypeCodeINT(20)Unique RoomType Code112500000000000006
BookingTran. RoomTypeNameSTRING(1000)RoomType NameGarden View Studio Room
BookingTran. StartDATECheck-in date[Format : yyyy-mm-dd]2017-12-25
BookingTran. EndDATECheck-out date [Format : yyyy-mm-dd]2017-12-27
BookingTran.TotalRateDECIMAL(19,4)Rate on room in amount1500.43
BookingTran.DECIMAL(19,4)Discount on room in500
TotalDiscountamount
BookingTran. TotalExtraChargeDECIMAL(19,4)Extra charges in amount(if any)300
BookingTran. TotalPaymentDECIMAL(19,4)Payment for room in amount2500.54
BookingTran.*Here * denotes guest informations like Salutation, FirstName, LastName, Gender, DateOfBirth, SpouseDateOfBirth, WeddingAnniversary, Nationality, Address, City, State, Country, Zip Code, Phone, Mobile, Fax, Email,IdentityType, IdentityNo, ExpiryDate.
BookingTran. TransportationModeVARCHAR(100)Mode of transportationBus, car etc
BookingTran. VehicleVARCHAR(255)Detail of vehicle
BookingTran. PickupDateDATEPickup date[Format : yyyy-mm-dd]2017-12-25 etc
BookingTran. PickupTimeTIMEPickup time
BookingTran. SourceVARCHAR(1000)Booking generated sourceExpedia
BookingTran. CommentVARCHAR(1000)Additional Information or comment.
BookingTran. AffiliateNameVARCHAR(1000)Booking Affiliate Name
BookingTran.AffiliateCodeVARCHAR(1000)Booking Affiliate Code
BookingTran.*Here * denotes Credit Card Informations like CCLink, CCNo, CCType,CardHolderName, CCExpiryDate,
BookingTran.RentalInfo.EffectiveDateDATETIMEBooking details for particular effective date2017-12-25 etc
BookingTran.RentalInfo.PackageCodeINT(20)Package code112500000000000001
BookingTran.RentalInfo.PackageNameVARCHAR(1000)Package NameEuropean Plan
BookingTran.RentalInfo.R oomTypeCodeINT(20)Unique RoomType Code112500000000000006
BookingTran.RentalInfo.R oomTypeNameTEXTRoomType NameGrand Sea View Junior Suite
BookingTran.RentalInfo.AdultINT(11)No. of Adults2,3,4 etc
BookingTran. RentalInfo.ChildINT(11)No. of Childs2,3,4 etc
BookingTran. RentalInfo.RentDECIMAL(19,4)Room rental amount1500.43
BookingTran. RentalInfo.DiscountDECIMAL(19,4)Discount on rental room in amount500
Errors.ErrorCodeResponse Error Code104, 404 etc
Errors.ErrorMessageGenerate Response MessageUnauthorized Request. etc

Booking XML

<?xml version="1.0" encoding="UTF-8"?>
<RES_Response>
  <Reservations>
    <Reservation>
      <BookByInfo>
        <LocationId>1088</LocationId>
        <UniqueID>4001</UniqueID>
        <BookedBy>Expedia</BookedBy>
        <Salutation />
        <FirstName>Guest</FirstName>
        <LastName>Bhuyan</LastName>
        <Gender />
        <Address />
        <City />
        <State />
        <Country />
        <Zipcode />
        <Phone />
        <Mobile />
        <Fax />
        <Email />
        <BusinessSource>Booking.com</BusinessSource>
        <Source>Expedia</Source>
        <IsChannelBooking>1</IsChannelBooking>
        <BookingTran>
          <SubBookingId>4001</SubBookingId>
          <TransactionId>1088000000000059</TransactionId>
          <Createdatetime>2019-07-23 1245:21</Createdatetime>
          <Modifydatetime>2019-07-23 1245:21</Modifydatetime>
          <Status>New</Status>
          <IsConfirmed>1</IsConfirmed>
          <VoucherNo>12563894/1</VoucherNo>
          <PackageCode>12</PackageCode>
          <PackageName>EP Single</PackageName>
          <RateplanCode>31</RateplanCode>
          <RateplanName>Elite Single Room</RateplanName>
          <RoomTypeCode>01</RoomTypeCode>
          <RoomTypeName>Elite Room</RoomTypeName>
          <Start>2019-07-23</Start>
          <End>2019-07-27</End>
          <CurrencyCode>INR</CurrencyCode>
          <TotalRate>15245.60</TotalRate>
          <TotalAmountAfterTax>15245.60</TotalAmountAfterTax>
          <TotalAmountBeforeTax>12920.00</TotalAmountBeforeTax>
          <TotalTax>2325.60</TotalTax>
          <TotalDiscount>0.00</TotalDiscount>
          <TotalExtraCharge>0.00</TotalExtraCharge>
          <TotalPayment>0.00</TotalPayment>
          <TACommision>0.00</TACommision>
          <Salutation />
          <FirstName>Pranjit</FirstName>
          <LastName>Bhuyan</LastName>
          <Gender>Other</Gender>
          <DateOfBirth />
          <SpouseDateOfBirth />
          <WeddingAnniversary />
          <Nationality />
          <Address />
          <City />
          <State />
          <Country />
          <Zipcode />
          <Phone />
          <Mobile />
          <Fax />
          <Email />
          <IdentiyType />
          <IdentityNo />
          <ExpiryDate />
          <TransportationMode />
          <Vehicle />
          <PickupDate />
          <PickupTime />
          <Source>Expedia</Source>
          <Comment>Reservation : Reservation : Cancellation Policy Free cancellation if cancelled between 365 days prior to checkin and 1 days prior to checkinNon-Refundable between 1 days prior to checkin or in case of NO SHOWPay at Hotel: False</Comment>
          <AffiliateName />
          <AffiliateCode />
          <CCLink />
          <CCNo />
          <CCType />
          <CCExpiryDate />
          <CardHoldersName />
          <RentalInfo>
            <EffectiveDate>2019-07-23</EffectiveDate>
            <PackageCode>12</PackageCode>
            <PackageName>EP Single</PackageName>
            <RoomTypeCode>01</RoomTypeCode>
            <RoomTypeName>Elite Room</RoomTypeName>
            <Adult>2</Adult>
            <Child>0</Child>
            <Rent>3811.40</Rent>
            <RentBeforeTax>3230.00</RentBeforeTax>
            <Discount>0.00</Discount>
          </RentalInfo>
          <RentalInfo>
            <EffectiveDate>2019-07-24</EffectiveDate>
            <PackageCode>12</PackageCode>
            <PackageName>EP Single</PackageName>
            <RoomTypeCode>01</RoomTypeCode>
            <RoomTypeName>Elite Room</RoomTypeName>
            <Adult>2</Adult>
            <Child>0</Child>
            <Rent>3811.40</Rent>
            <RentBeforeTax>3230.00</RentBeforeTax>
            <Discount>0.00</Discount>
          </RentalInfo>
          <RentalInfo>
            <EffectiveDate>2019-07-25</EffectiveDate>
            <PackageCode>12</PackageCode>
            <PackageName>EP Single</PackageName>
            <RoomTypeCode>01</RoomTypeCode>
            <RoomTypeName>Elite Room</RoomTypeName>
            <Adult>2</Adult>
            <Child>0</Child>
            <Rent>3811.40</Rent>
            <RentBeforeTax>3230.00</RentBeforeTax>
            <Discount>0.00</Discount>
          </RentalInfo>
          <RentalInfo>
            <EffectiveDate>2019-07-26</EffectiveDate>
            <PackageCode>12</PackageCode>
            <PackageName>EP Single</PackageName>
            <RoomTypeCode>01</RoomTypeCode>
            <RoomTypeName>Elite Room</RoomTypeName>
            <Adult>2</Adult>
            <Child>0</Child>
            <Rent>3811.40</Rent>
            <RentBeforeTax>3230.00</RentBeforeTax>
            <Discount>0.00</Discount>
          </RentalInfo>
        </BookingTran>
      </BookByInfo>
    </Reservation>    
  </Reservations>
  <Errors>
    <ErrorCode>0</ErrorCode>
    <ErrorMessage>Success</ErrorMessage>
  </Errors>
</RES_Response>

You need to send us booking received notification in below format

NameData TypeDescriptionExample
BookingIdINT(11)Unique Booking id10125, 86436, B4525 etc
PMS_BookingIdINT(11)PMS Booking id10125, 86436, B4525 etc

Success

<?xml version="1.0" encoding="UTF-8"?>
<RES_Response>
  <Success>
    <Booking>
        <BookingId>[Booking Id]</BookingId>
        <PMS_BookingId>[PMS Booking Id]</PMS_BookingId>
    </Booking>
  </Success>  
  <Errors>
    <ErrorCode>200</ErrorCode>
    <ErrorMessage>Success</ErrorMessage>
  </Errors>
</RES_Response>

Error

<?xml version="1.0" encoding="UTF-8"?>
<RES_Response>   
  <Errors>
    <ErrorCode>500</ErrorCode>
    <ErrorMessage>Booking not inserted</ErrorMessage>
  </Errors>
</RES_Response>

Bookings

Pull Historical Bookings

This API provides you all historical bookings information based on reservation dates of both past and future as per your needs. The API can return data in XML formats. The web service responds to HTTP POST requests.

End Point URL

Header

Content-Type: application/xml

Parameter

NameData TypeDescriptionExample
Request_Type *VARCHAR(250)Use Keyword “Booking”
HotelCode *INT(11)Unique Hotel codeXXXX
AuthCode *VARCHAR(300)Unique Authentication codeXXXXXXXXXXXXXXXXX
FromDate *DATETo send a from date2020-07-05
ToDate *DATETo send a to date2020-07-06
Note – The difference between the start date and end date should not be more than 2 days.

Request 

<RES_Request>   
<Request_Type>Booking</Request_Type>
    <Authentication>
       <HotelCode>xxxx</HotelCode>
       <AuthCode>xxxxxxxxxx</AuthCode>
    </Authentication>
    <FromDate>2020-03-05</FromDate>
    <ToDate>2020-03-06</ToDate>
</RES_Request>

Response

NameData TypeDescriptionExample
LocationIdINT(11)Hotel codexxxx
UniqueIDVARCHAR(255)Unique Booking id10125, 86436, B4525 etc
BookedByVARCHAR(255)Information regarding Booked byBooking.com etc
Salutation, FirstName, LastName, Gender, Address, City, State, Country, Zip Code, Phone, Mobile, Fax, Email.VARCHAR(255)Here * denotes guest information likeSalutation, FirstName, LastName, Gender, Address, City, State, Country, Zip Code, Phone, Mobile, Fax, Email.shown in JSON response below.
BusinessSourceVARCHAR(100)Business Source Name
SourceVARCHAR(1000)Booking generated sourceBooking.com etc
IsChannelBookingINT(1)Is booking comes from channel [0 or 1]1 : Booking from the channel.0: Booking not from the channel.0 or 1
BookingTran. SubBookingIdVARCHAR(255)Sub booking Id138
BookingTran. TransactionIdINT(20)Booking Transaction ID112500000000000163
BookingTran.CreatedatetimeDATETIMEBooking created date time2020-03-16 12:00:58
BookingTran.ModifydatetimeDATETIMEBooking modified date time2020-03-16 12:00:58
BookingTran. StatusVARCHAR(1000)Booking StatusNew or Modify.
BookingTran.IsConfirmedINT(1)Booking Confirmation Flag. [1 or 0]
1 : Confirmed0 : Not Confirmed
1 or 0.
BookingTran.CurrentStatusVARCHAR(100)Booking Current Status
EX : Confirm, Check-In, Check-Out, etc
Check-In
BookingTran. VoucherNoVARCHAR(255)Booking Voucher No10203049/8512
BookingTran. PackageCodeINT(20)Package Code112500000000000001
BookingTran. PackageNameVARCHAR(1000)Package NameEuropean Plan etc
BookingTran. RateplanCodeINT(20)Unique RatePlan Code112500000000000006
BookingTran. RateplanNameSTRING(1000)RatePlan NameGrand Sea View Junior Suite
BookingTran. eZeePMSRoomidINT(20)eZee PMS Room Id106
BookingTran. RoomTypeCodeINT(20)Unique RoomType Code112500000000000006
BookingTran. RoomTypeNameSTRING(1000)RoomType NameGarden View Studio Room
BookingTran. StartDATETIMECheck-in date
[Format : yyyy-mm-dd]
2017-12-25
BookingTran. EndDATETIMECheck-out date [Format : yyyy-mm-dd]2017-12-27
BookingTran. CurrencyCodeVARCHAR(255)Currency codeINR
BookingTran.TotalRateDECIMAL(19,4)Rate on room in amount1500.43
BookingTran.TotalAmountAfterTaxDECIMAL(19,4)Total amount after tax1500.43
BookingTran.TotalAmountBeforeTaxDECIMAL(19,4)Total amount before tax1200
BookingTran.TotalTaxDECIMAL(19,4)Total tax300.43
BookingTran. TotalDiscountDECIMAL(19,4)Discount on room in amount500
BookingTran. TotalExtraChargeDECIMAL(19,4)Extra charges in amount(if any)300
BookingTran. TotalPaymentDECIMAL(19,4)Payment for room in amount2500.54
BookingTran.*Here * denotes guest informations likeSalutation, FirstName, LastName, Gender, DateOfBirth, SpouseDateOfBirth, WeddingAnniversary, Nationality, Address, City, State, Country, Zip Code, Phone, Mobile, Fax, Email,IdentityType,
IdentityNo, ExpiryDate.
BookingTran. TransportationModeVARCHAR(100)Mode of transportationBus, car etc
BookingTran. VehicleVARCHAR(255)Detail of vehicle
BookingTran. PickupDateDATETIMEPickup date
[Format : yyyy-mm-dd]
2017-12-25 etc
BookingTran. PickupTimeDATETIMEPickup time
BookingTran. SourceVARCHAR(1000)Booking generated sourceBooking.com
BookingTran. CommentVARCHAR(1000)Additional Information or comment.
BookingTran. AffiliateNameVARCHAR(1000)Booking Affiliate Name
BookingTran.AffiliateCodeVARCHAR(1000)Booking Affiliate Code
BookingTran.*Here * denotes information like Credit Card Informations likeCCLink, CCNo, CCType,CardHolderName, CCExpiryDate,
BookingTran.ExtraCharge .*here * denotes ChargeDate,ChargeCode,
ChargeName,
ChargeDesc,Remark,Quantity,
AmountBeforeTax,Amount
BookingTran.RentalInfo.EffectiveDateDATETIMEBooking details for particular effective date2017-12-25 etc
BookingTran.RentalInfo.PackageCodeINT(20)Package code112500000000000001
BookingTran.RentalInfo.PackageNameVARCHAR(1000)Package NameEuropean Plan
BookingTran.RentalInfo.R oomTypeCodeINT(20)Unique RoomType Code112500000000000006
BookingTran.RentalInfo.R oomTypeNameSTRING(1000)RoomType NameGrand Sea View Junior Suite
BookingTran.RentalInfo.AdultINT(11)No. of Adults2,3,4 etc
BookingTran. RentalInfo.ChildINT(11)No. of Childs2,3,4 etc
BookingTran. RentalInfo.RentDECIMAL(19,4)Room rental amount1500.43
BookingTran. RentalInfo.DiscountDECIMAL(19,4)Discount on rental room in amount500
BookingTran. Sharer. *Here * denotes informations likeSalutation,
FirstName, LastName, Gender, DateOfBirth, SpouseDateOfBirth,
WeddingAnniversary, Nationality,
Address, City, State,
Country, Zip Code, Phone, Mobile, Fax, Email,IdentityType,
IdentityNo, ExpiryDate.
Errors.ErrorCodeResponse Error Code104, 404 etc
Errors.ErrorMessageGenerate Response MessageUnauthorized Request. etc

Success

<?xml version="1.0" encoding="UTF-8"?><RES_Response>
    <Reservations>
        <Reservation>
            <BookByInfo>
                <LocationId>8943</LocationId>
                <UniqueID>11</UniqueID>
                <BookedBy>Joy Smith</BookedBy>
                <Salutation>Mr.</Salutation>
                <FirstName>Joy</FirstName>
                <LastName>Smith</LastName>
                <Gender>Male</Gender>
                <Address></Address>
                <City></City>
                <State></State>
                <Country>India</Country>
                <Zipcode></Zipcode>
                <Phone></Phone>
                <Mobile></Mobile>
                <Fax></Fax>
                <Email></Email>
                <BusinessSource>Booking.com</BusinessSource>
                <Source>PMS</Source>
                <IsChannelBooking>0</IsChannelBooking>
                <BookingTran>
                    <SubBookingId>11</SubBookingId>
                    <TransactionId>894300000000000010</TransactionId>
                    <Createdatetime>2020-03-05 12:00:58</Createdatetime>
                    <Modifydatetime>2020-03-16 12:00:58</Modifydatetime>
                    <Status>New</Status>
                    <IsConfirmed>1</IsConfirmed>
                    <CurrentStatus>Check-In</CurrentStatus>
                    <VoucherNo></VoucherNo>
                    <PackageCode>894300000000000002</PackageCode>
                    <PackageName>All Inclusive</PackageName>
                    <RateplanCode>894300000000000013</RateplanCode>
                    <RateplanName>Studio All Inclusive</RateplanName>
                    <eZeePMSRoomid>106</eZeePMSRoomid>
                    <RoomTypeCode>894300000000000001</RoomTypeCode>
                    <RoomTypeName>Studio</RoomTypeName>
                    <Start>2020-03-17</Start>
                    <End>2020-03-20</End>
                    <CurrencyCode>INR</CurrencyCode>
                    <TotalRate>8850.00</TotalRate>
                    <TotalAmountAfterTax>8850.00</TotalAmountAfterTax>
                    <TotalAmountBeforeTax>7500.00</TotalAmountBeforeTax>
                    <TotalTax>1350.00</TotalTax>
                    <TotalDiscount>0.00</TotalDiscount>
                    <TotalExtraCharge>15.00</TotalExtraCharge>
                    <TotalPayment>8865.00</TotalPayment>
                    <PayAtHotel>false</PayAtHotel>
                    <TACommision>0.00</TACommision>
                    <Salutation>Mr.</Salutation>
                    <FirstName>Joy</FirstName>
                    <LastName>Smith</LastName>
                    <Gender>Male</Gender>
                    <DateOfBirth></DateOfBirth>
                    <SpouseDateOfBirth></SpouseDateOfBirth>
                    <WeddingAnniversary></WeddingAnniversary>
                    <Nationality></Nationality>
                    <Address></Address>
                    <City></City>
                    <State></State>
                    <Country>India</Country>
                    <Zipcode></Zipcode>
                    <Phone></Phone>
                    <Mobile></Mobile>
                    <Fax></Fax>
                    <Email></Email>
                    <IdentiyType>Aadhar card</IdentiyType>
                    <IdentityNo>12315346546</IdentityNo>
                    <ExpiryDate></ExpiryDate>
                    <TransportationMode></TransportationMode>
                    <Vehicle></Vehicle>
                    <PickupDate></PickupDate>
                    <PickupTime></PickupTime>
                    <Source>PMS</Source>
                    <Comment></Comment>
                    <AffiliateName></AffiliateName>
                    <AffiliateCode></AffiliateCode>
                    <CCLink></CCLink>
                    <CCNo></CCNo>
                    <CCType></CCType>
                    <CCExpiryDate></CCExpiryDate>
                    <CardHoldersName></CardHoldersName>
                    <ExtraCharge>
                        <ChargeDate>2020-03-18</ChargeDate>
                        <ChargeCode></ChargeCode>
                        <ChargeName>Call Charges</ChargeName>
                        <ChargeDesc></ChargeDesc>
                        <Remark></Remark>
                        <Quantity>15</Quantity>
                        <AmountBeforeTax>15.00</AmountBeforeTax>
                        <Amount>15.00</Amount>
                    </ExtraCharge>
                    <RentalInfo>
                        <EffectiveDate>2020-03-18</EffectiveDate>
                        <PackageCode>894300000000000002</PackageCode>
                        <PackageName>All Inclusive</PackageName>
                        <RoomTypeCode>894300000000000001</RoomTypeCode>
                        <RoomTypeName>Studio</RoomTypeName>
                        <Adult>2</Adult>
                        <Child>2</Child>
                        <Rent>2950.00</Rent>
                        <RentBeforeTax>2500.00</RentBeforeTax>
                        <Discount>0.00</Discount>
                    </RentalInfo>
                    <RentalInfo>
                        <EffectiveDate>2020-03-19</EffectiveDate>
                        <PackageCode>894300000000000002</PackageCode>
                        <PackageName>All Inclusive</PackageName>
                        <RoomTypeCode>894300000000000001</RoomTypeCode>
                        <RoomTypeName>Studio</RoomTypeName>
                        <Adult>2</Adult>
                        <Child>2</Child>
                        <Rent>2950.00</Rent>
                        <RentBeforeTax>2500.00</RentBeforeTax>
                        <Discount>0.00</Discount>
                    </RentalInfo>
                    <Sharer>
                        <Salutation>Mam.</Salutation>
                        <FirstName>Maya</FirstName>
                        <LastName></LastName>
                        <Gender>Female</Gender>
                        <DateOfBirth></DateOfBirth>
                        <SpouseDateOfBirth></SpouseDateOfBirth>
                        <WeddingAnniversary></WeddingAnniversary>
                        <Nationality>India</Nationality>
                        <Address></Address>
                        <City></City>
                        <State></State>
                        <Country>India</Country>
                        <Zipcode></Zipcode>
                        <Phone></Phone>
                        <Mobile></Mobile>
                        <Fax></Fax>
                        <Email></Email>
                        <IdentiyType>Aadhar card</IdentiyType>
                        <IdentityNo>789456123</IdentityNo>
                        <ExpiryDate></ExpiryDate>
                    </Sharer>
                </BookingTran>
            </BookByInfo>
        </Reservation>
        <CancelReservation>
             <LocationId>8943</LocationId>
             <UniqueID>206-1</UniqueID>
             <Remark>Cancel,Guest want to cancel reservation through Agoda</Remark>
             <VoucherNo>12314986/1</VoucherNo>
        </CancelReservation>
        <CancelReservation>
             <LocationId>8943</LocationId>
             <UniqueID>206-2</UniqueID>
             <Remark>Cancel,Guest want to cancel reservation through Agoda</Remark>
             <VoucherNo>12314944/2</VoucherNo>
         </CancelReservation>
         <CancelReservation>
              <LocationId>8943</LocationId>
              <UniqueID>207</UniqueID>
              <Remark>Cancel,Guest want to cancel reservation through Agoda</Remark>
              <VoucherNo>123149844/1</VoucherNo>
         </CancelReservation>
         <CancelReservation>
              <LocationId>8943</LocationId>
              <UniqueID>200</UniqueID>
              <Remark>Cancel,Guest want to cancel reservation through Agoda</Remark>
              <VoucherNo>123149444</VoucherNo>
          </CancelReservation>
    </Reservations>
    <Errors>
        <ErrorCode>0</ErrorCode>
        <ErrorMessage>Success</ErrorMessage>
    </Errors>
</RES_Response>

Error Codes

Error CodeError Name
114Missing from date in some request
115Missing to date in some request
117From Date is not valid date
118To Date is not valid date
119Please check From and To date. To Date should be greater than From Date
113Missing roomtype id in some request
400Invalid Request Format
302Authentication failed
303Auth Code is inactive.
301Unauthorized request. Request is not valid for this hotel code
202Unauthorized request. Hotel code is not active
111Invalid Request
204Duplicate request. Please try again after 1 minute.

Rates & Availability

Retrieve Room Rates

The API provides a room rates data for a specific date range, room type and rate type for a property. The API can return data in XML formats. The web service responds to HTTP POST requests.

End Point URL

Header

Content-Type: application/xml

Parameter

NameData TypeDescriptionExample
Request_Type *VARCHAR(250)Use Keyword “Rate” 
HotelCode *INT(11)Unique Hotel codeXXXX
AuthCode *VARCHAR(300)Unique Authentication codeXXXXXXXXXXXXXXXXX
FromDate *DATETo send a from date2020-07-05
ToDate *DATETo send a to date2020-07-07

Request 

<RES_Request>   
<Request_Type>Rate</Request_Type>
   <Authentication>
       <HotelCode>xxxx</HotelCode>
       <AuthCode>xxxxxxxxxx</AuthCode>
   </Authentication>
   <FromDate>2020-03-05</FromDate>
   <ToDate>2020-03-18</ToDate>
</RES_Request>

Response

NameData TypeDescriptionExample
RoomInfo.Source.RoomTypes.
RoomType.RoomTypeID
INT(11)Room Type Id1234500000000000001
RoomInfo.Source.RoomTypes.
RoomType.RateTypeID
INT(11)Rate Plan Id1234500000000000013
RoomInfo.Source.RoomTypes.
RoomType.FromDate
DATETIMEFrom date2020-05-01
RoomInfo.Source.RoomTypes.
RoomType.ToDate
DATETIMETo date2020-05-10
RoomInfo.Source.RoomTypes.
RoomType.RoomRate.Base
Decimal(11,4)Base Rate2500.0000
RoomInfo.Source.RoomTypes.
RoomType.RoomRate.ExtraAdult
Decimal(11,4)Extra Adult Rate500.0000
RoomInfo.Source.RoomTypes.
RoomType.RoomRate.ExtraChild
Decimal(11,4)Extra Child Rate200.0000
Errors.ErrorCodeResponse Error Code104, 404 etc
Errors.ErrorMessageGenerate Response MessageUnauthorized Request. etc

Success

<?xml version="1.0" encoding="UTF-8"?><RES_Response>
    <RoomInfo>
        <Source name="PMS">
            <RoomTypes>
                <RateType>
                    <RoomTypeID>1234500000000000001</RoomTypeID>
                    <RateTypeID>1234500000000000013</RateTypeID>
                    <FromDate>2020-03-14</FromDate>
                    <ToDate>2020-03-18</ToDate>
                    <RoomRate>
                        <Base>2500.0000</Base>
                        <ExtraAdult>500.0000</ExtraAdult>
                        <ExtraChild>200.0000</ExtraChild>
                    </RoomRate>
                </RateType>
            </RoomTypes>
        </Source>
        <Source name="Hotel Hilton - Web">
            <RoomTypes>
                <RateType>
                    <RoomTypeID>1234500000000000001</RoomTypeID>
                    <RateTypeID>1234500000000000001</RateTypeID>
                    <FromDate>2020-03-14</FromDate>
                    <ToDate>2020-03-15</ToDate>
                    <RoomRate>
                        <Base>750.0000</Base>
                        <ExtraAdult>350.0000</ExtraAdult>
                        <ExtraChild>50.0000</ExtraChild>
                    </RoomRate>
                </RateType>
            </RoomTypes>
        </Source>
    </RoomInfo>
</RES_Response> 

Error Codes

Error CodeError Name
114Missing from date in some request
115Missing to date in some request
117From Date is not valid date
118To Date is not valid date
119Please check From and To date. To Date should be greater than From Date
113Missing roomtype id in some request
400Invalid Request Format
302Authentication failed
303Auth Code is inactive.
301Unauthorized request. Request is not valid for this hotel code
202Unauthorized request. Hotel code is not active
111Invalid Request

Rates & Availability

Retrieve Room Inventory

The API provides a room inventory data for a specific date range and room type for a property. The API can return data in XML formats. The web service responds to HTTP POST requests.

End Point URL

Header

Content-Type: application/xml

Parameter

NameData TypeDescriptionExample
Request_Type *VARCHAR(250)Use Keyword “Inventory” 
HotelCode *INT(11)Unique Hotel codeXXXX
AuthCode *VARCHAR(300)Unique Authentication codeXXXXXXXXXXXXXXXXX
FromDate *DATETo send a from date2020-07-05
ToDate *DATETo send a to date2020-07-07

Request 

<RES_Request>   
<Request_Type>Inventory</Request_Type>
   <Authentication>
       <HotelCode>xxxx</HotelCode>
       <AuthCode>xxxxxxxxxx</AuthCode>
   </Authentication>
   <FromDate>2020-03-05</FromDate>
   <ToDate>2020-03-18</ToDate>
</RES_Request>

Response

NameData TypeDescriptionExample
RoomInfo.Source.RoomTypes.
RoomType.RoomTypeID
INT(11)Room Type Id1234500000000000001
RoomInfo.Source.RoomTypes.
RoomType.FromDate
DATETIMEFrom date2020-05-01
RoomInfo.Source.RoomTypes.
RoomType.ToDate
DATETIMETo date2020-05-10
RoomInfo.Source.RoomTypes.
RoomType.Availability
INT(11)No. Of room available4
Errors.ErrorCodeResponse Error Code104, 404 etc
Errors.ErrorMessageGenerate Response MessageUnauthorized Request. etc

Success

<?xml version="1.0" encoding="UTF-8"?><RES_Response>
    <RoomInfo>
        <Source name="Front">
            <RoomTypes>
                <RoomType>
                    <RoomTypeID>1234500000000000001</RoomTypeID>
                    <FromDate>2020-03-11</FromDate>
                    <ToDate>2020-03-16</ToDate>
                    <Availability>1</Availability>
                </RoomType>
                <RoomType>
                    <RoomTypeID>1234500000000000007</RoomTypeID>
                    <FromDate>2020-03-18</FromDate>
                    <ToDate>2020-03-18</ToDate>
                    <Availability>5</Availability>
                </RoomType>
            </RoomTypes>
        </Source>
    </RoomInfo>
</RES_Response>

Error Codes

Error CodeError Name
114Missing from date in some request
115Missing to date in some request
117From Date is not valid date
118To Date is not valid date
119Please check From and To date. To Date should be greater than From Date
113Missing roomtype id in some request
400Invalid Request Format
302Authentication failed
303Auth Code is inactive.
301Unauthorized request. Request is not valid for this hotel code
202Unauthorized request. Hotel code is not active
111Invalid Request

Click here to Register