An example of end-to-end scenario based on on operation flow and user story
Operation flowsearchFlightsJourney → book (Flight) → reprice without PNR → reprice with PNR → seatMap → demandTickets (ETK) User storyS7 agent wants to buy one way flight from Moscow (DME) to Samara (KUF) for one adult traveler. He also wants to buy extra space seat. He chooses direct S7 flight. |
The general process for buying a trip such as this is:
Table of contents:
Before you can send a request to S7 Agent API, you must get an SSL certificate and configure your software. EMD seat is available for cross sell only. Extra seat is available for each segment. |
S7 Agent executes a searchFlightsJourney operation with itinerary criteria and passenger types count
Received solutions divided by fare family and mostly includes 4 sub solutions (Basic Economy, Flex Economy, Basic Business, Flex Business) for each itinerary solution.
S7 Agent executes a book operation with passenger details and itinerary info of chosen solution from search results.
<DetailedFlightItem> block consists of journey information, where each slice is described by the <OriginDestination> element.
<OriginDestination> block takes from appropriate AirShoppingRS
Envelope/Body/AirShoppingRS/DataLists/FlightSegmentList |
and <ClassOfService> (RBD) from
Envelope/Body/AirShoppingRS/OffersGroup/AirlineOffers/AirlineOffer/PricedOffer/OfferPrice/RequestedDate/Associations/ApplicableFlight/FlightSegmentReference/ClassOfService/Code |
S7 Agent executes a reprice operation with itinerary info of chosen solution
All information must be taken from AirShoppingRS:
itinerary details (airport codes and dates for origin and departure, airline code and flight number);
|
S7 Agent executes a reprice operation with itinerary info of chosen solution
All information must be taken from AirShoppingRS:
itinerary details (airport codes and dates for origin and departure, airline code and flight number);
|
S7 Agent executes a seatMap operation operation with the whole journey details and cabin type
S7 Agent executes a demandTickets operation with with reservation reference, baggage codes and pricing details for air and baggage.
It is necessary correctly indicate passenger reference (RPH) for whom a ticket is issued. Used passenger SH number from the book operation
Envelope/Body/OrderViewRS/Response/Passengers/Passenger@ObjectKey |
Envelope/Body/OrderViewRS/Response/Order/BookingReferences/BookingReference/ID |
|
<Payments> <Payment> <Type> <Code>MS</Code> </Type> <Other> <Remarks> <Remark>*A*TEXT</Remark> </Remarks> </Other> </Payment> </Payments> |