Skip to main content

Get SeatMap

Retrieve the seat map layout for a specific flight, including available seats, occupied seats, and seat characteristics such as class, position, and any additional fees.


Endpoint

  • URL: /api/v1/flight/getseatmap
  • Method: POST
  • Auth Required: Yes (Bearer Token/X-API-KEY)
  • Content-Type: application/json

Authentication

This endpoint requires a valid JWT Bearer token in the Authorization header:

Authorization: Bearer <access_token>

Obtain tokens via /api/v1/sign-in (POST) with your credentials.


Request Structure

FieldTypeRequiredDescription
systemstringNoBooking system code (e.g., VN, VJ, 1A)
flightValuestringNoFlight value from search results

Example Request:

{
"system": "VN",
"flightValue": "encoded_flight_value_from_search"
}

Request Constraints & Business Rules

  • The flightValue must be obtained from a previous flight search response.
  • Seat maps are only available for flights that support seat selection.
  • Different aircraft types will have different seat map configurations.
  • Some seats may have restrictions (emergency exits, extra legroom, etc.).
  • Seat availability is updated in real-time.

Response Structure

FieldTypeNullableDescription
systemstringYesSystem name (e.g., VN, VJ, 1A)
statusbooleanNotrue if successful, false if failed
errorobjectYesError details (if any)
descriptionstringYesError description (if any)
trackingIdstringYesTracking ID for request logs
trackingTimestringYesTime for request tracking (ISO 8601 format)
flightSeatsarrayYesList of flight seat information (see FlightSeat)

FlightSeat Object

FieldTypeNullableDescription
aircraftstringYesAircraft type (e.g., Airbus A321, Boeing 737)
flightNumberstringYesFlight number (e.g., VN123)
cabinsarrayYesList of cabin configurations (see Cabin)

Cabin Object

FieldTypeNullableDescription
firstRowstringYesFirst row number of the cabin
lastRowstringYesLast row number of the cabin
cabinClassstringYesCabin class name
columnsarrayYesList of seat columns (see SeatColumn)
rowsarrayYesList of seat rows (see SeatRow)

SeatColumn Object

FieldTypeNullableDescription
columnIndexintegerNoColumn index (starting from 0)
columnCodestringYesColumn code (null if aisle)
columnTypestringYesType: "column" (seat) or "aisle"
characteristicsarrayYesColumn characteristics

SeatRow Object

FieldTypeNullableDescription
rowNumberstringYesRow number
seatsarrayYesList of seats in this row (see Seat)

Seat Object

FieldTypeNullableDescription
textstringYesSeat number (used for booking)
columnIndexintegerNoColumn index (starting from 0)
routestringYesRoute (StartPoint + EndPoint)
availablebooleanYesWhether seat is available
descriptionarrayYesSeat characteristics and restrictions
pricesarrayYesPrices by passenger type (see PriceSeatType)

Example Response:

{
"system": "VN",
"status": true,
"error": null,
"description": null,
"trackingId": "abc-123",
"trackingTime": "2024-06-01T12:00:00Z",
"flightSeats": [
{
"aircraft": "Airbus A321",
"flightNumber": "VN123",
"cabins": [
{
"cabinClass": "Y",
"cabinName": "Economy",
"rows": [
{
"rowNumber": "6",
"seats": [
{
"seatNumber": "6A",
"seatLabel": "A",
"available": true,
"seatType": "Window",
"fee": 0,
"currency": "VND",
"seatValue": "encoded_seat_selection_data"
},
{
"seatNumber": "6B",
"seatLabel": "B",
"available": true,
"seatType": "Middle",
"fee": 0,
"currency": "VND",
"seatValue": "encoded_seat_selection_data"
},
{
"seatNumber": "6C",
"seatLabel": "C",
"available": false,
"seatType": "Aisle",
"fee": 0,
"currency": "VND",
"seatValue": null
}
]
}
]
}
]
}
]
}

Error Codes

This endpoint may return the following error codes:

For a complete list of error codes, see Error Codes.


Security & Validation

  • All input is validated for type and required fields.
  • Only authenticated users can access this endpoint.
  • Flight values are validated against active search sessions.
  • Seat availability is checked in real-time.
  • All seat map requests are logged and traceable.

Validation Questions

  • How long are flight values valid for seat map requests?
  • Are there restrictions on which flights support seat maps?
  • How are special needs seats (wheelchair accessible) identified?
  • What happens if seat availability changes during selection?

For integration support, see Contact Support.