POST Tour/Reservation/Book/{requestNumber}/{requestPNR}/{calendar}/{userGuid}

The step to enter travelers information 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

calendar

Desired calendar that you want to send or receive date values in
currently supporting values are as following (you can use either the short value or the complete one, for instance, both g and gregorian result in GregorianCalendar):
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

Required

userGuid

شناسه GUID کاربر
GUID of the User

string

Required

Body Parameters

Data input model including reservation information

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

TourBookRequestVm
NameDescriptionTypeAdditional information
GuestDataList

Traveler Information

اطلاعات مسافران

Collection of TourTouristDataVm

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": [
    {
      "PriceCode": 1,
      "FirstName": "sample string 2",
      "LastName": "sample string 3",
      "NationalCode": "sample string 4",
      "PassportNumber": "sample string 5",
      "PassportExpiryDate": "sample string 6",
      "BirthDate": "sample string 7"
    },
    {
      "PriceCode": 1,
      "FirstName": "sample string 2",
      "LastName": "sample string 3",
      "NationalCode": "sample string 4",
      "PassportNumber": "sample string 5",
      "PassportExpiryDate": "sample string 6",
      "BirthDate": "sample string 7"
    }
  ],
  "SalesExpertFullName": "sample string 1",
  "SalesExpertMobile": "sample string 2",
  "LeaderPhoneNumber": "sample string 3"
}

application/xml, text/xml

Sample:
<TourBookRequestVm xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/AlaedinApi.Models.Tour">
  <GuestDataList>
    <TourTouristDataVm>
      <BirthDate>sample string 7</BirthDate>
      <FirstName>sample string 2</FirstName>
      <LastName>sample string 3</LastName>
      <NationalCode>sample string 4</NationalCode>
      <PassportExpiryDate>sample string 6</PassportExpiryDate>
      <PassportNumber>sample string 5</PassportNumber>
      <PriceCode>1</PriceCode>
    </TourTouristDataVm>
    <TourTouristDataVm>
      <BirthDate>sample string 7</BirthDate>
      <FirstName>sample string 2</FirstName>
      <LastName>sample string 3</LastName>
      <NationalCode>sample string 4</NationalCode>
      <PassportExpiryDate>sample string 6</PassportExpiryDate>
      <PassportNumber>sample string 5</PassportNumber>
      <PriceCode>1</PriceCode>
    </TourTouristDataVm>
  </GuestDataList>
  <LeaderPhoneNumber>sample string 3</LeaderPhoneNumber>
  <SalesExpertFullName>sample string 1</SalesExpertFullName>
  <SalesExpertMobile>sample string 2</SalesExpertMobile>
</TourBookRequestVm>

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 'TourBookRequestVm'.

Response Information

Resource Description

TourBookResultVm
NameDescriptionTypeAdditional information
Status

Booking status of of the Tour

وضعیت فروش نهایی یک تور

ReserveStatus

None.

RequestNumber

Request Number

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

integer

None.

RequestPNR

Request PNR

PNR درخواست

string

None.

IsSuccess

Was request performed successfully?

آیا درخواست با موفقیت انجام گردید؟

boolean

None.

StatusCode

Equivalent Http Status Code of the response

کد وضعیت HTTP جواب سرویس

HttpStatusCode

None.

Message

Message in case of failure

پیغام، در صورت عدم موفقیت

string

None.

Response Formats

application/json, text/json

Sample:
{
  "Status": 0,
  "RequestNumber": 1,
  "RequestPNR": "sample string 2",
  "IsSuccess": true,
  "StatusCode": 100,
  "Message": "sample string 4"
}

application/xml, text/xml

Sample:
<TourBookResultVm xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/AlaedinApi.Models.Tour">
  <IsSuccess xmlns="http://schemas.datacontract.org/2004/07/AlaedinApi.Models">true</IsSuccess>
  <Message xmlns="http://schemas.datacontract.org/2004/07/AlaedinApi.Models">sample string 4</Message>
  <StatusCode xmlns="http://schemas.datacontract.org/2004/07/AlaedinApi.Models">Continue</StatusCode>
  <RequestNumber>1</RequestNumber>
  <RequestPNR>sample string 2</RequestPNR>
  <Status>Canceled</Status>
</TourBookResultVm>