The get calculation parameters call is a useful tool to find out how much commission will be calculated on a particular component at a given price. It is a useful tool if you are not sure if your selling profiles have been set up correctly and want to check that the commission being calculated in particular scenarios matches your expectations.
This is a diagnostic tool used to find commission totals and payments due for a particular component type at a particular cost. The user can input the cost and currency, supplier, booking component type and other necessary data into the API and the system will apply all the relevant calculations used in getting the commission such as selling profiles and exchange rates, to calculate the commission.
The structure of the XML will be:
The structure of the XML will be:
A search request made for a flight to Sharm Al Shiek for 3 adults and 1 child for 7 nights, arriving 14 September 2013.
<GetCalculationParametersRequest>
<LoginDetails>
<Login>TestLogin</Login>
<Password>TestPassword</Password>
</LoginDetails>
<BookingComponentID>2</BookingComponentID>
<SupplierID>6</SupplierID>
<GeographyLevel1>5</GeographyLevel1>
<StartDate>2014-05-19</StartDate>
<EndDate>2014-05-19</EndDate>
<Passengers>2</Passengers>
<CurrencyID>5</CurrencyID>
<LocalCost>220</LocalCost>
</GetCalculationParametersRequest>
The response returns a list of matching available flights.
<GetCalculationParametersResponse>
<ReturnStatus>
<Success>true</Success>
<Exceptions />
</ReturnStatus>
<TotalCommission>70.33</TotalCommission>
<TermsAndConditions>All payments must be made before the booking unless otherwise specified. Guests must pay all local taxes and additional fees indicated on the booking at the resort. It is the responsibility of guests to comply with all local laws at the resort.</TermsAndConditions>
<TermsAndConditionsURL>/termasandconditions.htm</TermsAndConditionsURL>
<PaymentsDue>
<PaymentDue>
<Amount>198.36</Amount>
<DateDue>2014-08-20T00:00:00</DateDue>
</PaymentDue>
</PaymentsDue>
</GetCalculationParametersResponse>