Overview
An example of end-to-end scenario based on on operation flow and user story
Excerpt |
---|
Operation flowoperation flow book (Flight) → reprice without PNR → reprice with PNR → retrieveTST User storyS7 agent wants to book one way flight from Moscow (DME) to Samara (KUF) for one adult traveler and create TST mask. Then S7 agent wants to read TST mask. |
Scenario
The general process for buying a trip such as this is:
- Initial search for flight solutions: S7 Agent executes a searchFlightsJourney operation with itinerary criteria and passenger types count;
- Book a reservation: S7 Agent executes a book operation with passenger details and itinerary info of chosen solution from search results;
- Request for informative reservation pricing: S7 Agent executes a reprice operation with itinerary info of chosen solution;
- Request for reservation pricing: S7 Agent executes a reprice operation with itinerary info of chosen solution;
- Read TST mask: S7 Agent executes a retrieveTST with itinerary info of reservation PNR.
Table of contents:
Table of Contents
Note |
---|
Before you can send a request to S7 Agent API, you must get an SSL certificate and configure your software. |
Step 1: Initial search for flight solutions
S7 Agent executes a searchFlightsJourney operation with itinerary criteria and passenger types count
Excerpt Include | ||||||
---|---|---|---|---|---|---|
|
Received solutions divided by fare family and mostly includes 4 sub solutions (Basic Economy, Flex Economy, Basic Business, Flex Business) for each itinerary solution.
Step 2: Book a reservation
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
Code Block | ||||||||
---|---|---|---|---|---|---|---|---|
| ||||||||
Envelope/Body/AirShoppingRS/DataLists/FlightSegmentList |
and <ClassOfService> (RBD) from
Code Block | ||||||||
---|---|---|---|---|---|---|---|---|
| ||||||||
Envelope/Body/AirShoppingRS/OffersGroup/AirlineOffers/AirlineOffer/PricedOffer/OfferPrice/RequestedDate/Associations/ApplicableFlight/FlightSegmentReference/ClassOfService/Code |
Excerpt Include | ||||||
---|---|---|---|---|---|---|
|
Step 3: Request for informative pricing
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);
Note |
---|
<FlightItem> block must fill in like in OrderCreateRQ. Each slice is described by the <OriginDestination> element. |
- passenger types (PTC);
- fare details (RBD and fare code).
Excerpt Include | ||||||
---|---|---|---|---|---|---|
|
Step 4: Request for reservation pricing
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);
Note |
---|
<FlightItem> block must fill in like in OrderCreateRQ. Each slice is described by the <OriginDestination> element. |
- passenger types (PTC);
- fare details (RBD and fare code).
Excerpt Include | ||||||
---|---|---|---|---|---|---|
|
Step 5:
Read TST mask
S7 Agent executes a retrieveTST with itinerary info of reservation PNR.
Excerpt Include | ||||||
---|---|---|---|---|---|---|
|