此內容尚不提供此語言版本

Flight Details

The Flight Details API allows you to search extended information about the fare, charges, fees, and other terms associated with booking an airline ticket.

For more information about the Listings API, see Details API documentation.

1. Build the request object using the classes defined in the SDK

GetFlightDetailsOperationParams detailsOperationParams = GetFlightDetailsOperationParams.builder()
        .offerToken("v5-sos-825128977d864d458a18b216be88c366-1-115-1~8.S~AQoCCAESBwjUBBABGAEoAlgBcAB6A2Jmc4gBy-2vT6oBBwoDTEFTEACyAQcKA0ZMTBAA~AQqPAQovCMGmARIEMzMyMBiLkAEgkmgo6Mb2AjDCx_YCOFZAAFgBagJGTXIIVkgyT0FKTVIKLQjBpgESAzczNxiSaCDgXCjiyPYCMPHK9gI4VkABWAFqAkZNcghWSDJPQUpNUgotCMSYARIEMTQ4ORjgXCDlWijFy_YCMLnM9gI4WUABWAFqB1JFRk1BSU5yAlkwEgoIARABGAEqAkFTGAIiBAgBEAIoAigDKAQwAQ+AQqPAQovCMGmARIEMzMyMBiLkAEgkmgo6Mb2AjDCx_YCOFZAAFgBagJGTXIIVkgyT0FKTVIKLQjBpgESAzczNxiSaCDgXCjiyPYCMPHK9gI4VkABWAFqAkZNcghWSDJPQUpNUgotCMSYARIEMTQ4ORjgXCDlWijFy_YCMLnM9gI4WUABWAFqB1JFRk1BSU5yAlkwEgoIARABGAEqAkFTGAIiBAgBEAIoAigDKAQwAQ")
        .partnerTransactionID("txn-123-4")
        .price("628.88")
        .locale("en_US")
        .build();

GetFlightDetailsOperation flightDetailsOperation = 
        new GetFlightDetailsOperation(detailsOperationParams);

2. Make the API call using service client.

Response<FlightDetailsResponse> flightDetailsResponse = 
        xapClient.execute(flightDetailsOperation);
這個頁面有幫助嗎?
我們能如何改善內容?
感謝您協助我們進行改善!