You can get quick answer of your question by entering here
What is the process of Domestic and International RoundTrip Booking in SRDV API?
Domestic Roundtrip Flow
-
Call the Search API as per documentation.
-
The response will contain two ResultIndex values:
-
One for Outbound (OB)
-
One for Inbound (IB)
-
-
Call the FareQuote API twice:
-
FareQuote with OB ResultIndex
-
FareQuote with IB ResultIndex
-
-
Call the Booking API (LCC/GDS) twice:
-
Booking for OB flight
-
Booking for IB flight
-
Note:
Domestic roundtrip responses return OB and IB flight data in separate arrays.
You must call each APIs twice to avoid any issue.
International Roundtrip Flow
-
Call the Search API.
-
OB and IB flights are returned together.
-
Call FareQuote API once.
-
Call Booking API once (single slot, similar to one-way).
Note:
International roundtrip responses return OB and IB flight data in a single array.
You must call all APIs once because International roundtrip search responses returns one ResultIndex.