Retrieve a Booking

This API helps you to fetch booking details for specific booking ID based on Room No, Guest, Identity No, Guest Email, Guest Mobile No, Guest Registration No. The API can return data in JSON formats. The web service responds to HTTP POST requests.

End Point URL

Header

Content-Type: application/json

Parameter

NameData TypeDescriptionExample
Request_Type*VARCHAR(100)Request TypeFetchSingleBooking
BookingId*INT(11)Reservation No12345
RoomNoVARCHAR(500)Room No (It is Optional)101
GuestVARCHAR(100)Guest Name (It is Optional)test
IdentityNoVARCHAR(255)Identity No (It is Optional)ASD43543
GuestEmailVARCHAR(255)Guest Email (It is Optional)abc@gmail.com
GuestMobileNoVARCHAR(255)Guest Mobile No (It is Optional)XXXXXXXXXX
GuestRegistrationNoVARCHAR(255)Guest Registration No (It is Optional)XXXXXX
HotelCode*INT(11)Unique Hotel codexxxx
AuthCode*VARCHAR(300)Unique Authentication codexxxxxxxxxx

Request 

{           
      "RES_Request": {
            "Request_Type": "FetchSingleBooking",
.           "BookingId": "12345",            
            "RoomNo": "101",
            "Guest": "Joy T. Mnewy",          
            "IdentityNo": "ASD43543",              
            "GuestEmail": "XXXXXX@gmail.com",              
            "GuestMobileNo": "XXXXXXXXXX",  
            "GuestRegistrationNo": "XXXXXX", 
            "Authentication": {
                 "HotelCode": "XXXX",
                 "AuthCode": "XXXXXXXXXXXXXXXXXXX"
           } 
      }
}
 

Response

NameData TypeDescriptionExample
LocationIdINT(11)Hotel codexxxx
UniqueIDVARCHAR(255)Unique Booking id/ Reservation No10125, 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,RegistrationNo.VARCHAR(255)Here * denotes guest information like Salutation, FirstName, LastName, Gender, Address, City, State, Country, Zip Code, Phone, Mobile, Fax, Email,RegistrationNo.shown in JSON response below.
SourceVARCHAR(1000)Booking generated sourceBooking.com etc
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(100)Booking StatusNew or Modify or Cancel.
BookingTran.IsConfirmedINT(1)Booking Confirmation Flag. [1 or 0]1 : Confirmed0 : Not Confirmed1 or 0.
BookingTran.CurrentStatusVARCHAR(100)Booking Current StatusArrived, Checked Out, Cancel, Void, etc
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.RoomIDINT(20)Unique RoomID112500000000000001
BookingTran. RoomNameSTRING(1000)Room Name101
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.*Here * denotes guest informations like Salutation, FirstName, LastName, Gender, DateOfBirth, SpouseDateOfBirth, WeddingAnniversary, Nationality, Address, City, State, Country, Zip Code, Phone, Mobile, Fax, Email,RegistrationNo,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 sourceBooking.com
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,CCLink in encoded with base64_encode.
BookingTran.RentalInfo.RoomIDINT(20)Unique RoomID112500000000000001
BookingTran.RentalInfo. RoomNameSTRING(1000)Room Name101
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.RoomTypeCodeINT(20)Unique RoomType Code112500000000000006
BookingTran.RentalInfo.RoomTypeNameSTRING(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 Sharer informations like Salutation, FirstName, LastName, Gender, DateOfBirth, SpouseDateOfBirth, WeddingAnniversary, Nationality, Address, City, State, Country, Nationality,Zip Code, Phone, Mobile, Fax, Email,RegistrationNo,IdentityTypeID, IdentityNo, ExpiryDate.
Errors.ErrorCodeResponse Error Code104, 404 etc
Errors.ErrorMessageGenerate Response MessageUnauthorized Request. etc

Success

{
  "Reservations": {
    "Reservation": [
      {
        "BookingTran": [
          {
            "SubBookingId": "11241254",
            "TransactionId": "112400000000001902",
            "Createdatetime": "2019-09-04 11:40:30",
            "Modifydatetime": "2019-09-04 11:40:30",
            "Status": "New",
            "IsConfirmed": "1",
            "CurrentStatus": "Arrived",
            "VoucherNo": "single1276/1",
            "PackageCode": "112400000000000001",
            "PackageName": "European Plan",
            "RateplanCode": "112400000000000001",
            "RateplanName": "Sea View Deluxe Room",
            "RoomTypeCode": "112400000000000001",
            "RoomTypeName": "Sea View Deluxe Room",
            "RoomID": "112400000000000001",           
            "RoomName": "101",
            "Start": "2019-09-26",
            "End": "2019-09-28",
            "ArrivalTime": "12:00:00",
            "DepartureTime": "11:00:00",
            "CurrencyCode": "USD",
            "TotalAmountAfterTax": "976.00",
            "TotalAmountBeforeTax": "800.00",
            "TotalTax": "176.00",
            "TotalDiscount": "0.00",
            "TotalExtraCharge": "0.00",
            "TotalPayment": "0.00",
            "TACommision": "0.00",
            "Salutation": "Ms.",
            "FirstName": "Test",
            "LastName": "One",
            "Gender": "Female",
            "DateOfBirth": "",
            "SpouseDateOfBirth": "",
            "WeddingAnniversary": "",
            "Address": "",
            "City": " Brockway",
            "State": "CA",
            "Country": "USA",
            "Nationality": "Malta",
            "Zipcode": "95730",
            "Phone": "",
            "Mobile": "3534",
            "Fax": "564564",
            "Email": "LarryLForney@rhyta.com",
            “RegistrationNo” : "", 
            "IdentityType": "Pan card",
            "IdentityNo": "12345667765",
            "ExpiryDate": "",
            "TransportationMode": "",
            "Vehicle": "car",
            "PickupDate": "",
            "PickupTime": "",
            "Source": "BookingEye",
            "Comment": "",
            "AffiliateName": "",
            "AffiliateCode": "",
            "CCLink": "",
            "CCNo": "",
            "CCType": "",
            "CCExpiryDate": "",
            "CardHoldersName": "",
            "TaxDeatil": [
              {
                "TaxCode": "AA",
                "TaxName": "VAT @ 12%",
                "TaxAmount": "96.0000"
              },
              {
                "TaxCode": "LT",
                "TaxName": "Luxury @ 10%",
                "TaxAmount": "80.0000"
              }
            ],
            "RentalInfo": [
              {
                "RoomID": "112400000000000001",   
                "RoomName": "101",
                "EffectiveDate": "2019-09-26",
                "PackageCode": "112400000000000001",
                "PackageName": "European Plan",
                "RoomTypeCode": "112400000000000001",
                "RoomTypeName": "Sea View Deluxe Room",
                "Adult": "4",
                "Child": "2",
                "RentPreTax": "550.00",
                "Rent": "671.00",
                "Discount": "0.00"
              },
              {
                 "RoomID": "112400000000000001",   
                 "RoomName": "101",
                "EffectiveDate": "2019-09-27",
                "PackageCode": "112400000000000001",
                "PackageName": "European Plan",
                "RoomTypeCode": "112400000000000001",
                "RoomTypeName": "Sea View Deluxe Room",
                "Adult": "4",
                "Child": "2",
                "RentPreTax": "250.00",
                "Rent": "305.00",
                "Discount": "0.00"
              }
            ],
        "Sharer": [               
               {
                "Salutation": "Ms.",
                "FirstName": "Test",
                "LastName": "One",
                "Gender": "Female",
                "DateOfBirth": "",
                "SpouseDateOfBirth": "",
                "WeddingAnniversary": "",
                "Address": "",
                "City": " Brockway",
                "State": "CA",
                "Country": "USA",
                "Nationality": "Malta",
                "Zipcode": "95730",
                "Phone": "",
                "Mobile": "3534",
                "Fax": "564564",
                "Email": "LarryLForney@rhyta.com",
                "RegistrationNo" : "",  
                "IdentityTypeID": "894300000000000003",
                "IdentityNo": "12345667765",
                "ExpiryDate": "",
              },
              {
                "Salutation": "Ms.",
                "FirstName": "Test",
                "LastName": "One",
                "Gender": "Female",
                "DateOfBirth": "",
                "SpouseDateOfBirth": "",
                "WeddingAnniversary": "",
                "Address": "",
                "City": " Brockway",
                "State": "CA",
                "Country": "USA",
                "Nationality": "Malta",
                "Zipcode": "95730",
                "Phone": "",
                "Mobile": "3534",
                "Fax": "564564",
                "Email": "LarryLForney@rhyta.com",
                "Registration No" : "",  
                "IdentityTypeID": "894300000000000003",
                "IdentityNo": "12345667765",
                "ExpiryDate": "",
              }
            ] 
          }
        ],
        "LocationId": "1124",
        "UniqueID": "11241254",
        "BookedBy": "BookingEye",
        "Salutation": "Ms.",
        "FirstName": "Larry",
        "LastName": "Forney",
        "Gender": "Female",
        "Address": "",
        "City": "Brockway",
        "State": "CA",
        "Country": "USA",
        "Zipcode": "95730",
        "Phone": "",
        "Mobile": "3534",
        "Fax": "564564",
        "Email": "LarryLForney@rhyta.com",
        "Source": "BookingEye",
        "PaymentMethod": "Cash",
        "IsChannelBooking": "1"
      }
    ]
  }
}

Error Codes

Error CodeError Name
100Missing required parameters.
500Error occurred during processing
502Request Type is missing
101Hotel Code is missing
102Authentication Code is missing
301Unauthorized Request. Please check hotel code and authentication code
302Unauthorized Request. Integration is not allowed
303Auth Code is inactive.
201Unauthorized request.(Request Type) request is not valid for this hotel code
202Unauthorized request. Hotel code is not active
212Missing Parameter OR Invalid Parameter
213Parameter is blank

Click here to Register