Overview
An example of end-to-end scenario based on on operation flow and user story searchFlightsJourney → book (Flight) → read S7 Agent wants to book round trip flight from Moscow (DME) to Vladivistok (VVO) for group of travelers (1 adult under 23 years, 1 children and 1 infant on a lap). He also wants to book C fare for subsidised passenger group. He chooses transfer S7 flights.Operation flow
User story
Scenario
The general process for book a trip such as this is:
- Initial search for flight solutions: S7 Agent executes a searchFlightsJourney operation with itinerary criteria and subsidised passenger types count;
- Book a reservation: S7 Agent executes a book operation with passenger details and itinerary info of chosen solution from search results;
- Read the reservation: S7 Agent executes a read operation.
Table of contents:
Before you can send a request to S7 Agent API, you must get an SSL certificate and configure your software.
Use subsidised passenger types only for subsidised flow.
Step 1: Initial search for flight solutions
S7 Agent executes a searchFlightsJourney operation with itinerary criteria and passenger types
subsidised fares. Use PTC types: SRC/YTR for adult passenger, CHR for child, INR for infant to get
Itinerary criteria:
- Roud trip S7 flight from Moscow (DME) to Vladivistok (VVO)
Passenger types count:
- 1xYTR 1xCHR 1xINR
Received solutions divided by fare family and mostly includes 4 sub solutions (Basic Economy, Flex Economy, Basic Business, Flex Business) for each itinerary solution.
Received solutions contain both subsidised and non-subsidised fares.
Step 2: Book a reservation
S7 Agent executes a book operation with passenger details and itinerary info of chosen solution from search results.
Use PTC types: SRC/YTR for adult passenger, CHR for child, INR for infant;
Tag Middle is mandatory for all passengers;
assenger with type YTR must be younger 23 years; Passenger with type SRC must be older 55 years for female and 60 years for male, p
Subsidised fare is available only for Russian Federation citizens, CountryOfResidence tag must contain value "RU".
Step 3: Read the reservation.
S7 Agent executes a read operation.