Airline Travel Legs {#airline-intro-legs}
=========================================

Some processors require travel legs in the API service request, even for direct flights. This section describes how to successfully include travel legs in an API request.

Using Travel Legs
-----------------

To include travel legs in an airline transaction, include one or more airlineData_leg_#_ fields, starting with the airlineData_leg_0_ fields.  
Direct flights only use the airlineData_leg_0_ fields.  
For multiple leg trips, the airlineData_leg_#_ fields must start at 0, and you must use consecutive numbers for the additional legs.
If you skip a number, ` Cybersource ` ignores the legs that follow the skipped number.  
For example, these three travel legs are valid:

```
&lt;leg id="0"&gt;
    &lt;carrierCode&gt;XX&lt;/carrierCode&gt;
&lt;/leg&gt;
&lt;leg id="1"&gt;
    &lt;carrierCode&gt;XZ&lt;/carrierCode&gt;
&lt;/leg&gt;
&lt;leg id="2"&gt;
    &lt;carrierCode&gt;XX&lt;/carrier&lt;code&gt;
&lt;/leg&gt;
```

Travel Leg Limitations
----------------------

Some processors limit the number of travel legs for each trip based on the card type.
