POST Hotel/Reserve/LockRooms
مرحله رزرو موقت هتل
Request Information
URI Parameters
None.
Body Parameters
Temporary hotel reservation step
مدل داده های ورودی شامل اطلاعات رزرو
HotelReserveDataRqVmName | Description | Type | Additional information |
---|---|---|---|
requestID |
Customer Request ID شناسه درخواست مشتری |
string |
String length: inclusive between 0 and 50 |
company |
Company Name نام کمپانی |
string |
Required String length: inclusive between 0 and 50 |
status |
Reservation Status وضعیت رزرو |
HotelReserveStatus |
Required |
hotelCode |
Hotel Code کد هتل |
integer |
Required |
startDate |
Start Date (entry date) تاریخ ورود به هتل |
string |
Required Max length: 8 Min length: 8 |
nightCount |
Night Count تعداد شب اقامت |
integer |
Required |
userGuid |
User GUID شناسه کاربری |
string |
Required |
calendar |
Custom calendar for sending or receiving dates. The values that are supported are as follows (you can use an abbreviated or full value, for example both g and gregorian will use the Gregorian calendar): g/Gregorian=>Gregorian, p/persian=>Persian, h/hijri=>Hijri, he/hebrew=>Hebrew, tb/ThaiBuddhist=>ThaiBuddhist, j/japanese=>Japanese, c/chinese=>Chinese تقویم دلخواه برای ارسال یا دریافت داده های تاریخی مقادیری که از آن پشتیبانی می شود در ادامه آمده(شما می توانید از مقدار مخفف یا کامل استفاده نمایید، برای مثال چه g و چه gregorian از تقویم میلادی استفاده خواهند کرد): g/gregorian=>Gregorian, p/persian=>Persian, h/hijri=>Hijri, he/hebrew=>Hebrew, tb/ThaiBuddhist=>ThaiBuddhist, j/japanese=>Japanese, c/chinese=>Chinese |
string |
None. |
lstLockRooms |
Hotel room information that is going to be locked لیستی از اطلاعات اتاق هتل که قرار است لاک شود |
Collection of HotelLstLockRoomsVm |
Required |
leaderFullName |
Leader Full Name نام و نام خانوادگی سر گروه |
string |
Required String length: inclusive between 0 and 100 |
leaderPhoneNumber |
Leader Phone Number شماره تماس سر گروه |
string |
String length: inclusive between 0 and 11 |
transferEntry |
Airport Pickup (Optional) استقبال فرودگاهی (اختیاری) |
HotelTransferVm |
None. |
transferLeave |
Airport Drop-off (Optional) بدرقه فرودگاهی (اختیاری) |
HotelTransferVm |
None. |
Request Formats
application/json, text/json
{ "requestID": "sample string 1", "company": "sample string 2", "status": 1, "hotelCode": 3, "startDate": "sample string 4", "nightCount": 5, "userGuid": "sample string 6", "calendar": "sample string 7", "lstLockRooms": [ { "roomCode": 1, "persons": { "adultCount": 1, "childCount": 1, "babyCount": 1 }, "extraBedCount": 1, "earlyCheckIn": true, "lateCheckOut": true, "guestDataList": [ { "nationality": 1, "gender": 0, "firstName": "sample string 1", "lastName": "sample string 2", "nationalCode": "sample string 3", "passportNumber": "sample string 4", "mobile": "sample string 5" }, { "nationality": 1, "gender": 0, "firstName": "sample string 1", "lastName": "sample string 2", "nationalCode": "sample string 3", "passportNumber": "sample string 4", "mobile": "sample string 5" } ] }, { "roomCode": 1, "persons": { "adultCount": 1, "childCount": 1, "babyCount": 1 }, "extraBedCount": 1, "earlyCheckIn": true, "lateCheckOut": true, "guestDataList": [ { "nationality": 1, "gender": 0, "firstName": "sample string 1", "lastName": "sample string 2", "nationalCode": "sample string 3", "passportNumber": "sample string 4", "mobile": "sample string 5" }, { "nationality": 1, "gender": 0, "firstName": "sample string 1", "lastName": "sample string 2", "nationalCode": "sample string 3", "passportNumber": "sample string 4", "mobile": "sample string 5" } ] } ], "leaderFullName": "sample string 8", "leaderPhoneNumber": "sample string 9", "transferEntry": { "CityCode": 1, "AirlineCode": 1, "FlighNumber": "sample string 1", "FlighTime": "sample string 2" }, "transferLeave": { "CityCode": 1, "AirlineCode": 1, "FlighNumber": "sample string 1", "FlighTime": "sample string 2" } }
application/xml, text/xml
<HotelReserveDataRqVm xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/AlaedinApi.Models.Hotel"> <calendar>sample string 7</calendar> <company>sample string 2</company> <hotelCode>3</hotelCode> <leaderFullName>sample string 8</leaderFullName> <leaderPhoneNumber>sample string 9</leaderPhoneNumber> <lstLockRooms> <HotelLstLockRoomsVm> <earlyCheckIn>true</earlyCheckIn> <extraBedCount>1</extraBedCount> <guestDataList> <LstGuestInfoVm> <firstName>sample string 1</firstName> <gender>Female</gender> <lastName>sample string 2</lastName> <mobile>sample string 5</mobile> <nationalCode>sample string 3</nationalCode> <nationality>1</nationality> <passportNumber>sample string 4</passportNumber> </LstGuestInfoVm> <LstGuestInfoVm> <firstName>sample string 1</firstName> <gender>Female</gender> <lastName>sample string 2</lastName> <mobile>sample string 5</mobile> <nationalCode>sample string 3</nationalCode> <nationality>1</nationality> <passportNumber>sample string 4</passportNumber> </LstGuestInfoVm> </guestDataList> <lateCheckOut>true</lateCheckOut> <persons> <adultCount>1</adultCount> <babyCount>1</babyCount> <childCount>1</childCount> </persons> <roomCode>1</roomCode> </HotelLstLockRoomsVm> <HotelLstLockRoomsVm> <earlyCheckIn>true</earlyCheckIn> <extraBedCount>1</extraBedCount> <guestDataList> <LstGuestInfoVm> <firstName>sample string 1</firstName> <gender>Female</gender> <lastName>sample string 2</lastName> <mobile>sample string 5</mobile> <nationalCode>sample string 3</nationalCode> <nationality>1</nationality> <passportNumber>sample string 4</passportNumber> </LstGuestInfoVm> <LstGuestInfoVm> <firstName>sample string 1</firstName> <gender>Female</gender> <lastName>sample string 2</lastName> <mobile>sample string 5</mobile> <nationalCode>sample string 3</nationalCode> <nationality>1</nationality> <passportNumber>sample string 4</passportNumber> </LstGuestInfoVm> </guestDataList> <lateCheckOut>true</lateCheckOut> <persons> <adultCount>1</adultCount> <babyCount>1</babyCount> <childCount>1</childCount> </persons> <roomCode>1</roomCode> </HotelLstLockRoomsVm> </lstLockRooms> <nightCount>5</nightCount> <requestID>sample string 1</requestID> <startDate>sample string 4</startDate> <status>Online</status> <transferEntry> <AirlineCode>1</AirlineCode> <CityCode>1</CityCode> <FlighNumber>sample string 1</FlighNumber> <FlighTime>sample string 2</FlighTime> </transferEntry> <transferLeave> <AirlineCode>1</AirlineCode> <CityCode>1</CityCode> <FlighNumber>sample string 1</FlighNumber> <FlighTime>sample string 2</FlighTime> </transferLeave> <userGuid>sample string 6</userGuid> </HotelReserveDataRqVm>
application/x-www-form-urlencoded
Sample not available.
Response Information
Resource Description
HotelReserveNewDataRsVmName | Description | Type | Additional information |
---|---|---|---|
status |
وضعیت رزرو Reservation status |
boolean |
None. |
message |
توضیحات خطا Error description |
string |
None. |
requestNumber |
Request Number of the Reservation (Voucher Number) شماره درخواست رزرو (شماره واچر) |
integer |
None. |
requestPNR |
Request PNR of the Reservation شماره PNR رزرو |
string |
None. |
requestId |
کد ریکوئست برای پیگیری |
integer |
None. |
expireOn |
The time that this request will expire on زمانی که این رزرو موقت در آن پایان می یابد |
date |
None. |
totalPrice |
The Total Price of the Reserve قیمت کل رزرو |
decimal number |
None. |
lstLockRooms |
The Total Price of the Reserve لیست اتاق های لاک شده |
Collection of HotelReserveNewDataRsLstPriceDataVm |
None. |
Response Formats
application/json, text/json
{ "status": true, "message": "sample string 2", "requestNumber": 3, "requestPNR": "sample string 4", "requestId": 1, "expireOn": "2025-01-08T15:48:17.9190277+03:30", "totalPrice": 1.0, "lstLockRooms": [ { "roomTypeCode": 1, "extraBedCount": 1, "price": 1.0 }, { "roomTypeCode": 1, "extraBedCount": 1, "price": 1.0 } ] }
application/xml, text/xml
<HotelReserveNewDataRsVm xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/AlaedinApi.Models.Hotel"> <expireOn>2025-01-08T15:48:17.9190277+03:30</expireOn> <lstLockRooms> <HotelReserveNewDataRsLstPriceDataVm> <extraBedCount>1</extraBedCount> <price>1</price> <roomTypeCode>1</roomTypeCode> </HotelReserveNewDataRsLstPriceDataVm> <HotelReserveNewDataRsLstPriceDataVm> <extraBedCount>1</extraBedCount> <price>1</price> <roomTypeCode>1</roomTypeCode> </HotelReserveNewDataRsLstPriceDataVm> </lstLockRooms> <message>sample string 2</message> <requestId>1</requestId> <requestNumber>3</requestNumber> <requestPNR>sample string 4</requestPNR> <status>true</status> <totalPrice>1</totalPrice> </HotelReserveNewDataRsVm>