FILTER BY TAG

Capture an Airline Payment

This section describes how to capture an airline payment.
You can include an airline ticket purchase and any ancillary purchases in the same capture request. Ancillary purchases are any additional services, such as baggage, meals, and paid seats, your customers can purchase.
Prerequisite
Before you can capture payment, you must authorize the funds by sending an authorization request. The authorization response includes a request ID in the
requestID
field. The request ID is required in the capture request. For more information about how to send an authorization request, see the Standard Payment Processing section in the
Payments Developer Guide
.

Leg Limitations

Elavon
limits the maximum number of legs for each trip based on card type.
You must include information for the first leg of the trip (leg 0), and you must use consecutive numbers for any additional legs. To do so, replace the
#
character in the field name with a sequential number starting with
0
. For example, for a trip with two legs, set the
airlineData_leg_#
field as
airlineData_leg_0
and
airlineData_leg_1
, for the first and second legs, respectively. If you skip a number,
Cybersource
ignores the legs that follow the skipped number.
This table describes the maximum number of legs for each trip based on card type.
Elavon
Leg Limitations
Supported Card Types
Maximum Number of Travel Legs
Diners Club
4
Discover
4
JCB Card
4
Mastercard
4
Visa
4

Document Type

When capturing an airline payment, you must use the
airlineData_documentType
field to specify the purpose of the transaction. For all possible values, see Airline Document Type Codes.

Endpoint

Set the
ccCaptureService_run
field to
true
.
Send the request to
https://ics2ws.ic3.com/commerce/1.x/transactionProcessor
.

Required Fields for an Airline Capture

Replace the
#
character with the number
0
for the first leg and consecutive numbers for any additional legs.
Replace the
#
character with the number
0
for the first leg and consecutive numbers for any additional legs.
Format:
MMDDYYYY
Replace the
#
character with the number
0
for the first leg and consecutive numbers for any additional legs.
Replace the
#
character with the number
0
for the first leg and consecutive numbers for any additional legs.
Replace the
#
character with the number
0
for the first leg and consecutive numbers for any additional legs.
Replace the
#
character with the number
0
for the first leg and consecutive numbers for any additional legs.
Set the value to
airline
.
Set the value to the
merchant_ref_number
value used in corresponding authorization request.

Required Fields for an Ancillary Purchase

Include these fields, in addition to the above fields, if there is an ancillary purchase:
For a list of all possible values, see Ancillary Service Category Codes.
To send multiple category codes, you must include additional entries of this field in the leg.

Card-Specific Field for an Airline Capture

Certain card types require additional fields.

Diners Club

Use this field in addition to the required fields to capture an airline authorization when using a Diners Club card.

Optional Fields for an Airline Capture

Optional only for Diners Club and Discover card types.
Optional for consecutive legs after the first leg.
Optional for consecutive legs after the first leg.
Format:
MMDDYYYY
Optional for consecutive legs after the first leg.
Optional for consecutive legs after the first leg.
Optional for consecutive legs after the first leg.
Optional for consecutive legs after the first leg.
Optional for consecutive legs after the first leg.

Simple Order Example: Airline Ticket Capture

Request
<requestMessage xmlns="urn:schemas-cybersource-com:transaction-data-1.11">    <merchantID>World Wide Travel</merchantID>    <merchantReferenceCode>R98TV09EN200W</merchantReferenceCode>    <purchaseTotals>       <currency>USD</currency>       <grandTotalAmount>204.78</grandTotalAmount>    </purchaseTotals>    <ccCaptureService run="true">       <authRequestID>0839543530000172034078</authRequestID>       <industryDatatype>airline</industryDatatype>    </ccCaptureService>    <airlineData>       <agentCode>98222147<agentCode>       <agentName>Regent Travel</agentName>       <ticketNumber>02721187251</ticketNumber>       <restrictedTicketIndicator>1</restrictedTicketIndicator>       <ticketIssuerCode>927</ticketIssuerCode>       <passengerName>John Smith</passengerName>       <leg id="0">          <carrierCode>AA</carrierCode>          <flightNumber>397</flightNumber>          <originatingAirportCode>SJC</originatingAirportCode>          <class>H</class>          <stopoverCode>1</stopoverCode>          <departureDate>06152024</departureDate>          <destination>SEA</destination>          <fareBasis>HL7WNR</fareBasis>       </leg>       <leg id="1">          <carrierCode>AA</carrierCode>          <class>H</class>          <stopoverCode>1</stopoverCode>          <departureDate>06162024</departureDate>          <destination>SJC</destination>          <fareBasis>HL7WNR</fareBasis>       </leg>    </airlineData> </requestMessage>

Simple Order Example: Ancillary Capture

Request
<requestMessage xmlns="urn:schemas-cybersource-com:transaction-data-1.233"> <merchantID>merchantId</merchantID> <merchantReferenceCode>TC10001</merchantReferenceCode> <billTo> <firstName>John</firstName> <lastName>Smith</lastName> <street1>201 S. Division St.</street1> <city>Ann Arbor</city> <state>MI</state> <postalCode>48104-2201</postalCode> <country>US</country> <email>[email protected]</email> </billTo> <purchaseTotals> <currency>eur</currency> <grandTotalAmount>103.00</grandTotalAmount> </purchaseTotals> <ccCaptureService run="true"> <industryDatatype>airline</industryDatatype> </ccCaptureService> <airlineData> <agentCode>98222147</agentCode> <agentName>Cyber Vacations</agentName> <ticketIssuerCode>198765432101234</ticketIssuerCode> <ticketNumber>2721187251</ticketNumber> <restrictedTicketIndicator>1</restrictedTicketIndicator> <passengerName>Jane Smith</passengerName> <customerCode>TESTCUSTOMERCODE</customerCode> <leg id="0"> <carrierCode>AA</carrierCode> <flightNumber>EZ123</flightNumber> <originatingAirportCode>SJC</originatingAirportCode> <class>H</class> <stopoverCode>0</stopoverCode> <departureDate>20251230</departureDate> <destination>SEA</destination> <fareBasis>HL7WNR</fareBasis> </leg> <leg id="1"> <carrierCode>A2</carrierCode> <flightNumber>JFK12</flightNumber> <originatingAirportCode>JFK</originatingAirportCode> <class>1</class> <stopoverCode>1</stopoverCode> <departureDate>20251230</departureDate> <destination>CD1</destination> <fareBasis>GH87N1</fareBasis> </leg> <creditReasonIndicator>A</creditReasonIndicator> <ticketUpdateIndicator>N</ticketUpdateIndicator> </airlineData> <ancillaryData> <ticketNumber>12345678901234</ticketNumber> <passengerName>Jane Smith</passengerName> <connectedTicketNumber>98765432109876</connectedTicketNumber> <creditReasonIndicator>A</creditReasonIndicator> <feeDescription>BagAndSeatFee</feeDescription> <service id="0"> <categoryCode>BG</categoryCode> <subcategoryCode>0AA</subcategoryCode> <feeAmount>2.00</feeAmount> <feeCode>BG</feeCode> </service> <service id="1"> <categoryCode>SA</categoryCode> <subcategoryCode>0B5</subcategoryCode> <feeAmount>1.00</feeAmount> <feeCode>SA</feeCode> </service> </ancillaryData> </requestMessage>
Response to a Successful Request
<replyMessage xmlns:c="urn:schemas-cybersource-com:transaction-data-1.233"> <merchantReferenceCode>TC10001</merchantReferenceCode> <requestID>7682241889027001119198</requestID> <decision>ACCEPT</decision> <reasonCode>100</reasonCode> <requestToken>Axj//wSToHSF187gP3HeAAYs3bOGTJoxcOHLBk3YMGLFi5YuXCbWPCZNhAU2seEybD6Q6g8XfIZNtxlac9M1SgwJydA6QuvncB+47wAAWiva</requestToken> <purchaseTotals> <currency>eur</currency> </purchaseTotals> <ccCaptureReply> <reasonCode>100</reasonCode> <requestDateTime>2026-01-12T13:23:11Z</requestDateTime> <amount>103.00</amount> <reconciliationID>7682241889027001119198</reconciliationID> <enhancedDataEnabled>y</enhancedDataEnabled> </ccCaptureReply> <card> <cardType>001</cardType> </card> <reserved> <ics_message xmlns="urn:schemas-cybersource-com:transaction-data:ics"> <auth_auth_response>0</auth_auth_response> <ics_decision_reason_code>100</ics_decision_reason_code> <auth_rflag>SOK</auth_rflag> <bill.reason_code>100</bill.reason_code> <auth_payment_network_transaction_id>123456789012345</auth_payment_network_transaction_id> <ics_rcode>1</ics_rcode> <ics_rmsg>Request was processed successfully.</ics_rmsg> <merchant_ref_number>TC10001</merchant_ref_number> <auth_auth_avs>1</auth_auth_avs> <bill_rcode>1</bill_rcode> <request_id>7682241889027001119198</request_id> <auth_auth_time>2026-01-12T132310Z</auth_auth_time> <auth_auth_code>726124</auth_auth_code> <request_token>Axj//wSToHSF187gP3HeAAYs3bOGTJoxcOHLBk3YMGLFi5YuXCbWPCZNhAU2seEybD6Q6g8XfIZNtxlac9M1SgwJydA6QuvncB+47wAAWiva</request_token> <card_type>001</card_type> <bill_enhanced_data_enabled>y</bill_enhanced_data_enabled> <auth_return_code>1010000</auth_return_code> <auth_rmsg>(00) Authorization or successful completion of a transaction</auth_rmsg> <ics_rflag>SOK</ics_rflag> <auth_rcode>1</auth_rcode> <currency>eur</currency> <bill_trans_ref_no>7682241889027001119198</bill_trans_ref_no> <auth.reason_code>100</auth.reason_code> <auth_auth_amount>103.00</auth_auth_amount> <ics_return_code>1000000</ics_return_code> <bill_bill_amount>103.00</bill_bill_amount> <bill_rflag>SOK</bill_rflag> <bill_rmsg>Request was processed successfully.</bill_rmsg> <bill_bill_request_time>2026-01-12T132311Z</bill_bill_request_time> <bill_return_code>1260000</bill_return_code> <auth_card_reference_data>123456789012345NQ NCA</auth_card_reference_data> </ics_message> </reserved> </replyMessage>