Skip to main content
GET
Get a bus search item
Open a trip of the search results to see what the list only summarizes: its segments — the legs of the trip — each with its seat map and fare. To book it, create a trip with the item’s id as searchItemId and, for each leg, its id as segmentId with a bookable seat’s seatNumber. 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 bus trip of a bus search: the trip and its legs, with seat maps and fares.

id
string
required

ID of the item. Use it to load the item (seat maps and per-segment fares); send it as searchItemId when you create a trip.

Example:

"srch_item_Lc7Ve3PsKd9Ny2QtXw5Mb"

searchId
string
required

ID of the search the item belongs to.

Example:

"srch_Fg4Ju9SaPe2Wx6TnCi5Oz"

type
enum<string>
required

DIRECT, CONNECTION or ONE_STOP.

Available options:
DIRECT,
CONNECTION,
ONE_STOP
Example:

"DIRECT"

routeDirection
enum<string>
required

Whether the trip is an outbound (DEPARTURE) or a return (RETURN) one.

Available options:
DEPARTURE,
RETURN
Example:

"DEPARTURE"

origin
object
required

Origin station.

destination
object
required

Destination station.

departureDate
string
required

Departure, in the local time of the origin station (YYYY-MM-DDTHH:mm:ss, no time-zone offset).

Example:

"2026-11-02T22:30:00"

arrivalDate
string
required

Arrival, in the local time of the destination station (YYYY-MM-DDTHH:mm:ss, no time-zone offset).

Example:

"2026-11-03T05:15:00"

company
object
required

Company that runs the trip.

availableSeats
number
required

Seats available to book.

Example:

18

totalSeats
number | null
required

Seats on the bus. null when not informed.

Example:

42

lowFareAvailableSeats
number | null
required

Low-fare seats still available. null when not informed.

Example:

4

fare
object
required

Fare per passenger.

boardingPassType
enum<string>
required

How the boarding pass is delivered: ELECTRONIC or RETRIEVE_AT_BOX_OFFICE.

Available options:
RETRIEVE_AT_BOX_OFFICE,
ELECTRONIC
Example:

"ELECTRONIC"

serviceClass
enum<string>
required

SLEEPER_BED, BED, SEMI_BED, EXECUTIVE, CONVENTIONAL or UNDEFINED.

Available options:
SLEEPER_BED,
BED,
SEMI_BED,
EXECUTIVE,
CONVENTIONAL,
UNDEFINED
Example:

"EXECUTIVE"

waitingTime
string
required

Wait between connecting legs, as an ISO 8601 duration. Empty for a direct trip.

Example:

""

duration
string
required

Duration of the trip, as an ISO 8601 duration.

Example:

"PT6H45M"

amenities
string[]
required

Amenities of the bus, as codes: AIR_CONDITIONING, BATHROOM, LEG_SUPPORT, SEAT_RECLINE, BETWEEN_SEATS, BUS_PHOTO, WIFI, POWER_OUTLETS, MINERAL_WATER, DOUBLE_DECK or COMFORT_KIT.


Example: ["AIR_CONDITIONING","WIFI"]

segmentsCount
number
required

Number of segments the trip is made of: 1 for a direct trip, more with connections.

Example:

1

createdAt
string<date-time>
required

When the item was created.

Example:

"2026-10-19T15:00:21.000Z"

segments
object[]
required

The legs of the trip, each with its seat map and fare — send each leg's id as segmentId, with a bookable seat's seatNumber, when you create a trip.