The AdHocBooking will be used as part of the BasketBookRequest to create or add the Ad Hoc Extra component as part of an iVector booking.
The XML structure of the request will be the following
The AdHocBookingResponse will be nested in the BasketBookResponse.
The XML structure will be the following
BasketBookRequest example for an AdHoc Component booking
<BasketBookRequest>
<LoginDetails>
<Login>testlogin</Login>
<Password>testpassword</Password>
<AgentReference />
<SellingCurrencyID>0</SellingCurrencyID>
<LanguageID>0</LanguageID>
<TrackingAffiliateID>0</TrackingAffiliateID>
</LoginDetails>
<BookingReference></BookingReference>
<LeadCustomer>
<CustomerTitle>Mr</CustomerTitle>
<CustomerFirstName>Test</CustomerFirstName>
<CustomerLastName>Tester</CustomerLastName>
<CustomerAddress1>Test1</CustomerAddress1>
<CustomerTownCity>Test Town</CustomerTownCity>
<CustomerBookingCountryID>1</CustomerBookingCountryID>
<CustomerEmail>abc@abc.com</CustomerEmail>
<CustomerPhone>123123</CustomerPhone>
<CustomerPostcode>TBA TBA</CustomerPostcode>
</LeadCustomer>
<GuestDetails>
<GuestDetail>
<GuestID>1</GuestID>
<Type>Adult</Type>
<Title>Mr</Title>
<FirstName>aabc</FirstName>
<LastName>abc</LastName>
<Age>23</Age>
<DateOfBirth>1990-01-01</DateOfBirth>
</GuestDetail>
</GuestDetails>
<AdHocBookings>
<AdHocBookRequest>
<BookingToken>[Booking Token]</BookingToken>
<ExpectedTotal>83.00</ExpectedTotal>
</AdHocBookRequest>
</AdHocBookings>
</BasketBookRequest>
The BasketBookResponse confirms the booking, returns a reference and information on payments and cancellation charges for the AdHoc Component
<BasketBookResponse>
<ReturnStatus>
<Success>true</Login>
<Exceptions />
<AgentReference />
</ReturnStatus>
<BookingReference>1234567</BookingReference>
<TotalPrice>95.00.00</TotalPrice>
<TotalCommission>10.00</TotalCommission>
<VATOnCommission>2.00</VATOnCommission>
<AdHocBookings>
<AdHocBookResponse>
<ReturnStatus />
<BookingReference>1234567A</BookingReference>
<TotalPrice>83.00</TotalPrice>
<TotalCommission>5.00</TotalCommission>
<PaymentsDue>
<PaymentDue>
<Amount>95.00</Amount>
<DueDate>2022-06-17T00:00:00</DueDate>
</PaymentDue>
</PaymentsDue>
<Cancellations>
<Cancellation>
<StartDate>2022-06-17T00:00:00</StartDate>
<EndDate>2022-07-01T00:00:00</EndDate>
<Amount>47.50</Amount>
</Cancellation>
</Cancellations>
</AdHocBookResponse>
</AdHocBookings>
</BasketBookRequest>