Skip to main content
GET
/
journeys
/
seat-map
Retrieve the route seat map.
curl --request GET \
  --url https://b2b-api.markoub.dev/journeys/seat-map \
  --header 'Authorization: Bearer <token>'
[
  {
    "selectedSeats": [
      {
        "seatNumber": 123,
        "index": "<string>",
        "ticketNumber": "<string>",
        "tripBusProfileId": 123
      }
    ],
    "seatMap": [
      [
        {
          "type": "<string>",
          "index": "<string>",
          "seatNumber": 123
        }
      ]
    ]
  }
]
If the journey showSeatMap is false, you can ignore calling this endpoint, pass directly to the createBooking endpoint instead, this will return nothing if showSeatMap is false.

Authorizations

Authorization
string
header
required

Default authentication mechanism

Query Parameters

journeyId
string
required

The journey ID retreived from the search

searchId
string
required

The search ID retreived from the search

Response

The retrieved route seat map

selectedSeats
object[] | null

Will be nullable if the journey showSeatMap is false.

seatMap
object[][] | null

Will be nullable if the journey showSeatMap is false.