The Finalise Book call uses the booking saved using the StoreBookingDetailsRequest and payment details to complete the booking. Once the request is sent the booking is retrieved from the database and the payment details are Pre-Authorised with the credit card provider. The response is then returned with a booking reference or a warning if there was a problem. If a successful response is returned the components are booked, payment is taken and the booking is saved asynchronously. This results in an almost instant booking process for the user.Â
The structure of this XML will be the following
The response contains the Booking Reference of the newly created booking or a list of warnings explaining why the booking wasn't made. The response does not contain any booking details as these have not been confirmed at the time the response was returned.Â
The structure of this XML will be the following
Request
<FinaliseBookRequest>
<LoginDetails>
<Login>test</Login>
<Password>test</Password>
</LoginDetails>
<PreBookingStoreToken>[PreBookingStoreToken]</PreBookingStoreToken>
<Payment>
<PaymentType>CreditCard</PaymentType>
<CCCardHoldersName>Mr Adult One</CCCardHoldersName>
<CCCardTypeID>3</CCCardTypeID>
<CCCardNumber>1234123412341234</CCCardNumber>
<CCStartMonth>0</CCStartMonth>
<CCStartYear>0</CCStartYear>
<CCExpireMonth>2</CCExpireMonth>
<CCExpireYear>16</CCExpireYear>
<CCSecurityCode>123</CCSecurityCode>
<CCIssueNumber>0</CCIssueNumber>
<Amount>2094.66</Amount>
<Surcharge>0.00</Surcharge>
<TotalAmount>2094.66</TotalAmount>
</Payment>
</FinaliseBookRequest>
Response
<FinaliseBookResponse>
<ReturnStatus>
<Success>true</Success>
<Exceptions/>
</ReturnStatus>
<BookingReference>1234567</BookingReference>
</FinaliseBookResponse>