The book call used to complete the extra booking is the basket book call. This is the same basket book call used to book any component, which will then contain the extra book request. Multiple extra bookings can be made in a single basket book call, and multiple components, including extras can also be made in this call.
The API receives the basket book call, the system attempts to book the extra with the third party supplier and returns a return status to report the success of this booking. The basket book response includes a confirmation of the booking , the price and any charges for cancelling and the payments due and their due dates.
The structure of this XML will be the standard Basket Book Request call, which will include an Extra Book Request.
The structure of the Extra Book Request is shown below.
The structure of this XML will be the standard Basket Book Response call, which will include an Extra Book Response for this booking.
The structure of the Extra Book Response is shown below.
<BasketBookRequest>
<LoginDetails>
<Login>TEST</Login>
<Password>TEST</Password>
</LoginDetails>
<LeadCustomer>
<CustomerTitle>Mr</CustomerTitle>
<CustomerId>0</CustomerId>
<CustomerFirstName>Tom</CustomerFirstName>
<CustomerLastName>Test</CustomerLastName>
<DateOfBirth>1974-01-01</DateOfBirth>
<CustomerAddress1>Address Line 1</CustomerAddress1>
<CustomerTownCity>Test Town</CustomerTownCity>
<CustomerPostcode>TST1234</CustomerPostcode>
<CustomerBookingCountryID>1</CustomerBookingCountryID>
<CustomerPhone>1234567489</CustomerPhone>
<CustomerEmail>test@tests.com</CustomerEmail>
</LeadCustomer>
<GuestDetails>
<GuestDetail>
<GuestID>1</GuestID>
<Type>Adult</Type>
<Title>Mr</Title>
<FirstName>Tom</FirstName>
<LastName>Test</LastName>
<Age>44</Age>
<DateOfBirth>1974-01-01</DateOfBirth>
<NationalityID>0</NationalityID>
<Gender>Male</Gender>
</GuestDetail>
</GuestDetails>
<ExtraBookings>
<ExtraBookRequest>
<BookingToken>BOOKINGTOKEN</BookingToken>
<UseDate>2019-12-19T00:00:00</UseDate>
<ExpectedTotal>1232.00</ExpectedTotal>
<GuestIDs>
<GuestID>1</GuestID>
</GuestIDs>
</ExtraBookRequest>
</ExtraBookings>
</BasketBookRequest>
> Basket Book (all components)