Skip to main content
GET
Get an air search item
Open a flight of the search results to see what the list only summarizes: the journeys and every fare option, each with its cabin and baggage per flight. To book it, create a trip with the item’s id as searchItemId and the chosen fareOptions entry’s id as fareId. Amounts are integers in cents: 98700 is R$ 987,00. The item lives as long as its search (see ttl). An error the travel provider reports about the request is returned with its own status, code and message.

Path Parameters

realmId
string<uuid>
required

ID of your realm.

Format: UUID

organizationId
string<uuid>
required

ID of your organization.

Format: UUID

searchId
string
required

ID of the search, as returned when it was created.

Pattern: ^srch_[0-9A-Za-z]{21}$
itemId
string
required

ID of the item to load, as listed in the items of the search results.

Pattern: ^srch_item_[0-9A-Za-z]{21}$

Response

Successful response

The detail of one flight of an air search: its journeys and every fare option.

id
string
required

ID of the item. Send it as searchItemId when you create a trip.

Example:

"srch_item_V1StGXR8Z5jdHi6BmyT2k"

searchId
string
required

ID of the search the item belongs to.

Example:

"srch_V1StGXR8Z5jdHi6BmyT2k"

occupants
number
required

Number of travelers the search was made for.

Example:

1

airline
object
required

Airline that sells the itinerary.

journeys
object[]
required

The journeys, in travel order: the outbound first and, for a round trip, the return.

fareOptions
object[]
required

Every fare option of the flight, each with its price, rules, cabin and baggage per flight, and ID — send the chosen one's id as fareId when you create a trip.