Skip to main content

Flights

PropertyData TypeDescription
idStringSearch ID that represents the search session.
siteCodeStringCountry Code of the user. Must be in ISO country code format.
If you are not able to set this, XX will be used and certain content might be unavailable
localeStringThe language that the response will be in.
en as default
currencyCodeStringCurrency code in which you want the fares to be in. USD as default. Must be ISO currency code format
deviceTypeStringThe device type of the originating request
appTypeStringThe application type of the originating request
adultsCountIntegerMust be a number greater than or equal to 1 and smaller than or equal to 10
childrenCountIntegerMust be a number greater than or equal to 0 and smaller than or equal to 10
infantsCountIntegerMust be a number greater than or equal to 0 and smaller than or equal to 2
cabinStringeconomy as default. Can be economy, premium_economy, business, first
legsArrayContains at least one Leg (oneway). A roundtrip search contains two leg. The first one is the outbound, the 2nd is the inbound leg.

Trip

PropertyData TypeDescription
idString
codeString
legIdsArrayAn array of Leg IDs. Referencing Leg object(s)

Leg

PropertyData TypeDescription
idString
departureAirportCodeStringIATA Location code
arrivalAirportCodeStringIATA Location code
airlineCodesArrayThe airline codes of all segments.
departureTimeStringdeparture time in military format
departureTimeMinutesNumberdeparture time in minutes
arrivalTimeStringarrival time in military format
arrivalTimeMinutesNumberarrival time in minutes
durationStringDuration of the leg in military format
durationMinutesNumberDuration in minutes
stopoverDurationNumberTotal number of stopover(s)
longStopoverBooleanIndicates whether leg has long stopover ( > 4 hours )
stopoverDurationNumberStopover duration in string format
stopoverDurationMinutesNumberStopover Duration in minutes
stopoverAirportCodesArrayArray of stopover airport codes
durationDaysNumberNumber of calendar days the leg would cover
overnightBooleanIndicates whether leg is overnight or not
segmentsArrayArray if segments. If leg has one segment, it means it is a direct flight. More than one means non-direct.
operatingAirlineCodeStringa.k.a marketing airline code
stopoverCodeString
shortStopoverBooleanIndicates whether leg has short stopover
earlyDepartureBooleanIndicates whether leg departs early in the day
lateArrivalBooleanIndicates whether leg's arrival time is late
newAircraftBooleanIndicates whether aircraft is new or not
oldAircraftBooleanIndicates whether aircraft is old or not
highlyRatedCarrierBooleanIndicates whether carrier is higly rated or not
allianceCodesArraylist of alliance codes

Segment

PropertyData TypeDescription
departureAirportCodeStringIATA location code
arrivalAirportCodeStringIATA location code
durationMinutesNumberDuration in minutes
stopoverDurationMinutesNumberStopover duration in minutes (if it belongs to non-direct leg)
airlineCodeStringIATA Airline Code
operatingAirlineCodeStringaka Marketing Airline Code
cabinStringcabin type

Fare

PropertyData TypeDescription
idString
tripIdStringA reference to Trip object where this fare belongs to.
pricePrice Objectcontains price of the airfare
paymentFeesArrayarray of PaymentFees
providerCodeStringA reference to Provider object where this fare belongs to.
handoffUrlStringHand off url, where user will be taken when it wants to book
ecpcNumber

Price

PropertyData TypeDescription
currencyCodeStringcurrency code of amount
totalAmountNumbertotal amount in currency Code
totalAmountUsdNumbertotal amount in USD
amountNumberaverage amount for all passengers, inludes payment fee (if there's any)
amountUsdNumberaverage amount for all passengers in USD, inludes payment fee (if there's any)
originalAmountNumberaverage amount without the payment fee
originalAmountUsdNumberaverage amount in USD, without the payment fee
amountPerAdultNumberamount per adult passenger
amountPerChildNumberamount per child passenger
amountPerInfantNumberamount per infant passenger
taxAmountNumbertotal tax amount
paymentFeeAmountUsdNumberpayment fee in USD

Provider

PropertyData TypeDescription
codeStringprovider code
nameStringprovider name
typeStringairline, ota
instantBoolean
facilitatedBookingBooleanIndicates whether booking is booked with Wego Faciliated booking platform or not
wegoFareBooleanIndicates whether booking is booked with Wego new booking platform or not

Airport

PropertyData TypeDescription
codeStringIATA airport code
nameStringTranslated Airport name. Falls back to english if no translation available.
cityCodeStringthe city of the airport

Airline

PropertyData TypeDescription
codeStringIATA airline code
nameStringTranslated Airline name

Payment Method

PropertyData TypeDescription
paymentMethodIdNumberpayment method ID
currencyCodeStringcurrency code of the amount
amountNumberpayment fee amount
amountUsdNumberpayment fee amount in USD