Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Overview

An example of end-to-end scenario based on on operation flow and user story


Excerpt

Operation flow

book (Flight) → read (booking)

User story

S7 agent wants to book one way flight from Moscow (DME) to Samara (KUF) for one adult traveler. Then S7 agent wants to read reservation to get reservation details.

Scenario

The general process for book a trip and read reservation details such as this is:

  1. Book a reservation: S7 Agent executes a book operation with passenger details and itinerary info of chosen solution from search results;
  2. Read reservation details: S7 Agent executes a read operation with 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: 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
languagexml
themeConfluence
titleOriginDestination information in AirShoppingRS
collapsetrue
Envelope/Body/AirShoppingRS/DataLists/FlightSegmentList

and <ClassOfService> (RBD) from

Code Block
languagexml
themeConfluence
titleRBD information in AirShoppingRS
collapsetrue
Envelope/Body/AirShoppingRS/OffersGroup/AirlineOffers/AirlineOffer/PricedOffer/OfferPrice/RequestedDate/Associations/ApplicableFlight/FlightSegmentReference/ClassOfService/Code

Excerpt Include
OW + 1xADT + Direct + S7 flight | v0.52 | book operation
OW + 1xADT + Direct + S7 flight | v0.52 | book operation
nopaneltrue

Step 2: Read reservation details

S7 Agent executes a read operation with reservation PNR.

Excerpt Include
1А | OW + 1xADT + Direct + S7 flight | v0.52 | read operation
1А | OW + 1xADT + Direct + S7 flight | v0.52 | read operation
nopaneltrue