The quote create request provides the ability to create quotes for any type of booking. It is used to send all the necessary information to the database in order to provide an up to date quote. A complete reference for what can be included in a quote create request is given below.
The minimum information a quote create request should contain is: Login details; Guest Details; Booking Adjustment; & one of: Property Book Request; Flight Book Request; Transfer Book Request; Extra Book Request; or Car Hire Book Request.
XML Structure
The structure of this XML will be the following
The response returned will include the Return Status; Quote Reference; Total Price; Total Commission; VAT on Commission; and one of: Property Bookings; Flight Bookings; Transfer Bookings; Extras Bookings; or Car Hire Bookings.
The request to create a quote for a property booking.
<BasketQuoteRequest>
<LoginDetails>
<Login>DemoLogin</Login>
<Password>DemoPassword</Password>
</LoginDetails>
<LeadCustomer>
<CustomerTitle />
<CustomerId>0</CustomerId>
<CustomerFirstName />
<CustomerLastName />
<DateOfBirth>0001-01-01T00:00:00</DateOfBirth>
<CustomerAddress1 />
<CustomerAddress2 />
<CustomerTownCity />
<CustomerCounty />
<CustomerPostcode />
<CustomerBookingCountryID>0</CustomerBookingCountryID>
<CustomerPhone />
<CustomerMobile />
<CustomerFax />
<CustomerEmail />
<CustomerPassportNumber />
<CustomerExternalReference />
<ContactCustomer>false</ContactCustomer>
<ContactByPost>false</ContactByPost>
<ContactByEmail>false</ContactByEmail>
<ContactByPhone>false</ContactByPhone>
<ContactBySMS>false</ContactBySMS>
<EMarketingSignUp>false</EMarketingSignUp>
</LeadCustomer>
<GuestDetails>
<GuestDetail>
<GuestID>-1</GuestID>
<Type>Adult</Type>
<Title>Mr</Title>
<FirstName>AA</FirstName>
<MiddleName />
<LastName>TBA</LastName>
<Age>21</Age>
<DateOfBirth>1999-10-12T00:00:00</DateOfBirth>
<NationalityID>0</NationalityID>
<PassportNumber />
<Gender />
</GuestDetail>
<GuestDetail>
<GuestID>-2</GuestID>
<Type>Adult</Type>
<Title>Mr</Title>
<FirstName>BB</FirstName>
<MiddleName />
<LastName>TBA</LastName>
<Age>23</Age>
<DateOfBirth>1997-05-12T00:00:00</DateOfBirth>
<NationalityID>0</NationalityID>
<PassportNumber />
<Gender />
</GuestDetail>
</GuestDetails>
<PropertyBookings>
<PropertyBookRequest>
<BookingToken>Bce1Y4jzu379pr</BookingToken>
<ArrivalDate>2020-10-10T00:00:00</ArrivalDate>
<Duration>6</Duration>
<Request />
<ExpectedTotal>101.67</ExpectedTotal>
<RoomBookings>
<RoomBooking>
<RoomBookingToken>FNWiXJTiVRxh1rlh1Hrd</RoomBookingToken>
<GuestIDs>
<GuestID>-1</GuestID>
<GuestID>-2</GuestID>
</GuestIDs>
</RoomBooking>
</RoomBookings>
<BookingTags />
<ThirdPartyForceFail>false</ThirdPartyForceFail>
<PayLocal>false</PayLocal>
<PackageDetails>
<PackageBooking>false</PackageBooking>
<TargetPrice>0</TargetPrice>
<MinUnderAbsorbPrice>0</MinUnderAbsorbPrice>
<MaxOverAbsorbPrice>0</MaxOverAbsorbPrice>
</PackageDetails>
</PropertyBookRequest>
</PropertyBookings>
<BookingAdjustments>
<BookingAdjustment>
<BookingAdjustmentTypeID>6</BookingAdjustmentTypeID>
<AdjustmentType>Contingency</AdjustmentType>
<AdjustmentAmount>19.00</AdjustmentAmount>
<CalculationBasis>Amount Per Person</CalculationBasis>
<ParentType>Booking</ParentType>
</BookingAdjustment>
</BookingAdjustments>
</BasketQuoteRequest>
The response returned, indicating that a quote has been successfully created.
<BasketQuoteResponse>
<ReturnStatus>
<Success>true</Success>
<Exceptions />
<ThirdPartyErrors />
</ReturnStatus>
<TotalPrice>116.67</TotalPrice>
<TotalCommission>0.0</TotalCommission>
<VATOnCommission>0.0</VATOnCommission>
<QuoteReference>1053384/1</QuoteReference>
<PropertyBookings>
<PropertyBookResponse>
<ReturnStatus>
<Success>true</Success>
<Exceptions />
<ThirdPartyErrors />
</ReturnStatus>
<TotalPrice>82.67</TotalPrice>
<TotalCommission>0.0</TotalCommission>
<VATOnCommission>0.0</VATOnCommission>
<PayLocalTotal>0</PayLocalTotal>
<PaymentsDue />
<Cancellations />
</PropertyBookResponse>
</PropertyBookings>
<FlightBookings />
<TransferBookings />
<ExtraBookings />
<CarHireBookings />
</BasketQuoteResponse>