PNR Status

checkPNRStatus(pnr: string)

Description

Get complete PNR status with passenger details, journey route, and confirmation updates.

Parameters

NameInTypeRequiredDescription
pnrARGUMENTstringYES10-digit PNR number

Code Example

javascript
import { configure, checkPNRStatus } from "railkit";

configure(process.env.RAILKIT_API_KEY);

const result = await checkPNRStatus("6948325823");

if (result.success) {
  console.log(result.data.train.name);
  console.log(result.data.journey.source.name);
  console.log(result.data.passengers[0].current.details);
}

Response Example

JSON response
200JSON
{
  "success": true,
  "data": {
    "pnr": "6948325823",
    "train": {
      "number": "18021",
      "name": "KGP KUR EXP"
    },
    "journey": {
      "dateOfJourney": "Sep 4, 2026 4:40:00 AM",
      "class": "CC",
      "quota": "GN",
      "source": {
        "code": "KGP",
        "name": "KHARAGPUR JN"
      },
      "destination": {
        "code": "KUR",
        "name": "KHURDA ROAD JN"
      },
      "boardingPoint": {
        "code": "KGP",
        "name": "KHARAGPUR JN"
      },
      "distance": 366,
      "arrivalDate": "Sep 4, 2026 1:50:00 PM"
    },
    "chart": {
      "status": "Chart Not Prepared"
    },
    "booking": {
      "fare": 1050,
      "ticketFare": 1050,
      "bookingDate": "Aug 18, 2026 8:04:06 PM"
    },
    "passengers": [
      {
        "serialNumber": "Passenger 1",
        "coachPosition": 0,
        "booking": {
          "status": "CNF",
          "coach": "C1",
          "berthNo": 30,
          "berthCode": "WS",
          "details": "CNF/C1/30/WS"
        },
        "current": {
          "status": "CNF",
          "coach": "C1",
          "berthNo": 30,
          "berthCode": "WS",
          "details": "CNF/C1/30/WS"
        }
      },
      {
        "serialNumber": "Passenger 2",
        "coachPosition": 0,
        "booking": {
          "status": "CNF",
          "coach": "C1",
          "berthNo": 31,
          "berthCode": null,
          "details": "CNF/C1/31"
        },
        "current": {
          "status": "CNF",
          "coach": "C1",
          "berthNo": 31,
          "berthCode": null,
          "details": "CNF/C1/31"
        }
      }
    ]
  }
}