POST Hotel/Reserve/Book
مرحله بوک نهایی
Request Information
URI Parameters
None.
Body Parameters
Final booking step
مدل داده های ورودی شامل اطلاعات رزرو موقت
HotelReserveNewBookDataRqVmName | Description | Type | Additional information |
---|---|---|---|
requestNumber |
Request Number of the Reservation (Voucher Number) شماره درخواست رزرو (شماره واچر) |
integer |
Required |
requestPNR |
Request PNR of the Reservation شماره PNR رزرو |
string |
Required |
userGuid |
User GUID شناسه کاربری |
string |
Required |
Request Formats
application/json, text/json
{ "requestNumber": 1, "requestPNR": "sample string 2", "userGuid": "sample string 3" }
application/xml, text/xml
<HotelReserveNewBookDataRqVm xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/AlaedinApi.Models.Hotel"> <requestNumber>1</requestNumber> <requestPNR>sample string 2</requestPNR> <userGuid>sample string 3</userGuid> </HotelReserveNewBookDataRqVm>
application/x-www-form-urlencoded
Sample not available.
Response Information
Resource Description
HotelBookNewResultVmName | Description | Type | Additional information |
---|---|---|---|
status |
وضعیت رزرو Reservation status |
boolean |
None. |
message |
توضیحات خطا Error description |
string |
None. |
vouchersDetails |
Voucher Details جزییات واچر ها |
Collection of HotelBookNewDetailsVm |
None. |
requestNumber |
Request Number شماره درخواست |
integer |
None. |
voucherUrl |
The URL to fetch voucher's file آدرس دریافت فایل واچر ها |
string |
None. |
Response Formats
application/json, text/json
{ "status": true, "message": "sample string 2", "vouchersDetails": [ { "voucherNumber": "sample string 1", "price": 1.0, "roomCode": 1 }, { "voucherNumber": "sample string 1", "price": 1.0, "roomCode": 1 } ], "requestNumber": 3, "voucherUrl": "sample string 4" }
application/xml, text/xml
<HotelBookNewResultVm xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/AlaedinApi.Models.Hotel"> <message>sample string 2</message> <requestNumber>3</requestNumber> <status>true</status> <voucherUrl>sample string 4</voucherUrl> <vouchersDetails> <HotelBookNewDetailsVm> <price>1</price> <roomCode>1</roomCode> <voucherNumber>sample string 1</voucherNumber> </HotelBookNewDetailsVm> <HotelBookNewDetailsVm> <price>1</price> <roomCode>1</roomCode> <voucherNumber>sample string 1</voucherNumber> </HotelBookNewDetailsVm> </vouchersDetails> </HotelBookNewResultVm>