India's Rail Network via One API
ZuelPay's Train Booking API integrates directly with IRCTC's Next Generation Booking (NGB) system — India's national railway reservation platform. Search trains across 8000+ stations, check real-time seat availability and book tickets in all quotas including Tatkal, RAC, Waiting List and General.
Travel agents, TMCs and travel portals can issue authorised tickets to customers without worrying about quota or cancellation. Our single-wallet system simplifies all transactions — one account, all travel products.
We also provide PNR status check, train running status, coach position and seat chart — everything needed to build a complete rail-booking experience for your users on web or mobile.
Every Ticket Type, Every Quota
General Quota
Standard confirmed tickets — available up to 120 days in advance. Most economical booking option for all classes.
ConfirmedTatkal Quota
Last-minute premium quota — opens 1 day before travel. Higher fare but confirmed seats when general is full.
PremiumRAC & Waiting List
Reservation Against Cancellation and Waiting List tickets — valid for travel, auto-confirmed as seats free up.
Auto-upgradeSpecial Quotas
Ladies Quota, Senior Citizen Quota, Tourist Quota, Emergency Quota and Defence Quota — all supported via API.
PriorityComplete Rail Operations API
Train Search
Search trains between source and destination by date — returns all trains with schedule, duration and stops
Seat Availability
Real-time availability per class and quota — AVAIL, RAC and WL counts updated from IRCTC live
Ticket Booking
Book confirmed, Tatkal, RAC and WL tickets with passenger details — PNR generated instantly
PNR Status Check
Check current PNR status — seat number, coach, berth type and booking confirmation
Train Running Status
Live train running position, delay status and platform info at any station
Cancellation & Refund
Cancel tickets and get automated refund calculation as per IRCTC refund policy
Seat Chart
View coach-wise seat chart for any train — know occupied and available berths before boarding
Single Wallet
One ZuelPay wallet for all travel products — train, flight, bus and hotel bookings
// POST /v2/train/search
fetch('https://api.zuelpay.com/v2/train/search', {
method: 'POST',
headers: { 'Authorization': 'Bearer zp_live_xxx' },
body: JSON.stringify({
from_station: 'NDLS', // Station code
to_station: 'MAS',
date: '2026-04-20',
travel_class: 'SL', // Optional filter
quota: 'GN' // GN/TQ/LD/SS
})
});
// Returns trains with availability per class
Book a Train Ticket in 5 Steps
More Travel APIs from ZuelPay
Flight Booking API
Domestic and international flights via GDS — search, book and ticket instantly.
🚌Bus Booking API
2000+ operators, live seat maps, instant PNR and auto-refund on cancellation.
🏨Hotel Booking API
500,000+ hotels worldwide — real-time rates and instant booking confirmation.
🔐Payment Gateway
Accept cards, UPI and net banking for train ticket payments on your portal.
🏷️White-Label Travel Portal
Launch your own branded travel portal with trains, flights, bus and hotel.
💸Payout API
Auto-refund on train cancellations via IMPS, NEFT or UPI instantly.
Add Train Booking to Your Travel Platform
8000+ stations, all quotas, IRCTC compliant. Full sandbox, single wallet, competitive commissions.