Introduction
In this section, we will explain ancillary services flow works.
Ancillary services are used in flight module, and it could be baggage, flight extras, reduced mobility, and speedy boarding.
Depending on the flight provider you will or won't have the ancillary services. For now, the only provider that has ancillary services is Travel Fusion.
How to get Ancillary Services
To get the ancillary services, you must have a flight in the shopping cart. If you don't know how to add a flight to the shopping cart please visit the link. When a flight is successfully added to the shopping cart, you need to call a method for ancillary services. Method URL is:
https://rest.resvoyage.com/api/v1/cart/ancillary
This method is the GET method and it has two parameters: sessionId (sessionId from the shopping cart) and itineraryId (itinerary from which you want ancillary services).
Example:
Response overview
In response, you will receive a list of ancillary service objects. One object has:
Id, Amount, CurrencyCode, AncillaryType, Description, FlightSegments, IsPerPassenger.
Now we will refer you to what each property's purpose.
Id - unique identificatory
Amount - amount of specific ancillary
CurrecnyCode - currency code for given amount
AncillaryType - type of ancillary (Baggage, SpeedyBoarding, ReducedMobility, FlightExtras)
Description - small description of ancillary if needed
FlightSegments - list of flight segments where is ancillary included, each flight segment object has needed information about segment.
IsPerPassenger - indicates that ancillary is per passenger or per booking. If ancillary is per booking this property will have value false and it could be assigned only to one traveler.
You can find an example in the attachment, the file is AncillaryRS.
Assign ancillary to traveler
Ancillary services can be assigned to traveler when you are doing a booking. In a booking request, you have a list of travelers and each traveler has a property called AncillaryServiceIds. This property is a list of string and it should have a list of ancillary service ids that you have received previously.
Here you have two restrictions. The first is that travelers can't have duplicated ancillary service ids and the second one is that only one traveler can have per booking ancillary.