POST Hotel/Reserve/Book/{requestNumber}/{requestPNR}/{userGuid}

The step to enter team leader of each room, and final booking

مرحله ورود اسامی سرگروه های هر اتاق و فروش نهایی

Request Information

URI Parameters

NameDescriptionTypeAdditional information
requestNumber

Request number, Outputted from reservation step

شماره درخواست خروجی از مرحله رزرو

integer

Required

requestPNR

Request PNR, Outputted from reservation step

PNR درخواست خروجی از مرحله رزرو

string

Required

userGuid

GUID of the User

شناسه GUID کاربر

string

Required

Body Parameters

Data input model including reservation information

مدل داده های ورودی شامل اطلاعات رزرو

HotelReserveDataVm
NameDescriptionTypeAdditional information
GuestDataList

Leader information of each room

اطلاعات سرگروه های هر اتاق

Collection of HotelGuestDataVm

None.

SalesExpertFullName

Sales Expert Full Name

نام و نام خانوادگی کارشناس فروش

string

String length: inclusive between 0 and 100

SalesExpertMobile

Sales Expert Mobile Number

شماره تلفن همراه کارشناس فروش

string

String length: inclusive between 0 and 11

LeaderPhoneNumber

Leader Phone Number

شماره تماس سر گروه

string

String length: inclusive between 0 and 11

Request Formats

application/json, text/json

Sample:
{
  "GuestDataList": [
    {
      "FirstName": "sample string 1",
      "LastName": "sample string 2",
      "NationalCode": "sample string 3",
      "BedType": 1
    },
    {
      "FirstName": "sample string 1",
      "LastName": "sample string 2",
      "NationalCode": "sample string 3",
      "BedType": 1
    }
  ],
  "SalesExpertFullName": "sample string 1",
  "SalesExpertMobile": "sample string 2",
  "LeaderPhoneNumber": "sample string 3"
}

application/xml, text/xml

Sample:
<HotelReserveDataVm xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/AlaedinApi.Models.Hotel">
  <GuestDataList>
    <HotelGuestDataVm>
      <BedType>Double</BedType>
      <FirstName>sample string 1</FirstName>
      <LastName>sample string 2</LastName>
      <NationalCode>sample string 3</NationalCode>
    </HotelGuestDataVm>
    <HotelGuestDataVm>
      <BedType>Double</BedType>
      <FirstName>sample string 1</FirstName>
      <LastName>sample string 2</LastName>
      <NationalCode>sample string 3</NationalCode>
    </HotelGuestDataVm>
  </GuestDataList>
  <LeaderPhoneNumber>sample string 3</LeaderPhoneNumber>
  <SalesExpertFullName>sample string 1</SalesExpertFullName>
  <SalesExpertMobile>sample string 2</SalesExpertMobile>
</HotelReserveDataVm>

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'HotelReserveDataVm'.

Response Information

Resource Description

HotelBookResultVm
NameDescriptionTypeAdditional information
Status

وضعیت رزرو

Reservation status

ReserveStatus

None.

VouchersDetails

Voucher Details

جزییات واچر ها

Collection of HotelVoucherDetailsVm

None.

RequestNumber

Request Number

شماره درخواست

integer

None.

VoucherUrl

The URL to fetch voucher's file

آدرس دریافت فایل واچر ها

string

None.

Response Formats

application/json, text/json

Sample:
{
  "Status": 0,
  "VouchersDetails": [
    {
      "VoucherNumber": "sample string 1",
      "Price": 1.0,
      "RoomCode": 1
    },
    {
      "VoucherNumber": "sample string 1",
      "Price": 1.0,
      "RoomCode": 1
    }
  ],
  "RequestNumber": 1,
  "VoucherUrl": "sample string 2"
}

application/xml, text/xml

Sample:
<HotelBookResultVm xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/AlaedinApi.Models.Hotel">
  <RequestNumber>1</RequestNumber>
  <Status>Canceled</Status>
  <VoucherUrl>sample string 2</VoucherUrl>
  <VouchersDetails>
    <HotelVoucherDetailsVm>
      <Price>1</Price>
      <RoomCode>1</RoomCode>
      <VoucherNumber>sample string 1</VoucherNumber>
    </HotelVoucherDetailsVm>
    <HotelVoucherDetailsVm>
      <Price>1</Price>
      <RoomCode>1</RoomCode>
      <VoucherNumber>sample string 1</VoucherNumber>
    </HotelVoucherDetailsVm>
  </VouchersDetails>
</HotelBookResultVm>