---
title: "Seat Availability"
method: POST
path: "/seatAvailability.do"
tags: ["Shopping and Ticketing"]
---

# Seat Availability

`POST /seatAvailability.do`

**Dependency:**
Verify or getOffer function should be called in prior to this call.

> In a booking process, please call the 'seatAvailability' API to get seat availability information after price verification via 'verify' or 'getOffer'.
> Steps:
> 1. API sequence
>    * Search - Verify- seatAvailability - Order - Pay
>    * getOffer - seatAvailability - Order - Pay
> 2. Pass 'offerId' in 'seatAvailability' requests:
>    * From 'verify': Use sessionId directly.
>    From 'getOffer': Use its offerId.
> 3. In the Order step, use the productCode to add specific seat to the ticket order.

**Endpoint:**
https://sandbox.atriptech.com/seatAvailability.do

## Headers

- `Accept` string, required
- `Content-Type` string, required
- `Accept-Encoding` string, required
- `x-atlas-client-id` string, required
- `x-atlas-client-secret` string, required

## Request body

- object
  - `sessionId` string, required — The`sessionId`returned by price verification api(`verify.do`). Only required in **Non-independent mode**.
  - `offerId` string, required — The`offerID`returned by get offer api(`getOffers.do`). Only required in **Non-independent mode**.
  - `carrier` string, required — The IATA code of MSC(known as Most Significant Carrier) of the itinerary.
  - `outboundSegments` SeatMapFlight[], required — Outbound segments. All segments of the itinerary must be specified. Segments should be arranged in the order of takeoff.
    - `segmentIndex` integer, required — This is the segment number, which starts from 1 and increments in the order of takeoff of each segment.
    - `flightNumber` string, required — Marketing flight number(with airline code prefix).
    - `depAirport` string, required — 3-letter iata code for the airport at which the segment is scheduled to depart.
    - `arrAirport` string, required — 3-letter iata code for the arrival airport at which the segment is scheduled to arrive.
    - `depTime` string, required — The datetime at which the segment is scheduled to depart, in the departure airport timezone. The format is`YYYYMMDD`.
    - `cabinClass` 1 | 2 | 3 | 4, required
  - `inboundSegments` SeatMapFlight[], nullable — Inbound segments. All segments of the itinerary must be specified. Segments should be arranged in the order of takeoff.
    - `segmentIndex` integer, required — This is the segment number, which starts from 1 and increments in the order of takeoff of each segment.
    - `flightNumber` string, required — Marketing flight number(with airline code prefix).
    - `depAirport` string, required — 3-letter iata code for the airport at which the segment is scheduled to depart.
    - `arrAirport` string, required — 3-letter iata code for the arrival airport at which the segment is scheduled to arrive.
    - `depTime` string, required — The datetime at which the segment is scheduled to depart, in the departure airport timezone. The format is`YYYYMMDD`.
    - `cabinClass` 1 | 2 | 3 | 4, required

## Response `200`

- object
  - `status` 214 | 215 | 216 | 217 | 218 | 219 | 220 | 221 | 223, required
  - `msg` string — It serves as an additional description of the response result. Especially when the interface reports an error (`status` !=`0`), it is usually a human-readable error message. Note: Do not use this field in any programming scenarios. For example, do not judge whether the interface responds successfully based on this field. Instead, you should only determine it by checking whether the status is equal to`0`at any time.
  - `cabins` object[], nullable — An array containing all cabins and the seat layouts within them.
    - `segmentIndex` integer, required — The segment index to which the cabin belongs
    - `cabin` object, required — An object used to describe the seat layout within a cabin.
      - `deck` 'Main' | 'Upper deck', nullable — Main deck or upper deck above that, which is found on some large aircraft.
      - `cabinClass` 1 | 2 | 3 | 4
      - `cabinLayout` object, required — Used to describe the seat layout of the cabin.
        - `columns` object[], required — Contains columns and seat information for seat display purposes. Returns the characteristics for each column. Provided in the order from left to right.
          - `designator` string, required — A letter used to uniquely identify the seat position in the column. **Typical values:** A,B,C,D,E,F
          - `characteristics` string, nullable — characteristics of column: -`A`: column by the aisle -`M`: middle column -`W`: column by the window
        - `rows` object, required — Contains rows and seat information for seat display purposes Returns the starting end row position for each column
          - `first` integer, required — First-row number Row starting row position for columns A,B,C,D,E,F
          - `last` integer, required — Last row number Row ending row position for columns A,B,C,D,E,F
        - `exitRowPositions` object[], nullable — Return the position of exit rows, if applicable. The row number generally starts from 1 and increases from the front to the tail of the aircraft, that is, the seats close to the cockpit (nose) have the smallest row numbers, and the closer to the tail, the larger the row numbers.
          - `first` integer, required — Exit seat starting row position
          - `last` integer, required — Exit seat ending row position
      - `rows` object[], required — A list of rows in this cabin. A cabin row has one or more seats.
        - `number` integer, required — Seat row number
        - `seats` object[], required — A list of seats that make up this row
          - `column` string, required — The column where the seat is located
          - `seatStatus` 'F' | 'O', required — A flag used to indicate whether a seat is free or occupied. - F: Free - O: Occupied
          - `seatCharacteristics` string[], nullable — A list contains seat characteristics, typical values(but not limited to): -`A`: Aisle seat -`E`: Exit and emergency exit -`I`: Seat suitable for adult with an infant -`IE`: Seat not suitable for child -`L`: Leg space seat -`U`: Seat suitable for unaccompanied minors -`V`: Seat to be left vacant or offered last -`W`: Window seat For more information, please refer to: [EDIFACT Standards for Seat Characteristics (9825)](https://support.travelport.com/webhelp/GWS/Content/XML_Select_Web_Service/Codes/edifact_standards_for_seating.htm).
          - `price` number, required — The total price of the seat, including taxes
          - `currency` string, required — Currency of the price.
          - `vendorPrice` number, nullable — The total price in vendor's currency of the seat, including taxes
          - `vendorCurrency` string, nullable — Vendor's currency
          - `productCode` string, required — A code used to uniquely identify this seat, which needs to be used when submitting a seat selection request.
          - `displayCurrency` number, nullable — Display currency
          - `displayPrice` number, nullable — The total price in display currency of the seat, including taxes

---

[API](https://skmtc.net/atriptech/apis/default-module.md) · [All operations](https://skmtc.net/atriptech/apis/default-module/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/atriptech/default-module/revisions/8e9a8f8010ab/schema)
