POST api/tour/basket/book
Request Information
URI Parameters
None.
Body Parameters
BookOwnTourRequestName | Description | Type | Additional information |
---|---|---|---|
TourId | string |
None. |
|
Price | decimal number |
None. |
|
IsPreorder | boolean |
None. |
|
Tourists | Collection of TouristData |
None. |
|
Comment | string |
None. |
|
AdditionalServices | Collection of AdditionalTourServiceBookings |
None. |
|
SeatingArrangementInfo | SeatingArrangementInfo |
None. |
Request Formats
application/json, text/json
Sample:
{ "TourId": "sample string 1", "Price": 2.0, "IsPreorder": true, "Tourists": [ { "Id": 1, "FirstName": "sample string 2", "LastName": "sample string 3", "MiddleName": "sample string 4", "DateOfBirth": { "Serialized": "01.01.1970", "HasValue": true, "Milliseconds": 3, "Format": "sample string 4" }, "DocumentNumber": "sample string 5", "DocumentValidDate": { "Serialized": "01.01.1970", "HasValue": true, "Milliseconds": 3, "Format": "sample string 4" }, "DocumentDateOfIssuance": { "Serialized": "01.01.1970", "HasValue": true, "Milliseconds": 3, "Format": "sample string 4" }, "DocumentIssuer": "sample string 6", "ContactTelephoneNumber": "sample string 7", "NeedVisa": true, "NeedInsurance": true, "Gender": "MAN", "TypeOfDocument": "FOREIGN_PASSPORT", "Citizenship": "sample string 10", "AgeCategory": "ADULT", "Document": { "DocumentType": "FOREIGN_PASSPORT", "ValidToDate": "1970-01-01T03:00:00.003+03:00", "IsCorrect": false }, "FirstNameLat": "sample string 11", "LastNameLat": "sample string 12", "MiddleNameLat": "sample string 13", "Email": "sample string 14", "PostIndex": "sample string 15", "PostCity": "sample string 16", "PostStreet": "sample string 17", "PostBuilding": "sample string 18", "PostFlat": "sample string 19", "BirthCountry": "sample string 20", "AdditionalValues": [ { "Title": "sample string 1", "AdditionalValueTypeId": 2, "Value": "sample string 3", "Required": true, "Options": [ { "Id": 1, "Value": "sample string 2" }, { "Id": 1, "Value": "sample string 2" } ], "SelectedOptions": [ 1, 2 ], "AdditionalTypeId": 5 }, { "Title": "sample string 1", "AdditionalValueTypeId": 2, "Value": "sample string 3", "Required": true, "Options": [ { "Id": 1, "Value": "sample string 2" }, { "Id": 1, "Value": "sample string 2" } ], "SelectedOptions": [ 1, 2 ], "AdditionalTypeId": 5 } ], "ForceCreating": true, "IsTourist": true, "IsMain": true }, { "Id": 1, "FirstName": "sample string 2", "LastName": "sample string 3", "MiddleName": "sample string 4", "DateOfBirth": { "Serialized": "01.01.1970", "HasValue": true, "Milliseconds": 3, "Format": "sample string 4" }, "DocumentNumber": "sample string 5", "DocumentValidDate": { "Serialized": "01.01.1970", "HasValue": true, "Milliseconds": 3, "Format": "sample string 4" }, "DocumentDateOfIssuance": { "Serialized": "01.01.1970", "HasValue": true, "Milliseconds": 3, "Format": "sample string 4" }, "DocumentIssuer": "sample string 6", "ContactTelephoneNumber": "sample string 7", "NeedVisa": true, "NeedInsurance": true, "Gender": "MAN", "TypeOfDocument": "FOREIGN_PASSPORT", "Citizenship": "sample string 10", "AgeCategory": "ADULT", "Document": { "DocumentType": "FOREIGN_PASSPORT", "ValidToDate": "1970-01-01T03:00:00.003+03:00", "IsCorrect": false }, "FirstNameLat": "sample string 11", "LastNameLat": "sample string 12", "MiddleNameLat": "sample string 13", "Email": "sample string 14", "PostIndex": "sample string 15", "PostCity": "sample string 16", "PostStreet": "sample string 17", "PostBuilding": "sample string 18", "PostFlat": "sample string 19", "BirthCountry": "sample string 20", "AdditionalValues": [ { "Title": "sample string 1", "AdditionalValueTypeId": 2, "Value": "sample string 3", "Required": true, "Options": [ { "Id": 1, "Value": "sample string 2" }, { "Id": 1, "Value": "sample string 2" } ], "SelectedOptions": [ 1, 2 ], "AdditionalTypeId": 5 }, { "Title": "sample string 1", "AdditionalValueTypeId": 2, "Value": "sample string 3", "Required": true, "Options": [ { "Id": 1, "Value": "sample string 2" }, { "Id": 1, "Value": "sample string 2" } ], "SelectedOptions": [ 1, 2 ], "AdditionalTypeId": 5 } ], "ForceCreating": true, "IsTourist": true, "IsMain": true } ], "Comment": "sample string 4", "AdditionalServices": [ { "ServiceId": 1, "Quantity": 2, "ServiceVariantPriceId": 1 }, { "ServiceId": 1, "Quantity": 2, "ServiceVariantPriceId": 1 } ], "SeatingArrangementInfo": { "TransferId": 1, "TransportId": 2, "SeatingArrangements": [ { "Id": 1, "SeatNumber": "sample string 2", "Type": 3, "XCoord": 4, "YCoord": 5 }, { "Id": 1, "SeatNumber": "sample string 2", "Type": 3, "XCoord": 4, "YCoord": 5 } ] } }
application/xml, text/xml
Sample:
<BookOwnTourRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Mag.TourGate.TourGateWebClient.Areas.Tour.Models.Dto"> <AdditionalServices> <AdditionalTourServiceBookings> <Quantity>2</Quantity> <ServiceId>1</ServiceId> <ServiceVariantPriceId>1</ServiceVariantPriceId> </AdditionalTourServiceBookings> <AdditionalTourServiceBookings> <Quantity>2</Quantity> <ServiceId>1</ServiceId> <ServiceVariantPriceId>1</ServiceVariantPriceId> </AdditionalTourServiceBookings> </AdditionalServices> <Comment>sample string 4</Comment> <IsPreorder>true</IsPreorder> <Price>2</Price> <SeatingArrangementInfo> <SeatingArrangements> <SeatingArrangement> <Id>1</Id> <SeatNumber>sample string 2</SeatNumber> <Type>3</Type> <XCoord>4</XCoord> <YCoord>5</YCoord> </SeatingArrangement> <SeatingArrangement> <Id>1</Id> <SeatNumber>sample string 2</SeatNumber> <Type>3</Type> <XCoord>4</XCoord> <YCoord>5</YCoord> </SeatingArrangement> </SeatingArrangements> <TransferId>1</TransferId> <TransportId>2</TransportId> </SeatingArrangementInfo> <TourId>sample string 1</TourId> <Tourists xmlns:d2p1="http://schemas.datacontract.org/2004/07/Mag.TourGate.TourGateWebClient.Models.Basket.Contract"> <d2p1:TouristData> <d2p1:AdditionalValues xmlns:d4p1="http://schemas.datacontract.org/2004/07/Mag.TourGate.TourGateWebClient.Models.Client.Contract"> <d4p1:AdditionalValueInfo> <d4p1:AdditionalTypeId>5</d4p1:AdditionalTypeId> <d4p1:AdditionalValueTypeId>2</d4p1:AdditionalValueTypeId> <d4p1:Options> <d4p1:AdditionalValueOption> <d4p1:Id>1</d4p1:Id> <d4p1:Value>sample string 2</d4p1:Value> </d4p1:AdditionalValueOption> <d4p1:AdditionalValueOption> <d4p1:Id>1</d4p1:Id> <d4p1:Value>sample string 2</d4p1:Value> </d4p1:AdditionalValueOption> </d4p1:Options> <d4p1:Required>true</d4p1:Required> <d4p1:SelectedOptions xmlns:d6p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays"> <d6p1:int>1</d6p1:int> <d6p1:int>2</d6p1:int> </d4p1:SelectedOptions> <d4p1:Title>sample string 1</d4p1:Title> <d4p1:Value>sample string 3</d4p1:Value> </d4p1:AdditionalValueInfo> <d4p1:AdditionalValueInfo> <d4p1:AdditionalTypeId>5</d4p1:AdditionalTypeId> <d4p1:AdditionalValueTypeId>2</d4p1:AdditionalValueTypeId> <d4p1:Options> <d4p1:AdditionalValueOption> <d4p1:Id>1</d4p1:Id> <d4p1:Value>sample string 2</d4p1:Value> </d4p1:AdditionalValueOption> <d4p1:AdditionalValueOption> <d4p1:Id>1</d4p1:Id> <d4p1:Value>sample string 2</d4p1:Value> </d4p1:AdditionalValueOption> </d4p1:Options> <d4p1:Required>true</d4p1:Required> <d4p1:SelectedOptions xmlns:d6p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays"> <d6p1:int>1</d6p1:int> <d6p1:int>2</d6p1:int> </d4p1:SelectedOptions> <d4p1:Title>sample string 1</d4p1:Title> <d4p1:Value>sample string 3</d4p1:Value> </d4p1:AdditionalValueInfo> </d2p1:AdditionalValues> <d2p1:AgeCategory>ADULT</d2p1:AgeCategory> <d2p1:BirthCountry>sample string 20</d2p1:BirthCountry> <d2p1:Citizenship>sample string 10</d2p1:Citizenship> <d2p1:ContactTelephoneNumber>sample string 7</d2p1:ContactTelephoneNumber> <d2p1:DateOfBirth xmlns:d4p1="http://schemas.datacontract.org/2004/07/Mag.TourGate.TourGateWebClient.Models.Common.Contract"> <d4p1:_format>sample string 4</d4p1:_format> <d4p1:_serialized>01.01.1970</d4p1:_serialized> <d4p1:_value>1970-01-01T03:00:00.003+03:00</d4p1:_value> </d2p1:DateOfBirth> <d2p1:DocumentDateOfIssuance xmlns:d4p1="http://schemas.datacontract.org/2004/07/Mag.TourGate.TourGateWebClient.Models.Common.Contract"> <d4p1:_format>sample string 4</d4p1:_format> <d4p1:_serialized>01.01.1970</d4p1:_serialized> <d4p1:_value>1970-01-01T03:00:00.003+03:00</d4p1:_value> </d2p1:DocumentDateOfIssuance> <d2p1:DocumentIssuer>sample string 6</d2p1:DocumentIssuer> <d2p1:DocumentNumber>sample string 5</d2p1:DocumentNumber> <d2p1:DocumentValidDate xmlns:d4p1="http://schemas.datacontract.org/2004/07/Mag.TourGate.TourGateWebClient.Models.Common.Contract"> <d4p1:_format>sample string 4</d4p1:_format> <d4p1:_serialized>01.01.1970</d4p1:_serialized> <d4p1:_value>1970-01-01T03:00:00.003+03:00</d4p1:_value> </d2p1:DocumentValidDate> <d2p1:Email>sample string 14</d2p1:Email> <d2p1:FirstName>sample string 2</d2p1:FirstName> <d2p1:FirstNameLat>sample string 11</d2p1:FirstNameLat> <d2p1:ForceCreating>true</d2p1:ForceCreating> <d2p1:Gender>MAN</d2p1:Gender> <d2p1:Id>1</d2p1:Id> <d2p1:IsMain>true</d2p1:IsMain> <d2p1:IsTourist>true</d2p1:IsTourist> <d2p1:LastName>sample string 3</d2p1:LastName> <d2p1:LastNameLat>sample string 12</d2p1:LastNameLat> <d2p1:MiddleName>sample string 4</d2p1:MiddleName> <d2p1:MiddleNameLat>sample string 13</d2p1:MiddleNameLat> <d2p1:NeedInsurance>true</d2p1:NeedInsurance> <d2p1:NeedVisa>true</d2p1:NeedVisa> <d2p1:PostBuilding>sample string 18</d2p1:PostBuilding> <d2p1:PostCity>sample string 16</d2p1:PostCity> <d2p1:PostFlat>sample string 19</d2p1:PostFlat> <d2p1:PostIndex>sample string 15</d2p1:PostIndex> <d2p1:PostStreet>sample string 17</d2p1:PostStreet> <d2p1:TypeOfDocument>FOREIGN_PASSPORT</d2p1:TypeOfDocument> </d2p1:TouristData> <d2p1:TouristData> <d2p1:AdditionalValues xmlns:d4p1="http://schemas.datacontract.org/2004/07/Mag.TourGate.TourGateWebClient.Models.Client.Contract"> <d4p1:AdditionalValueInfo> <d4p1:AdditionalTypeId>5</d4p1:AdditionalTypeId> <d4p1:AdditionalValueTypeId>2</d4p1:AdditionalValueTypeId> <d4p1:Options> <d4p1:AdditionalValueOption> <d4p1:Id>1</d4p1:Id> <d4p1:Value>sample string 2</d4p1:Value> </d4p1:AdditionalValueOption> <d4p1:AdditionalValueOption> <d4p1:Id>1</d4p1:Id> <d4p1:Value>sample string 2</d4p1:Value> </d4p1:AdditionalValueOption> </d4p1:Options> <d4p1:Required>true</d4p1:Required> <d4p1:SelectedOptions xmlns:d6p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays"> <d6p1:int>1</d6p1:int> <d6p1:int>2</d6p1:int> </d4p1:SelectedOptions> <d4p1:Title>sample string 1</d4p1:Title> <d4p1:Value>sample string 3</d4p1:Value> </d4p1:AdditionalValueInfo> <d4p1:AdditionalValueInfo> <d4p1:AdditionalTypeId>5</d4p1:AdditionalTypeId> <d4p1:AdditionalValueTypeId>2</d4p1:AdditionalValueTypeId> <d4p1:Options> <d4p1:AdditionalValueOption> <d4p1:Id>1</d4p1:Id> <d4p1:Value>sample string 2</d4p1:Value> </d4p1:AdditionalValueOption> <d4p1:AdditionalValueOption> <d4p1:Id>1</d4p1:Id> <d4p1:Value>sample string 2</d4p1:Value> </d4p1:AdditionalValueOption> </d4p1:Options> <d4p1:Required>true</d4p1:Required> <d4p1:SelectedOptions xmlns:d6p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays"> <d6p1:int>1</d6p1:int> <d6p1:int>2</d6p1:int> </d4p1:SelectedOptions> <d4p1:Title>sample string 1</d4p1:Title> <d4p1:Value>sample string 3</d4p1:Value> </d4p1:AdditionalValueInfo> </d2p1:AdditionalValues> <d2p1:AgeCategory>ADULT</d2p1:AgeCategory> <d2p1:BirthCountry>sample string 20</d2p1:BirthCountry> <d2p1:Citizenship>sample string 10</d2p1:Citizenship> <d2p1:ContactTelephoneNumber>sample string 7</d2p1:ContactTelephoneNumber> <d2p1:DateOfBirth xmlns:d4p1="http://schemas.datacontract.org/2004/07/Mag.TourGate.TourGateWebClient.Models.Common.Contract"> <d4p1:_format>sample string 4</d4p1:_format> <d4p1:_serialized>01.01.1970</d4p1:_serialized> <d4p1:_value>1970-01-01T03:00:00.003+03:00</d4p1:_value> </d2p1:DateOfBirth> <d2p1:DocumentDateOfIssuance xmlns:d4p1="http://schemas.datacontract.org/2004/07/Mag.TourGate.TourGateWebClient.Models.Common.Contract"> <d4p1:_format>sample string 4</d4p1:_format> <d4p1:_serialized>01.01.1970</d4p1:_serialized> <d4p1:_value>1970-01-01T03:00:00.003+03:00</d4p1:_value> </d2p1:DocumentDateOfIssuance> <d2p1:DocumentIssuer>sample string 6</d2p1:DocumentIssuer> <d2p1:DocumentNumber>sample string 5</d2p1:DocumentNumber> <d2p1:DocumentValidDate xmlns:d4p1="http://schemas.datacontract.org/2004/07/Mag.TourGate.TourGateWebClient.Models.Common.Contract"> <d4p1:_format>sample string 4</d4p1:_format> <d4p1:_serialized>01.01.1970</d4p1:_serialized> <d4p1:_value>1970-01-01T03:00:00.003+03:00</d4p1:_value> </d2p1:DocumentValidDate> <d2p1:Email>sample string 14</d2p1:Email> <d2p1:FirstName>sample string 2</d2p1:FirstName> <d2p1:FirstNameLat>sample string 11</d2p1:FirstNameLat> <d2p1:ForceCreating>true</d2p1:ForceCreating> <d2p1:Gender>MAN</d2p1:Gender> <d2p1:Id>1</d2p1:Id> <d2p1:IsMain>true</d2p1:IsMain> <d2p1:IsTourist>true</d2p1:IsTourist> <d2p1:LastName>sample string 3</d2p1:LastName> <d2p1:LastNameLat>sample string 12</d2p1:LastNameLat> <d2p1:MiddleName>sample string 4</d2p1:MiddleName> <d2p1:MiddleNameLat>sample string 13</d2p1:MiddleNameLat> <d2p1:NeedInsurance>true</d2p1:NeedInsurance> <d2p1:NeedVisa>true</d2p1:NeedVisa> <d2p1:PostBuilding>sample string 18</d2p1:PostBuilding> <d2p1:PostCity>sample string 16</d2p1:PostCity> <d2p1:PostFlat>sample string 19</d2p1:PostFlat> <d2p1:PostIndex>sample string 15</d2p1:PostIndex> <d2p1:PostStreet>sample string 17</d2p1:PostStreet> <d2p1:TypeOfDocument>FOREIGN_PASSPORT</d2p1:TypeOfDocument> </d2p1:TouristData> </Tourists> </BookOwnTourRequest>
application/x-www-form-urlencoded
Sample:
Response Information
Resource Description
BookOwnTourResponseName | Description | Type | Additional information |
---|---|---|---|
StatusId | integer |
None. |
|
Success | boolean |
None. |
|
AgreementCode | string |
None. |
|
PayLink | string |
None. |
|
CabinetLink | string |
None. |
|
Message | string |
None. |
Response Formats
application/json, text/json
Sample:
{ "StatusId": 1, "Success": true, "AgreementCode": "sample string 3", "PayLink": "sample string 4", "CabinetLink": "sample string 5", "Message": "sample string 6" }
application/xml, text/xml
Sample:
<BookOwnTourResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Mag.TourGate.TourGateWebClient.Areas.Tour.Models.Dto"> <AgreementCode>sample string 3</AgreementCode> <CabinetLink>sample string 5</CabinetLink> <Message>sample string 6</Message> <PayLink>sample string 4</PayLink> <StatusId>1</StatusId> <Success>true</Success> </BookOwnTourResponse>