POST Tour/Reservation/Book/{requestNumber}/{requestPNR}/{userGuid}
The step to enter travelers information and final booking
مرحله ورود اطلاعات گردشگران و فروش نهایی
Request Information
URI Parameters
Name | Description | Type | Additional information |
---|---|---|---|
requestNumber |
Request number, Outputted from reservation step شماره درخواست خروجی از مرحله رزرو |
integer |
Required |
requestPNR |
Request PNR, Outputted from reservation step PNR درخواست خروجی از مرحله رزرو |
string |
Required |
userGuid |
شناسه GUID کاربر
|
string |
Required |
Body Parameters
Data input model including reservation information
مدل داده های ورودی شامل اطلاعات رزرو
TourBookRequestVmName | Description | Type | Additional 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
{ "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
<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 not available.
Response Information
Resource Description
TourBookResultVmName | Description | Type | Additional 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
{ "Status": 0, "RequestNumber": 1, "RequestPNR": "sample string 2", "IsSuccess": true, "StatusCode": 100, "Message": "sample string 4" }
application/xml, text/xml
<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>