Best practices of using S7 Agent API:
- Basic shopping scenario
with operation flow: searchFlight (BrandedFares) → book (Flight) → reprice → demandTickets (ETK) - 3D agreement shopping scenario
with operation flow: searchFlight (BrandedFares) → book (Flight) → reprice → demandTickets (ETK) - Complete shopping scenario
with operation flow: searchFlight (BrandedFares) → seatMap → book (Flight+ Seat + Add Remark) → baggageCharges → reprice → demandTickets (ETK + baggage EMD) → changeBook (Baggage) Facilitated booking scenario
with operation flow: MSO → reprice → agentPaymentIt is not public. Request our technical support for access to documentation by JIRA or email at api.support@s7.ru
Additional flows
A hint for understanding the process of creating, viewing, and deleting API entities
- Standalone data requests:
- searchFlights → findRules
- searchFlights → servicePrice (OneWay)
- searchFlights → servicePrice (RoundTrip)
- Flight solution:
- OW flight solution:
- searchFlights (LowFare)
- searchFlights (BrandedFares for first slice)
- RT flight solution:
- searchFlights (LowFare)
- searchFlights (BrandedFares for first slice) → searchFlights (BrandedFares for second slice)
- MC flight solution:
- searchFlights (LowFare)
- searchFlights (BrandedFares for first slice) → searchFlights (BrandedFares for second slice) → searchFlights (BrandedFares for second third) → etc
- OW flight solution:
- Booking:
- Create: book (Flight)
- View: Create → read (Flight)
- Delete: Create → cancelBooking
- Remarks:
- Create:
- book (Flight + Add Remark)
- book (Flight) → changeBook (Add Remark)
- book (Flight) → reprice → demandTickets (ETK) → changeBook (Add Remark)
- View: Create → read (Flight + Change Remark)
- Delete: Create → changeBook (Delete Remark)
- Create:
- Ticket:
- Create: book (Flight) → reprice → demandTickets (ETK)
- View: Create → retrieveTicket (ETK)
- Delete (during 1 day from Creation): Create → voidTicket (ETK)
- Seat assignment:
- Create:
- seatMap → book (Flight + Seat) → reprice → demandTickets (ETK + seat EMD
- book (Flight) → seatMap → changeBook (Seat) → reprice → demandTickets (ETK + seat EMD)
- book (Flight) → reprice → demandTickets (ETK) → seatMap → changeBook (Seat) → demandTickets (seats EMD)
- View: Create → retrieveTicket (ETK + seat EMD)
- Delete (during 1 day from Creation): Create → voidTicket (seats EMD)
- Create:
- Extra baggage:
- Create:
- book (Flight) → baggageCharges → reprice → demandTickets (ETK + baggage EMD) → changeBook (Baggage)
- book (Flight) → reprice → demandTickets (ETK) → baggageCharges → demandTickets (baggage EMD) → changeBook (Baggage)
- View: Create → retrieveTicket (ETK + baggage EMD)
- Delete (during 1 day from Creation): Create → voidTicket (baggage EMD)
- Create: