Insurance components are a type of extra in of themselves, and this Search request and response is specifically used for searching for Third Party Insurance components. It requires Property, Flight, Car Hire and Passenger information to be entered that can be passed to the Insurance provider.
The structure of the XML will be:
The search response returns details in line with an Extra Component, including a Booking Token. The Extra Prebook and Extra Book (contained within a Basket Book request) requests are used to complete the booking.
The structure of the XML will be:
<ThirdPartyInsuranceSearchRequest xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<LoginDetails>
<Login>{{Login}}</Login>
<Password>{{Password}}</Password>
<AgentReference />
<SellingCurrencyID>0</SellingCurrencyID>
<LanguageID>0</LanguageID>
<TrackingAffiliateID>0</TrackingAffiliateID>
</LoginDetails>
<GuestDetails>
<GuestDetail>
<Type>Adult</Type>
<Title>MR</Title>
<FirstName>Watson</FirstName>
<MiddleName></MiddleName>
<LastName>James</LastName>
<Age>22</Age>
<DateOfBirth>1996-11-21T00:00:00</DateOfBirth>
</GuestDetail>
<GuestDetail>
<GuestID>2</GuestID>
<Type>Adult</Type>
<Title>MRS</Title>
<FirstName>Wendy</FirstName>
<MiddleName></MiddleName>
<LastName>James</LastName>
<Age>22</Age>
<DateOfBirth>1996-11-21T00:00:00</DateOfBirth>
</GuestDetail>
</GuestDetails>
<ExpectedTotal>407.02</ExpectedTotal>
<LeadCustomer>
<CustomerEmail>test@test.com</CustomerEmail>
<CustomerTitle>Mr</CustomerTitle>
<CustomerFirstName>James</CustomerFirstName>
<CustomerLastName>Watson</CustomerLastName>
<DateOfBirth>1996-11-21T00:00:00.001</DateOfBirth>
<CustomerAddress1>OAIS</CustomerAddress1>
<CustomerAddress2>WEDa</CustomerAddress2>
<CustomerTownCity>wdqw</CustomerTownCity>
<CustomerCounty>qwd</CustomerCounty>
<CustomerPostcode>qwdas</CustomerPostcode>
<CustomerBookingCountryID>1</CustomerBookingCountryID>
</LeadCustomer>
<Properties>
<Property>
<BookingToken>BtsoVrYn0Hfbw</BookingToken>
<ArrivalDate>2021-09-13T00:00:00+00:00</ArrivalDate>
<Duration>3</Duration>
<Rooms>
<Room>
<RoomBookingToken>DqQ6KP6fl8NrmcCltskql27</RoomBookingToken>
<Guests>2</Guests>
</Room>
</Rooms>
</Property>
<Property>
<BookingToken>uJeym6u16eMq62N1K5V7H2NXeIw</BookingToken>
<ArrivalDate>2021-09-16T00:00:00+00:00</ArrivalDate>
<Duration>4</Duration>
<Rooms>
<Room>
<RoomBookingToken>tOljfq1enHyPlQ6eqQnVy1r</RoomBookingToken>
<Guests>2</Guests>
</Room>
</Rooms>
</Property>
</Properties>
<Flights>
<Flight>
<BookingToken>DTVPDnu2C2jXhy3a3Ca4vhvM2s87I</BookingToken>
<Guests>2</Guests>
</Flight>
</Flights>
<Cars>
<Car>
<BookingToken>GTPUVq23JNw=</BookingToken>
</Car>
<Car>
<BookingToken>ibNhkLYIVpE=</BookingToken>
</Car>
</Cars>
</ThirdPartyInsuranceSearchRequest>
<ThirdPartyInsuranceSearchResponse>
<ReturnStatus>
<Success>true</Success>
<Exceptions />
<ThirdPartyErrors />
</ReturnStatus>
<Extras>
<Extra>
<ExtraName>Annual Base Benefits Insurance</ExtraName>
<ExtraSubName>Annual Policies</ExtraSubName>
<SupplierID>420</SupplierID>
<BookingToken>beywuctkbuertnrgt6e</BookingToken>
<ExtraPrice>469.00</ExtraPrice>
<StartDate>16/09/2022</StartDate>
<EndDate>15/09/2022</EndDate>
<Description />
<CoverPolicies>
<CoverPolicy>
<Name>Annual Base Benefits</Name>
<Description>Includes all standard insurance cover items</Description>
<Limit>1000000</Limit>
<Excess>150.00</Excess>
</CoverPolicy>
</CoverPolicies>
</Extra>
</Extras>
</ThirdPartyInsuranceSearchResponse>