Flight Ancillary API Reference (v1.29)
Download OpenAPI specification:Download
You can use this service to help your customers who book flight tickets on your platform or other platforms to purchase available ancillary products for their flights.
How to use this service:
- If the customer wants to purchase additional baggage allowance, you can use the QueryAncillaryList API to help search for available additional baggage allowance products for the customer's flight;
- After the customer has selected the product that they want, you can use the QueryAncillaryDetail API to get the details of the selected product.
This documentation contains the following sections: introduction, glossary, API overview, access to API, error codes, release history, getting started, FAQs, and technical support.
Discover what’s possible with the available ancillary product search service for distributors!
Before using, you need to understand the interaction of API, including the way of authorization, exception handling, and environment. Please refer to the [API Guides](Flights Web API Guide (trip.com)).
Data about sensitive information such as ID and cell phone numbers will be encrypted. If decryption is needed, please ask for decryption permission when accessing.
Three important questions will be elaborated on below to help you better use this service.
Ancillary products are a general term for products other than the air ticket purchased by customers. They can be bought together with, after or without the air ticket.
Supported ancillary products include additional baggage allowance, seat selection, and online check-in.
Ancillary products are distinguished by the field ProductType
.
Code | Type of Ancillary Product |
---|---|
CheckedBag | additional baggage allowance |
Seat | seat selection |
CheckIn | online check-in |
CFAR | CancelForAnyReason |
AirHelp | AirHelp |
FTG | Flight Ticket Guarantee |
TravixPackage | TravixPackage |
RentalCar | RentalCar |
SGR | SGR |
CalamityFee | CalamityFee |
Insurance | Insurance |
TravixRP | Travix RefundProtect |
CarryOnBag | CarryOn baggage |
STP | Self-Transfer Protect |
This service offers functions including
search for available ancillary products for a customer's flight;
get the details of the product selected by a customer.
For your convenience, we have listed some phrases that may be unfamiliar to you, as follows:
Glossary |
Description |
Example |
---|---|---|
ProductType | supported ancillary products | additional baggage allowance |
API Name | Description |
---|---|
AncillaryListSearch | It is used to search for available ancillary product resources. |
AncillaryDetailSearch | It is used to get the details of a selected ancillary product by its token that you can get from the response of the QueryAncillaryList API. |
SeatMapResult | It is used to retrieve the seat map for a certain flight/offer. |
AncillaryProductPurchaseCheck | The purpose of the AncillaryProductPurchaseCheck API is to validate the ancillary products that the user has selected. |
Access is available at the following URLs.
Environment | Base URL for HTTP Endpoints |
---|---|
Production | https://apiproxy.ctrip.com/apiproxy/flight/ancillaryqueryservice/{interfaceName} |
Test | https://apiproxy-fws.ctripqa.com/apiproxy/flight/ancillaryqueryservice/{interfaceName} |
An Error field appearing in the response means the API call has failed. Code in Error indicates the error code, and Message indicates the specific information of the error.
Please refer to the [API Guides](Flights Web API Guide (trip.com)) for error codes.
The following table only lists special error codes related to the business logic of the API . For other error codes, see Common Error Codes.
Please refer to the API Guides for common error codes.
We recommend that you begin deployment of each update promptly to gain access to new features experiences, and integrated security as soon as possible.
Minor versions for the API to control small changes history as following table:
Version | Release Date | API Methods | Update Notes |
---|---|---|---|
v1.0 | 2023-04-03 | AncillaryListSearch , AncillaryDetailSearch , SeatMapResult | The newly added APIs include AncillaryListSearch , AncillaryDetailSearch and SeatMapResult. |
v1.1 | 2023-04-23 | AncillaryDetailSearch,AncillaryListSearch | Adjust the query example, Adjust service URL and baggage allowance query parameters. |
v1.6 | 2023-05-09 | AncillaryDetailSearch,AncillaryListSearch | CFAR contract |
v1.8 | 2023-06-01 | SeatMapResult, AncillaryListSearch | Update contract, "ErrorDetails" in AncillaryListSearch, "PTC" in SeatMapResult |
v1.9 | 2023-06-20 | AncillaryListSearch , AncillaryDetailSearch | Update baggage contract, "BaggageSpecification" in AncillaryListSearch and AncillaryDetailSearch |
v1.10 | 2023-07-10 | AncillaryListSearch , AncillaryDetailSearch , SeatMapResult | Update baggage contract, Seat contract |
v1.11 | 2023-09-21 | AncillaryListSearch | Add "contentType" in AncillaryListSearch |
v1.12 | 2023-10-24 | AncillaryListSearch | Update AirHelp and FTG contract |
v1.13 | 2023-11-15 | AncillaryListSearch | Update TravixPackage contract |
v1.14 | 2023-11-23 | AncillaryListSearch | Update ErrorDetail contract |
v1.19 | 2024-01-05 | AncillaryListSearch | Add "RentalCarSpecific" to AncillaryListSearch. Add RentalCar, SGR and CalamityFee as new product type |
v1.20 | 2024-02-02 | AncillaryListSearch | Add "InsuranceSpecific" to AncillaryListSearch. Add Insurance as new product type |
v1.21 | 2024-04-19 | AncillaryListSearch | Add "DistBookingCheckInfo" to AncillaryListSearch. |
v1.22 | 2024-06-05 | AncillaryListSearch | Update carryOn baggage |
v1.23 | 2024-08-15 | AncillaryListSearch | Add "TravixAffiliateCode" "TravixChannel" to AncillaryListSearch |
v1.24 | 2024-09-24 | AncillaryListSearch | Update STP |
v1.25 | 2024-10-12 | AncillaryProductPurchaseCheck | Add AncillaryProductPurchaseCheck API |
v1.26 | 2024-10-25 | AncillaryListSearch,SeatMapResult | Add "AncillaryResourceType" to AncillaryListSearch, Add "TravixAffiliateCode" "TravixChannel" "AncillaryResourceType" to SeatMapResult |
v1.27 | 2025-01-22 | AncillaryListSearch, AncillaryProductPurchaseCheck, SeatMapResult | Add "FlightBookingPrice" to CFARSpecific in AncillaryListSearch. Add UID, ValidationScene, TravixAffiliateCode, TravixChannel, AncillaryResourceType to AncillaryProductPurchaseCheck interface. Add FlightGroupSpecific to SeatMapResult interface. Add AID, SID to FlightGroupSpecific. Add Nationality to IdentityDoc. Add OriginalSettlePriceDetailInfos to PriceInfo |
v1.28 | 2025-02-06 | SeatMapResult | Add "Result" to ResponseBody in SeatMapResult API |
v1.29 | 2025-02-13 | AncillaryListSearch | Add "EntryPoint" to Request and add "Contents" to Response |
AncillaryDetailSearch
Missing description for operation,fill in here
Request Body schema: application/json
Missing description, fill in here.
required | object (AncillaryDetailSearchRequestBody) | ||||||
| |||||||
required | object (RequestHeaderType) | ||||||
|
Responses
Request samples
- Payload
- C#
- Java
- PHP
success request
Response samples
- default
success response
AncillaryListSearch
Missing description for operation,fill in here
Request Body schema: application/json
Missing description, fill in here.
required | object (AncillaryListSearchRequestBody) | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
required | object (RequestHeaderType) | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Responses
Request samples
- Payload
- C#
- Java
- PHP
success response
Response samples
- default
CheckedBag success response
AncillaryProductPurchaseCheck
Missing description for operation,fill in here
Request Body schema: application/json
Missing description, fill in here.
required | object (AncillaryProductPurchaseCheckRequestBody) | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
required | object (RequestHeaderType) | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Responses
Request samples
- Payload
- C#
- Java
- PHP
success request
Response samples
- default
AncillaryProductPurchaseCheck success response
SeatMapResultAsync
Missing description for operation,fill in here
Request Body schema: application/json
Missing description, fill in here.
required | object (SeatMapResultRequestBody) | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
required | object (RequestHeaderType) | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Responses
Request samples
- Payload
- C#
- Java
- PHP
success request
Response samples
- default
success response
- Q:Why the Flight Quote unavailable for us?
Make sure the
channel
of your requested was approved. - Q:Why is the quoted price higher than others?
Different sales channels, affected by the pricing strategy, may have different quotations.
If you don't find the answer that you are looking for in the FAQ section, please provide us with necessary information such as the time of calling an API, what you want to do with the API, the request and response message, the access path and environment. We will get back to you as soon as possible.