This call allows you to test if a promo code is valid for a particular booking component to be booked, and returns either the discount that would be applied or a warning to say why the promotional code is not valid for that component. To use the valid promo code enter the code into the Basket Book request when completing the booking.Â
The structure of the XML will be:
The response returned will consist of just the return status (included in every response) to confirm the success of the call and the Discount the promotional code offers, and any warning if there is a problem with the promo code, for example if it is not valid for the date of the booking.
The structure of the XML will be:
<ApplyPromoCodeRequest>
<LoginDetails>
<Login>TestName</Login>
<Password>TestPassword</Password>
</LoginDetails>
<Components>
<Component>
<BookingComponentID>5</BookingComponentID>
<BookingComponent>Flight</BookingComponent>
<Price>240.00</Price>
<TotalPassengers>3</TotalPassengers>
<Adults>2</Adults>
<DepartureAirportID>6</DepartureAirportID>
<ArrivalAirportID>4</ArrivalAirportID>
<FlightCarrierID>6</FlightCarrierID>
</Component>
</Components>
<TotalPrice>250.00</TotalPrice>
<Adults>2</Adults>
<Children>0</Children>
</ApplyPromoCodeRequest>
<ApplyPromoCodeResponse>
<ReturnStatus>
<Success>true</Success>
<Exceptions/>
</ReturnStatus>
<Discount>50.00</Discount>
<Warning></Warning>
</ApplyPromoCodeResponse>