POST Tour/Reservation/Reserve/{tourCode}/{timingCode}/{offerCode}/{groupPriceCodes}/{numberOfPeople}/{userGuid}

Reserve a tour temporary, and return a Request Number and Request PNR for later actions on this reserve.
Custom Error Status Codes:

  • 410 Gone: The tour may not be available, or there are no more spaces left

رزرو یک تور به صورت موقت، و باز گرداندن یک شماره درخواست و PNR برای اعمال دستورات بر روی این رزرو
کد خطا های سفارشی :

  • 410 Gone: تور در دسترس نمی باشد، یا فضای دیگری موجود نیست

Request Information

URI Parameters

NameDescriptionTypeAdditional information
tourCode

Code of the Tour

کد تور

integer

Required

timingCode

Code of the Tour Timing

کد تاریخبندی تور

integer

Required

offerCode

Code of the Offer

کد پیشنهاد

integer

Required

groupPriceCodes

CSV list of group price codes: 45, 101

لیست کد گروه قیمتی، جدا شده با کاما: 101, 45‫

string

Required

numberOfPeople

CSV list of Number people applying per group price: 1,1
Note that the number of people, should fill grouping price capacity, for example: for a pricing group that offer two bed in hotel, we should apply for two person.

لیست تعداد اشخاصی به ازای هر گروه قیمتی ، به صورت جدا شده با کاما: 1,1‫
تذکر: تعداد اشخاص باید ظرفیت گروه قیمتی را تکمیل نماید، برای مثال: برای گروه قیمتی که پیشنهاد هتل دو تخته می دهد باید دو نفر جا رزرو شود

string

Required

userGuid

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

string

Required

Body Parameters

None.

Response Information

Resource Description

TourReserveVm
NameDescriptionTypeAdditional information
RequestNumber

Request Number of the Reservation (Voucher Number)

شماره درخواست رزرو (شماره واچر)‫

integer

None.

RequestPNR

Request PNR of the Reservation

شماره PNR رزرو

string

None.

ExpireOn

The time that this request will expire on

زمانی که این رزرو موقت در آن پایان می یابد

date

None.

TotalPrice

The Total Price of the Reserve

قیمت کل رزرو

decimal number

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:
{
  "RequestNumber": 1,
  "RequestPNR": "sample string 2",
  "ExpireOn": "2024-04-25T14:52:13.3914016+03:30",
  "TotalPrice": 1.0,
  "IsSuccess": true,
  "StatusCode": 100,
  "Message": "sample string 4"
}

application/xml, text/xml

Sample:
<TourReserveVm 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>
  <ExpireOn>2024-04-25T14:52:13.3914016+03:30</ExpireOn>
  <RequestNumber>1</RequestNumber>
  <RequestPNR>sample string 2</RequestPNR>
  <TotalPrice>1</TotalPrice>
</TourReserveVm>