问题
Is there a workflow for making payments to the airlines and getting the flight ticket after the InstaFlight search?
回答1:
You can use the combination of EnhancedAirBook and PassengerDetails APIs to create a reservation including your selected flights from InstaFlights:
In order to issue a ticket afterwards, you can use the API AirTicketLLSRQ - here's a workflow that explains how to use it: https://developer.sabre.com/docs/workflows/issue_air_ticket
The same API - AirTicketLLSRQ - accepts the form of payment information. For some markets and credit cards you can use another API to get credit card approval:
https://developer.sabre.com/docs/read/soap_apis/air/fulfill/get_credit_card_approval
So, in summary, the APIs sequence would be: - InstaFlights (or any other air shopping service) - EnhancedAirBook + PassengerDetails APIs - Optionally - if using credit card payment - use the Get Credit Card Approval API (or any other payment gateway of your choice) - DesignatePrinter + AirTicketLLSRQ to issue the tickets
For other sample workflows, please refer to github, that includes sample requests and explanation: https://github.com/sabredevstudio/sabreapisworkflows
来源:https://stackoverflow.com/questions/40016028/rest-soap-api-workflow-for-flight-booking-and-payment