The call used to complete the car hire booking is the basket book call. This is the same basket book call used to book any component. Multiple carhire bookings can be made in a single basket book call.
The API receives the basket book call, the system attempts to book the carhire 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 with their due dates.
The structure of this XML will be the standard Basket Book Request call, which will include an Car Hire Book Request.
The structure of the XML will be:
The structure of this XML will be the standard Basket Book Response call, which will include an Car Hire Book Response for this booking.
The structure of the Car The structure of the XML will be:
<CarHireBookings>
<CarHireBookRequest>
<BookingToken>r/b6t/sNSRw=</BookingToken>
<ExpectedTotal>530.960</ExpectedTotal>
<GuestIDs>
<GuestID>1</GuestID>
<GuestID>2</GuestID>
</GuestIDs>
<Drivers>
<GuestID>1</GuestID>
</Drivers>
<BookingTags />
<PayLocal>false</PayLocal>
<InstallmentPaymentOptionID>0</InstallmentPaymentOptionID>
</CarHireBookRequest>
</CarHireBookings>
<BasketBookResponse>
<ReturnStatus>
<Success>true</Success>
<Exceptions />
</ReturnStatus>
<BookingReference>1006173</BookingReference>
<TotalPrice>120.2</TotalPrice>
<TotalCommission>7.97</TotalCommission>
<VATOnCommission>0.0</VATOnCommission>
<PropertyBookings />
<FlightBookings />
<TransferBookings />
<ExtraBookings />
<CarHireBookings>
<CarHireBookResponse>
<ReturnStatus>
<Success>true</Success>
<Exceptions />
</ReturnStatus>
<TotalPrice>120.20</TotalPrice>
<TotalCommission>7.97</TotalCommission>
<VATOnCommission>0.00</VATOnCommission>
<Cancellations>
<Cancellation>
<StartDate>2013-11-29T00:00:00</StartDate>
<EndDate>2014-01-20T00:00:00</EndDate>
<Amount>0.00</Amount>
</Cancellation>
<Cancellation>
<StartDate>2014-01-21T00:00:00</StartDate>
<EndDate>2099-12-31T00:00:00</EndDate>
<Amount>120.20</Amount>
</Cancellation>
</Cancellations>
</CarHireBookResponse>
</CarHireBookings>
<PaymentsDue>
<PaymentDue>
<Amount>120.2</Amount>
<DateDue>2014-03-31T00:00:00</DateDue>
</PaymentDue>
</PaymentsDue>
<QuoteID>0</QuoteID>
</BasketBookResponse>
> Basket Book (all components)