The Store Booking Details call saves the booking to the database and returns a token to identify it. This makes redirecting the user to a payment application simple, with only a token required.
Note, even if not redirecting to a new site this call is still required.
The structure of this XML will be the following
The response contains the PreBookingStoreToken that enables the booking to be identified in later request.
The structure of this XML will be the following.
Request
<StoreBookingDetailsRequest>
<LoginDetails>
<Login>test</Login>
<Password>test</Password>
</LoginDetails>
<LeadCustomer>
<CustomerTitle>Mr</CustomerTitle>
<CustomerFirstName>Adult</CustomerFirstName>
<CustomerLastName>Test</CustomerLastName>
<DateOfBirth>1980-04-17</DateOfBirth>
<CustomerAddress1>Test</CustomerAddress1>
<CustomerAddress2>Test</CustomerAddress2>
<CustomerTownCity>Test</CustomerTownCity>
<CustomerCounty>Dorest</CustomerCounty>
<CustomerPostcode>Test</CustomerPostcode>
<CustomerBookingCountryID>6</CustomerBookingCountryID>
<CustomerPhone>1234567890</CustomerPhone>
<CustomerFax/>
<CustomerEmail>adult@one.com</CustomerEmail>
<CustomerPassportNumber/>
</LeadCustomer>
<GuestDetails>
<GuestDetail>
<GuestID>1</GuestID>
<Type>Adult</Type>
<Title>Mr</Title>
<FirstName>Adult</FirstName>
<LastName>One</LastName>
<Age>34</Age>
<DateOfBirth>1980-04-17</DateOfBirth>
</GuestDetail>
<GuestDetail>
<GuestID>2</GuestID>
<Type>Adult</Type>
<Title>Mr</Title>
<FirstName>Adult</FirstName>
<LastName>Two</LastName>
<Age>35</Age>
<DateOfBirth>1978-06-13</DateOfBirth>
</GuestDetail>
</GuestDetails>
<PropertyBookings>
<PropertyBookRequest>
<BookingToken>[Booking Token]</BookingToken>
<ArrivalDate>2014-08-02T00:00:00</ArrivalDate>
<Duration>7</Duration>
<ExpectedTotal>1122.0</ExpectedTotal>
<RoomBookings>
<RoomBooking>
<RoomBookingToken>[RoomBookingToken]</RoomBookingToken>
<GuestIDs>
<GuestID>1</GuestID>
<GuestID>2</GuestID>
</GuestIDs>
</RoomBooking>
</RoomBookings>
</PropertyBookRequest>
</PropertyBookings>
<FlightBookings>
<FlightBookRequest>
<BookingToken>[BookingToken]</BookingToken>
<ExpectedTotal>974.0</ExpectedTotal>
<GuestIDs>
<GuestID>1</GuestID>
<GuestID>2</GuestID>
</GuestIDs>
<BookingTags/>
</FlightBookRequest>
</FlightBookings>
</StoreBookingDetailsRequest>
Response
<StoreBookingDetailsResponse>
<ReturnStatus>
<Success>true</Success>
<Exceptions/>
</ReturnStatus>
<PreBookingStoreToken>[PreBookingStoreToken]</PreBookingStoreToken>
</StoreBookingDetailsResponse>