此内容尚无该语言版本

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);
您觉得这个页面有用吗?
我们该如何改进这些内容?
感谢您帮助我们改进!