India's Most Complete IRCTC Train Booking API Platform

Train Booking API to Power Your Platform with Real-Time IRCTC Access

AOPAY's IRCTC Train Booking API gives your travel platform instant access to Indian Railways' full booking infrastructure — real-time train search, live seat availability, tatkal booking, PNR status, e-ticket generation, cancellations, refunds, and automated GST invoicing — all through a single, developer-friendly REST API built for OTAs, TMCs, travel startups, and corporate travel platforms in India.

Request API Demo
  • GDS + NDC in One API
  • 500+ Airlines Covered
  • <200ms Avg Response
  • 99.95% API Uptime
  • Free Sandbox Access

IRCTC Train Search — Live

Real-Time

From

NDLS — New
Delhi

To

CSTM —
Mumbai

Date

15 Dec

Rajdhani Express

#12952 · daily

AVL 42

16:55

NDLS

16h 35m

09:30+1

CSTM

SL ₹690
3A ₹1,820
2A ₹2,615
1A ₹4,445

August Kranti Rajdhani

#12954 · daily

WL 12

17:25

NDLS

17h 05m

10:30+1

BCT

3A ₹1,820
TATKAL ₹2,280

36

Trains Found

142ms

Response Time

Live

IRCTC Status

13,000+

Trains Covered

7,000+

Railway Stations

<150ms

Average API Response

99.9%

API Uptime SLA

10M+

Tickets Booked via API

About AOPAY Train API

What is AOPAY's Train Booking API?

AOPAY's Train Booking API is India's most complete IRCTC API integration platform, designed for OTAs, travel startups, TMCs, corporate travel portals, and super apps that want to offer Indian Railways ticket booking to their customers without the complexity of direct IRCTC agent licensing.

Through AOPAY's unified railway reservation API, your platform connects to Indian Railways' passenger reservation system (PRS) for real-time train search, live seat availability, tatkal and premium tatkal booking, PNR status tracking, coach position, e-ticket generation, cancellations, TDR filing, and automated GST invoicing — all via clean REST API endpoints that your engineering team can integrate in days.

IRCTC-Authorized

IRCTC-Authorized

Official API partner

<150ms Response

<150ms Response

Real-time availability

Tatkal Booking

Tatkal Booking

Premium & tatkal quotas

GST Compliance

GST Compliance

Auto-invoice generation

Platform Coverage — Indian Railways

Train Network

13,000+

Stations

7,000+

Train Classes

8 Classes+

Booking Quotas

10+ Quotas

10M+

Tickets Booked via API

250+

Travel Platforms Integrated

142ms

Avg. Search Latency

99.9%

Uptime SLA Guaranteed

Key Features

AOPAY IRCTC Train Booking API: Search, Booking & PNR Management Features

Every Indian Railways booking capability your travel platform needs — fully automated, real-time, and IRCTC-compliant.

Real-Time Train Search API

Real-Time Train Search API

Search all 13,000+ Indian Railways trains between any two stations for any date — with live availability, train schedules, journey duration, intermediate stops, and class-wise fare display.

  • train schedule API India
Live Seat Availability API

Live Seat Availability API

Real-time seat availability across all booking classes (SL, 3A, 2A, 1A, CC, 2S, EC) and quotas (General, Tatkal, Ladies, Senior Citizen, etc.) — with waitlist and RAC status indicators.

  • train seat availability API
Tatkal & Premium Tatkal Booking API

Tatkal & Premium Tatkal Booking API

Full tatkal and premium tatkal ticket booking with timing-controlled endpoints, tatkal fare calculation, quota availability check, and instant booking confirmation — for urgent travel needs.

  • tatkal train booking API India
PNR Status & Tracking API

PNR Status & Tracking API

Live PNR status retrieval including booking confirmation, waitlist position, RAC status, berth allotment, coach details, chart preparation status, and passenger journey details.

  • IRCTC PNR status API
E-Ticket Generation & Download API

E-Ticket Generation & Download API

Automated e-ticket generation in PDF format post-booking, with passenger details, journey info, coach/berth assignments, fare breakdowns, and downloadable links via API response.

  • e-ticket generation API India
Train Cancellation & Refund API

Train Cancellation & Refund API

Full and partial ticket cancellation, TDR filing, IRCTC refund rule application, penalty calculation, refund eligibility check, and refund status tracking — all automated via API.

  • train cancellation and refund API
Live Train Running Status API

Live Train Running Status API

Real-time train location, delay status, current station, last reported station, expected arrival/departure at upcoming stations — powering live train tracking on your platform.

  • live train status API
GST Invoice & Compliance API

GST Invoice & Compliance API

Automated GST invoice generation per booking with CGST/SGST/IGST breakdowns, GSTIN capture, PDF delivery, and consolidated GST reporting — essential for B2B travel businesses.

  • train booking API with GST invoice
Webhooks & Real-Time Notifications

Webhooks & Real-Time Notifications

Event-driven webhooks for booking confirmations, ticket issuance, PNR status changes, cancellation updates, refund completions, and chart preparation alerts.

  • train booking webhook API India

Developer Reference

Clean REST Train Booking API Endpoints for Rapid IRCTC Integration

AOPAY's IRCTC Train Booking API is built with a developer-first REST architecture — clean JSON responses, comprehensive documentation, sandbox testing, and SDKs in multiple languages. Most teams go from API key to live in under 3 weeks.

API Specifications

ProtocolProtocol:REST / JSON
AuthAuth:Bearer Token (JWT)
Base URLBase URL:api.aopay.in/v2
FormatFormat:JSON + XML
ResponseResponse:<200ms avg
SandboxSandbox:Free Access
Access Free Sandbox
GET

/trains/search

Real-time train search

GET

/trains/availability

Live seat availability

GET

/trains/schedule/{train_no}

Train timetable

GET

/trains/running-status

Live train position

GET

/trains/fare

Fare inquiry API

POST

/bookings/create

Ticket booking

POST

/bookings/tatkal

Tatkal booking

GET

/bookings/pnr/{pnr}

PNR status

GET

/tickets/download/{pnr}

E-ticket PDF

DELETE

/bookings/cancel

Cancellation & refund

POST

/bookings/tdr

TDR filing

GET

/reports/gst-invoice

GST invoice generation

Integration Guide

How to Integrate AOPAY's IRCTC Train Booking API

From API key to live train bookings — most teams complete integration in 1 to 3 weeks.

1

Request API Access & Sandbox

Register on AOPAY, receive your IRCTC API sandbox credentials, and access full developer documentation within 24 hours — completely free, no upfront cost.

2

Explore & Test All Endpoints

Use the sandbox to test train search, availability, tatkal booking, PNR status, e-ticket generation, cancellations, and GST invoicing with simulated IRCTC data.

3

Build & Integrate Your Platform

Integrate AOPAY's REST endpoints into your OTA, travel app, corporate portal, or super app using our SDKs (Node.js, Python, PHP, Java) and Postman collection.

4

Go Live & Scale Bookings

Complete technical review, activate production API keys, and go live with real Indian Railways bookings. Scale query volumes and modules as your platform grows.

Why AOPAY

Why India's Travel Platforms Choose AOPAY Over Other IRCTC API Providers

Most IRCTC API providers offer unreliable uptime, poor documentation, and legacy XML integration. AOPAY is purpose-built for modern travel platforms — with a clean REST API, real-time IRCTC data, and Indian Railways-specific features that competitors simply don't offer.

01

IRCTC-Authorized API Partnership

AOPAY operates as an IRCTC-authorized API partner — ensuring all bookings are compliant, legally valid, and processed through official Indian Railways infrastructure.

02

Modern REST API — No Legacy XML

Unlike competitors offering outdated XML/SOAP interfaces, AOPAY provides a modern REST JSON API with clean documentation, Postman collections, and multi-language SDKs.

03

Highest Uptime in the Market

99.9% API uptime SLA backed by enterprise infrastructure — critical for OTAs and corporate travel platforms that can't afford downtime during tatkal booking windows.

04

Indian Railways-Specific Features

Tatkal timing controls, multi-quota booking, RAC/WL management, TDR filing, coach position API, and train running status — features built specifically for Indian Railways use cases.

05

Startup-Friendly Pricing

Pay-per-request pricing, free sandbox, low minimum commitments, and flexible plans from startup to enterprise — no large upfront deposits or long-term contracts.

FeatureAOPAYZuelPayTripFroOthers
IRCTC-Authorized Partner~~
Modern REST JSON API~
Free Sandbox Access
Tatkal API with Timing Controls~~
99.9%+ Uptime SLA
GST Invoice Automation
Live Train Running Status~
Startup Pricing Plans~
Multi-Language SDK Support

Certifications & Compliance

IRCTC Authorized Partner
IRCTC TSPS Compliant
RBI Payment Compliant
ISO 27001 Security
PCI-DSS
GST Compliant

Free Sandbox Available Now

Get Free Access to AOPAY IRCTC Train Booking API Sandbox

est real-time train search, PNR status, tatkal booking, seat availability, e-ticket generation, and cancellations — free, in a fully simulated IRCTC environment.

  • Sandbox Live in 10 Minutes
  • No Credit Card
  • Full Endpoint Access
  • Dedicated Onboarding Support

Industries Served

AOPAY Train Booking API Use Cases Across Industries

Built for every travel, mobility, and enterprise business that needs reliable Indian Railways booking infrastructure.

Online Travel Agencies

Online Travel Agencies

Full train booking capability for your OTA — search, book, cancel, and manage PNRs at scale.

Corporate Travel Platforms

Corporate Travel Platforms

Employee train booking with travel policy enforcement, GST invoicing, and consolidated reporting.

Travel Startups

Travel Startups

Launch train booking on startup-friendly pricing — no large GDS deposits or complex licensing.

Super Apps & Fintech

Super Apps & Fintech

Embed Indian Railways booking natively in your super app, wallet, or neobank in weeks.

Tour & Holiday Operators

Tour & Holiday Operators

Build dynamic train+hotel packages with live fare and availability for multi-city itineraries.

Loyalty & Rewards Platforms

Loyalty & Rewards Platforms

Redeem reward points for train tickets with full booking lifecycle via AOPAY's API.

Logistics & Workforce Mobility

Logistics & Workforce Mobility

Bulk train booking for workforce travel with centralized management and compliance reporting.

Government & Public Sector

Government & Public Sector

Official travel booking systems for government employees with full audit and GST compliance.

Use Cases

How Travel Businesses Use AOPAY Train API

OTA — India

Travel OTA Integrates IRCTC Train Booking in 2 Weeks — Adds 30% Revenue

A Bengaluru-based OTA added train booking to their flight-only platform using AOPAY's API. Integration took 2 weeks. Train bookings now contribute 30% of total platform revenue with tatkal bookings driving high-margin transactions.

  • ✓ 2-week integration | ✓ +30% revenue contribution | ✓ Tatkal live day 1

Corporate Travel — B2B SaaS

Corporate Travel SaaS Automates Employee Train Bookings & GST Invoicing

A Pune-based corporate travel SaaS integrated AOPAY's train API to automate employee self-booking, approval workflows, and automated GST invoice generation — eliminating 4 FTEs in manual booking operations.

  • ✓ 4 FTEs saved | ✓ 100% GST-automated | ✓ Travel policy enforced

Super App — Fintech

Fintech Super App Adds Train Booking — 1.8x User Session Duration

A Mumbai-based payments super app embedded Indian Railways booking via AOPAY's API in 3 weeks. Users now book trains without leaving the app — driving 1.8x increase in session duration and 22% increase in monthly active users.

  • ✓ 3-week integration | ✓ 1.8x session duration | ✓ +22% MAU

Holiday Package Provider

Tour Operator Builds Real-Time Train+Hotel Packages with Live IRCTC Fares

A Jaipur-based tour operator integrated AOPAY's train API alongside hotel booking to offer dynamically priced train+hotel packages — eliminating manual fare checking and increasing package booking volume 2.5x.

  • ✓ 100% automated packaging | ✓ 2.5x booking growth

Logistics — Workforce Mobility

Manufacturing Company Manages 500+ Employee Train Bookings Monthly via API

A large manufacturing firm integrated AOPAY's train booking API into their HRMS to enable employees to self-book train travel within policy limits, with centralized GST reporting and bulk cancellation management.

  • ✓ 500+ bookings/month automated | ✓ ₹8L annual savings

Loyalty Platform

Rewards Platform Enables Points Redemption for Train Tickets via AOPAY

A loyalty program integrated AOPAY's train API to allow members to redeem reward points for IRCTC train bookings — full PNR lifecycle and e-ticketing managed by AOPAY; platform only manages the points redemption logic.

  • ✓ Launched in 2 weeks | ✓ +40% point redemption rate

Client Reviews

What Travel Tech Teams Say About AOPAY Train API

★★★★★ 4.8/5 from 640+ developer reviews

★★★★★
We integrated AOPAY's IRCTC Train Booking API in 14 days. The REST API documentation is the best I've seen from any IRCTC API provider. Tatkal booking works flawlessly — no missed booking windows. Our train bookings now generate 28% of our platform revenue.
V

Vikram Nair

CTO - RailTrips OTA · Bangalore

★★★★★
AOPAY's 99.9% uptime SLA is critical for us. During tatkal booking windows at 10 AM, we can't afford a single second of downtime. AOPAY has never failed us in 8 months of production. The PNR status API and live train tracking are exceptional.
S

Sunita Reddy

VP Engineering - CorpMoves TMC · Hyderabad

★★★★★
As a travel startup, we couldn't afford IRCTC agent deposits or complex XML integrations. AOPAY's startup plan with pay-per-request pricing and free sandbox let us launch with full IRCTC capability from day one. We were live in under 3 weeks.
A

Amit Mishra

Founder - TrainGo.in · Lucknow

★★★★★
The automated GST invoice API saved our operations team enormous manual work. Every corporate booking now auto-generates a compliant GST invoice. The consolidated reporting feature is a huge plus for our finance team's monthly reconciliation.
P

Priya Patel

Product Manager - TravelDesk B2B · Ahmedabad

★★★★★
We evaluated ZuelPay, TripFro, and AOPAY. AOPAY was the only provider offering a modern REST API with a proper sandbox environment. The onboarding was fast, the documentation thorough, and the support team responsive. Highly recommended.
R

Rahul Kapoor

Tech Lead - VoyageSmart · Delhi

★★★★★
We use AOPAY's train and flight APIs together. Having both under one vendor with unified billing, one dashboard, and a single support team has simplified our operations enormously. The train booking API uptime and speed are both best-in-class.
N

Nikhil Kumar

CTO - JourneyEase India · Pune

FAQ

Frequently Asked Questions — AOPAY IRCTC Train Booking API

Technical and commercial answers for CTOs, product managers, and travel engineering teams.

Free Sandbox Available Now

Launch Indian Railways Booking with the Best IRCTC Train Booking API for Travel Portals India

Access 13,000+ trains, real-time seat availability, tatkal booking, PNR status, e-ticketing, and GST invoicing — through one clean, IRCTC-authorized REST API. Sandbox active in minutes.

  • Sandbox in 10 Minutes
  • No Credit Card Needed
  • IRCTC-Authorized Platform
  • India-Based 24/7 Support