With airline suppliers it is possible to select and purchase a seat via the Travelfusion XML API. This functionality is not currently available for all suppliers, however for suppliers that do support it, the command syntax of the requests and responses is almost identical to those of the existing booking process. this function is controlled by the CustomSupplierParameters(CSP): SeatOptions.
SeatOptions is supported by per passenger and only if seat service is supported, SeatOptions can be found in ProcessDetails response like below:
<DisplayText>Please Select Seat Options: 5477-1A(W|E|1A@12.00GBP@319),5477-1B(N|E|1A@12.00GBP@319),5477-1C(A|E|1A@12.00GBP@319),
The above example shows 5 flight segments. This represents all segments on all legs of the journey, for example 3 segments on the outward flight and 2 on the return.
For example 5477-1A(W|E|1A@12.00GBP@319) is one seat where:
In general, it’s the same to handle the CSP in ProcessTerms, you can check here to find more details on how to handle the Custom Supplier Parameters.
Below will show you how to use this specific parameter in details:
The format for the SeatOptions parameter value should be: flight number-seat number.
In this example, the user did not specify a seat for the 3rd segment of the flight (and was not given seat options for segments 2 and 5)
<ProcessTerms ecode="2-2460" etext="Invalid seat options" edetail="5473-2A is not available" edate="08/07/2013-09:18"/>
The data is the list of all seats (unavailable seat will return with “T” in bracket ) and is comma separated.
Following is a list of seat attribute: