Sample Json
https://hotel.srdvtest.com/v8/rest/Book
Book Room Request JSON
{ "ResultIndex": "hsid2177281494-15399140", "HotelCode": "hsid2177281494-15399140", "HotelName": "Hotel Royal Garden", "GuestNationality": "IN", "NoOfRooms": "1", "ClientReferenceNo": 0, "IsVoucherBooking": true, "HotelRoomsDetails": [ { "ChildCount": 0, "RequireAllPaxDetails": false, "RoomId": "200302460_201820678_37316--1", "RoomStatus": "Active", "RoomIndex": "48srlkt2srlkt6184386", "RoomTypeCode": "48_2_6184386", "RoomTypeName": "Deluxe Double Room-1 Double Bed", "RatePlan": "200302460_201820678_37316--1", "RatePlanCode": "200302460_201820678_37316--1", "InfoSource": "", "SequenceNo": "", "DayRates": [ { "Amount": 3416.79, "Date": "2024-12-24" }, { "Amount": 3416.79, "Date": "2024-12-25" } ], "SupplierPrice": "", "Price": { "CurrencyCode": "INR", "RoomPrice": 6833.58, "Tax": 0, "ExtraGuestCharge": 0, "ChildCharge": 0, "OtherCharges": 0, "Discount": 0, "PublishedPrice": 6833.58, "PublishedPriceRoundedOff": 6833.58, "OfferedPrice": 6833.58, "OfferedPriceRoundedOff": 6833.58, "AgentCommission": 0, "AgentMarkUp": 0, "ServiceTax": 0, "TDS": 0, "ServiceCharge": 0, "TotalGSTAmount": 0, "GST": { "CGSTAmount": 0, "CGSTRate": 0, "CessAmount": 0, "CessRate": 0, "IGSTAmount": 0, "IGSTRate": 0, "SGSTAmount": 0, "SGSTRate": 0, "TaxableAmount": 0 } }, "HotelPassenger": [ { "Title": "Mrs", "FirstName": "Rekha", "MiddleName": null, "LastName": "Modi", "Phoneno": "9247776406", "Email": "info@hojoy.in", "PaxType": "1", "LeadPassenger": true, "PAN": "" }, { "Title": "Mrs", "FirstName": "Sangeetha", "MiddleName": null, "LastName": "Rani", "Phoneno": "9247776406", "Email": "info@hojoy.in", "PaxType": "1", "LeadPassenger": false, "PAN": "" } ], "RoomPromotion": "", "Amenities": [ { "Name": "Breakfast buffet", "FontAwesome": "fa-cutlery", "IcoFont": "icofont-food-cart" }, { "Name": "Free parking", "FontAwesome": "fa-car", "IcoFont": "icofont-car-alt-4" }, { "Name": "Free WiFi", "FontAwesome": "fa-wifi", "IcoFont": "icofont-ui-check" }, { "Name": "Security", "FontAwesome": "fa-shield", "IcoFont": "" } ], "SmokingPreference": "0", "BedTypes": "Deluxe, Double", "HotelSupplements": "BREAKFAST", "LastCancellationDate": "", "CancellationPolicies": [ { "Charge": 6786.38, "ChargeType": 1, "Currency": "INR", "FromDate": "2024-12-23T19:12", "ToDate": "2024-12-24T00:00" }, { "Charge": 6786.38, "ChargeType": 1, "Currency": "INR", "FromDate": "2024-12-24T00:00", "ToDate": "2024-12-26T23:59" } ], "CancellationPolicy": "", "Inclusion": "", "BedTypeCode": null, "Supplements": null } ], "SrdvType": "MixAPI", "SrdvIndex": "15", "TraceId": 113542, "EndUserIp": "1.1.1.1", "ClientId": "******", "UserName": "******", "Password": "******" }
Book Room Response JSON
{ "BookResult": { "Error": { "ErrorCode": 0, "ErrorMessage": "" }, "VoucherStatus": true, "ResponseStatus": 1, "TraceId": 113542, "Status": "Confirmed", "HotelBookingStatus": "Confirmed", "InvoiceNumber": "", "ConfirmationNo": "TJ2021113308307", "BookingRefNo": "TJ2021113308307", "BookingId": 658, "IsPriceChanged": false, "IsCancellationPolicyChanged": false } }