Overview
An example of end-to-end scenario based on on operation flow and user story
Excerpt |
---|
Operation flowread (booking) → servicePrice→ seatMap→ addAncillaries → voidTicket (EMD) User storyS7 agent wants to buy ancillaries (bag) for 1ADT in booking with tickets issued earlier. He also wants to cancel ancillaries services if it necessary. |
Scenario
The general process for book a trip and read reservation details such as this is:
Read reservation: S7 Agent executes a read operation to get information about passengers, issued tickets and route;
Get ancillaries pricing (bag): S7 Agent executes a servicePrice operation to get information about available ancillaries;
Issue EMD for ancillaries services: S7 Agent executes an addAncillaries operation to issue EMD for chosen ancillaries services;
Cancel EMD if necessary: S7 Agent executes a voidTicket operation to cancel EMD.
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: Read reservation details
S7 Agent executes a read operation to get information about passengers, issued tickets and rout.
Expand | |||||||||
---|---|---|---|---|---|---|---|---|---|
| |||||||||
|
Expand | |||||||||
---|---|---|---|---|---|---|---|---|---|
| |||||||||
|
Step 2: Get ancillaries pricing (bag)
S7 Agent executes a servicePrice operation to get information about extra bag price.
Expand | |||||||||
---|---|---|---|---|---|---|---|---|---|
| |||||||||
|
Expand | |||||||||
---|---|---|---|---|---|---|---|---|---|
| |||||||||
|
Step 4: Issue EMD for bag
S7 Agent executes an addAncillaries operation to issue EMD for choosen ancillaries services.
- Add information about passenger keys from read operation RS
Expand | |||||
---|---|---|---|---|---|
| |||||
|
Expand | |||||||||
---|---|---|---|---|---|---|---|---|---|
| |||||||||
|
Expand | |||||||||
---|---|---|---|---|---|---|---|---|---|
| |||||||||
|
Step 5: Cancel EMD if necessary
S7 Agent executes a voidTicket operation to cancel EMD.
Expand | |||||||||
---|---|---|---|---|---|---|---|---|---|
| |||||||||
|
Expand | |||||||||
---|---|---|---|---|---|---|---|---|---|
| |||||||||
|