---
title: "Extract PNR"
method: POST
path: "/extractPnr.do"
tags: ["Other Functions"]
---

# Extract PNR

`POST /extractPnr.do`

This API is used to directly connect to airlines and extract PNR information. The content displayed by this API reflects the current PNR information on the airline side, such as flight schedule and ticket status. Atlas extracts airline information truthfully and will not do any modification.

**Endpoint:**
https://sandbox.atriptech.com/extractPnr.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
  - `airlinePnr` string, required — The airline PNR
  - `carrier` string, required — 2-letter IATA code for the airline
  - `passengers` object[], required
    - `firstName` string, required
    - `lastName` string, required
  - `contact` object, required
    - `email` string, required — Contact email.
  - `routing` object, required — The original flight segment information at the time of order generation
    - `fromSegments` object[], required
      - `arrAirport` string, required — 3-letter iata code for the arrival airport at which the segment is scheduled to arrive.
      - `arrTime` string, required — The datetime at which the segment is scheduled to arrive, in the arrival airport timezone. The format is `yyyy-MM-dd HH:mm`.
      - `dptAirport` string, required — 3-letter iata code for the airport at which the segment is scheduled to depart.
      - `depTime` string, required — The datetime at which the segment is scheduled to depart, in the departure airport timezone. The format is`yyyy-MM-dd HH:mm`.
      - `flightNumber` string, required — Marketing flight number. The format is: CA123 or TR021 or FR1290, with the first two letters representing the carrier and the following number representing the flight number.
    - `retSegments` object[], nullable
      - `arrAirport` string, required — 3-letter iata code for the arrival airport at which the segment is scheduled to arrive.
      - `arrTime` string, required — The datetime at which the segment is scheduled to arrive, in the arrival airport timezone. The format is `yyyy-MM-dd HH:mm`.
      - `dptAirport` string, required — 3-letter iata code for the airport at which the segment is scheduled to depart.
      - `depTime` string, required — The datetime at which the segment is scheduled to depart, in the departure airport timezone. The format is`yyyy-MM-dd HH:mm`.
      - `flightNumber` string, required — Marketing flight number. The format is: CA123 or TR021 or FR1290, with the first two letters representing the carrier and the following number representing the flight number.
  - `timeout` integer, nullable — The maximum response duration, in milliseconds. Note: This time is estimated due to the impact of network transmission.

## Response `200`

- object
  - `status` 99005 | 99006 | 99007, required
  - `msg` string, nullable
  - `airlinePnr` string, required — Airline PNR(not Atlas)
  - `pnrStatus` 'OnHold' | 'Ticketed' | 'Cancelled' | 'Unknown', required
  - `pnrUsed` 'used' | 'unused', nullable, required — pnr usage status
  - `currency` string, nullable — The currency of fare
  - `totalPrice` string, nullable
  - `routing` object, required — The current flight schedule. It may be different from that at the time of booking (flight schedule change).
    - `fromSegments` object[], required
      - `aircraftCode` string, nullable — IATA Code of aircraft type
      - `arrAirport` string, required — 3-letter iata code for the arrival airport at which the segment is scheduled to arrive.
      - `arrTerminal` string, nullable — The terminal at the destination airport where the segment is scheduled to arrive.
      - `arrTime` string, required — The datetime at which the segment is scheduled to arrive, in the arrival airport timezone. The format is `YYYYMMDD`.
      - `carrier` string, required — IATA code of marketing carrier.
      - `codeShare` boolean, required — A flag used to identify whether it is a code share flight.
      - `depAirport` string, required — 3-letter iata code for the airport at which the segment is scheduled to depart.
      - `depTerminal` string, nullable — The terminal at the departure airport from which the segment is scheduled to depart.
      - `depTime` string, required — The datetime at which the segment is scheduled to depart, in the departure airport timezone. The format is`YYYYMMSS`.
      - `duration` integer, required — The duration of the segment in munites.
      - `flightNumber` string, required — Marketing flight number. The format is: CA123 or TR021 or FR1290, with the first two letters representing the carrier and the following number representing the flight number.
      - `operatingCarrier` string, nullable — 2-letter iata code for the operating carrier. The airline actually operating this segment. This may differ from the marketing carrier in the case of a "codeshare", where one airline sells flights operated by another airline.
      - `operatingFlightnumber` string, nullable — Operating flight number.
    - `retSegments` object[], nullable
      - `aircraftCode` string, nullable — IATA Code of aircraft type
      - `arrAirport` string, required — 3-letter iata code for the arrival airport at which the segment is scheduled to arrive.
      - `arrTerminal` string, nullable — The terminal at the destination airport where the segment is scheduled to arrive.
      - `arrTime` string, required — The datetime at which the segment is scheduled to arrive, in the arrival airport timezone. The format is `YYYYMMDD`.
      - `carrier` string, required — IATA code of marketing carrier.
      - `codeShare` boolean, required — A flag used to identify whether it is a code share flight.
      - `depAirport` string, required — 3-letter iata code for the airport at which the segment is scheduled to depart.
      - `depTerminal` string, nullable — The terminal at the departure airport from which the segment is scheduled to depart.
      - `depTime` string, required — The datetime at which the segment is scheduled to depart, in the departure airport timezone. The format is`YYYYMMSS`.
      - `duration` integer, required — The duration of the segment in munites.
      - `flightNumber` string, required — Marketing flight number. The format is: CA123 or TR021 or FR1290, with the first two letters representing the carrier and the following number representing the flight number.
      - `operatingCarrier` string, nullable — 2-letter iata code for the operating carrier. The airline actually operating this segment. This may differ from the marketing carrier in the case of a "codeshare", where one airline sells flights operated by another airline.
      - `operatingFlightnumber` string, nullable — Operating flight number.
  - `paxTicketInfos` object[], required — Ticket information for each passenger.
    - `name` string, required — Echo the passenger's name, in the format of last name/first name
    - `ticketNos` string[], required — Ticket numbers. There may be two tickets for the round trip, in which case the number of arrays is two.
    - `airlinePNRs` string[], required — A list containing airline PNR. There may be two PNRs for the round trip, in which case the number of arrays is two.
    - `ancillaries` object[], nullable — Ancillaries selection for the specific passenger
      - `productCode` string, required — Unique identifier for the ancillary product.
      - `segmentIndex` integer, required — The index of segment the ancillary applies to.
      - `currency` string, required — The currency in which Atlas settles transactions with you
      - `ancillaryPrice` number, required — Price for this ancillary.
      - `auxBaggageElement` object, nullable — Baggage specification limitations. This node is valid only when the ancillary type (`categoryCode`) is baggage.
        - `isAllWeight` boolean, required — Mark whether the`weight`field restricts the total weight or the weight of a single piece. - `true`: The weight is for all the pieces - `false`: The weight is for each piece
        - `piece` integer, required — The maximum number of pieces that can be purchased per person. - `0`: No Limitation about piece - `>0`: Maximum pieces
        - `size` string, nullable — Maximum size for the baggage
        - `weight` integer, required — The maximum weight that can be purchased per person. - `0`: No limitation for weight - `>0`: Weight limit (KG)
      - `auxSeatElement` object, nullable — Seat selection for the specific passenger
        - `row` string, required — Seat row
        - `column` string, required — Seat column
      - `vendorCurrency` string — The currency in which the vendor charges for the ancillary. If the fare does not allow for the VCC pass-through or BYOA payment, this information will be`null`.
      - `vendorPrice` integer — The price charged by the vendor for the ancillary. If the fare does not allow for the VCC pass-through or BYOA payment, this information will be`null`.
      - `displayCurrency` string, nullable — Display currency
      - `displayPrice` number, nullable — Display price
    - `contactEmails` string[], nullable — Passenger contact email address.
    - `contactPhones` string[], nullable — Passenger contact phone number.
    - `ticketStatus` 'OPEN_FOR_USE' | 'REFUND' | 'USED' | 'PARTIALLY_USED' | 'NOSHOW' | 'UNKNOWN', required — Ticket status
  - `contact` object, required
    - `email` string, nullable — Contact email.
    - `companyName` string, nullable — Company name.

---

[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)
