Skip to main content

Add SeatMap

Book or assign seats to passengers for an existing booking. This endpoint allows seat selection after the initial booking has been made.


Endpoint

  • URL: /api/v1/flight/addseatmap
  • 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)
bookingCodestringNoBooking code (PNR)
seatMapsarrayNoList of seat assignments (see SeatMapInfo)

SeatMapInfo Object

FieldTypeRequiredDescription
passengerIdstringNoPassenger ID from booking retrieval
seatValuestringNoSeat value from Get SeatMap response

Example Request:

{
"system": "VN",
"bookingCode": "ABC123",
"seatMaps": [
{
"passengerId": "PAX001",
"seatValue": "encoded_seat_value_from_seatmap"
},
{
"passengerId": "PAX002",
"seatValue": "encoded_seat_value_from_seatmap"
}
]
}

Request Constraints & Business Rules

  • The booking must exist and be in a valid state for seat assignment.
  • Passenger IDs must match those from the booking retrieval response.
  • Seat values must be obtained from a recent Get SeatMap response.
  • Seats must be available at the time of assignment.
  • Premium seats may have additional charges.
  • Some seats may have passenger type restrictions (e.g., emergency exit rows).
  • Changes to seat assignments may be restricted based on airline policies.

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)

Error Object

FieldTypeNullableDescription
idintegerNoError code ID
messagestringYesError message

Example Response:

{
"system": "VN",
"status": true,
"error": null,
"description": null,
"trackingId": "abc-123",
"trackingTime": "2024-06-01T12:00:00Z"
}

Error Codes

See Error Codes for details on possible error responses.


Security & Validation

  • All input is validated for type and required fields.
  • Only authenticated users can access this endpoint.
  • Passenger IDs are validated against the booking.
  • Seat values are validated for authenticity and availability.
  • All seat assignment actions are logged and traceable.

Validation Questions

  • How long are seat values valid for assignment?
  • Can seats be reassigned after initial assignment?
  • Are there fees for premium seat selections, and how are they handled?
  • What happens if a seat becomes unavailable between selection and assignment?

For integration support, see Contact Support.