---
title: "Train Ticket Booking Software: Quotas, Waitlist, PNR | PHPTRAVELS"
description: "Railway reservation software for national networks and travel agents: live class availability, quotas, waitlist to confirmed, berth choice, PNR and refunds."
source: https://phptravels.com/features/trains
---

Trains module

# Train ticket booking software with live class availability

Sell national rail tickets the way passengers already book them: every train between two stations, seats per class and quota, waitlist and RAC that move to confirmed, berth choice, PNR e-tickets and refunds by the hour, on your site and through your agents.

- Live class availability
- General, tatkal, ladies and senior quotas
- Waitlist and RAC tracking
- Refunds by time before departure

Railway reservation software

## One booking, six stations, from search to refund

A national train ticket is not a simple seat sale. The same train runs on some days and not others, every coach class has its own count, seats are split into quotas, a full train still sells waitlist tickets, and the refund depends on how many hours are left before departure. The trains module handles each of these rules for you, so a passenger or an agent sees an honest answer on every screen.

It is built for national and regional networks where trains carry reserved classes and berths. Selling international journeys, Eurail-style passes or point-to-point tickets in Europe is the job of the [rail module](https://phptravels.com/features/rail); road journeys belong to the [bus module](https://phptravels.com/features/buses), and both sit in the same installation as [flight booking](https://phptravels.com/features/flights).

Follow the line below: each station is one part of the booking, drawn as the screen your customers and agents will use. Check what is included on [the pricing page](https://phptravels.com/pricing), or open the [live demo](https://phptravels.com/demo) and book a ticket yourself.

01 Search results

## Every train between two stations, with seats per class

A passenger types two stations and a date. The results list every train that stops at both, on the days it actually runs, and shows each class side by side with its live count and fare, so nobody has to open five trains to find one berth.

Train search results

3 trains found Sorted by departure

- 4021 Capital Intercity Runs on M T W T F S S 06:05 New Delhi NDLS 10:35 Jaipur Jn JP
- 4113 Desert Mail Runs on M T W T F S S 17:40 New Delhi NDLS 22:50 Jaipur Jn JP
- 4207 Heritage Express Runs on M T W T F S S 22:10 New Delhi NDLS 03:05 +1 day Jaipur Jn JP

AVL

Confirmed seats or berths left

RAC

Reservation against cancellation: travel on a shared side berth

WL

Waitlist: the ticket is sold and moves up as others cancel

- Running days, not just timetables Each train carries its running days, so a Wednesday search never shows a train that only runs at weekends. Seasonal services and one-off specials are dated departures of their own.
- Every class in one row Sleeper, AC 3-tier, AC 2-tier, first AC and chair car appear as chips on the train row, each with its own count and fare, so the cheapest available class is obvious at a glance.
- Counts that are true at the moment of search Available, RAC and waitlist numbers come from the seats actually held per class and quota. A berth locks the moment it is picked, so two passengers can never be sold the same one.
- Any two stops on the route Fares are set per class and station pair, so a passenger can book from an intermediate stop to another, and the seat is freed for the rest of the journey.

02 Quotas

## Quota rules that hold seats for the right passengers

Railways rarely sell a coach as one pool. Part of it is kept for last-minute travel, part for women travelling alone, part for senior citizens. Each quota opens at its own time, has its own fare and asks for its own proof, and the booking screen applies all of it.

- Seats split per class Give each class of each train its quota counts. The search shows availability inside the quota the passenger chose, never the whole coach.
- Opening times and fares Each quota has its own booking window and fare rule, such as a last-minute premium or a senior concession taken off the base fare.
- Eligibility checked at booking Age, gender and ID type are checked on the passenger form, so a ticket is only issued in a quota the traveller can use on board.
- Unsold seats go back to general Quota berths that are still free when the chart is prepared are released to the general pool and offered to the waitlist first.

Quota selector

Desert Mail 4113 · AC 3-tier · 64 berths

Berths held per quota

- General 40 berths
- Tatkal / last minute 14 berths
- Ladies 6 berths
- Senior citizen 4 berths

Booking opens

60 days before departure, 08:00

Fare

Base class fare

Who can book

Any passenger

Proof on board

Any photo ID

Refund

By the refund slabs below

Booking opens

1 day before departure, 10:00 for AC classes

Fare

Base fare plus a last-minute premium

Who can book

Any passenger, up to 4 per booking

Proof on board

The ID entered at booking

Refund

Confirmed tickets not refundable

Booking opens

With the general quota

Fare

Base class fare

Who can book

Women travelling alone or with children under 12

Proof on board

Any photo ID

Refund

By the refund slabs below

Booking opens

With the general quota

Fare

Base fare with the senior concession

Who can book

Men 60 and over, women 58 and over

Proof on board

ID showing date of birth

Refund

By the refund slabs below

03 Waitlist and status

## Waitlist that moves to RAC and then confirmed

When a class is full, the sale does not stop. The passenger buys a waitlisted ticket, every cancellation moves the queue up, and the chart prepared before departure turns the status into a coach and berth or an automatic refund.

PNR status

Move through the life of this booking

The class is full, so the ticket is sold as WL 12 and WL 13.

Seven passengers ahead cancel, so the tickets are now WL 5 and WL 6.

Both passengers reach RAC and may board, sharing a side lower berth.

Final cancellations clear the RAC list: coach B2, berths 34 and 36.

| Passenger | Booking status | Current status |
| Passenger 1 | WL 12 | WL 12 |
| Passenger 2 | WL 13 | WL 13 |

Chart prepared 4 h before departure, at 13:40 Chart not prepared yet

- Strict queue order A freed berth goes to RAC first, then to the top of the waitlist, in the order tickets were sold. Nobody jumps the queue from the admin.
- RAC is a seat, not a promise Set how many side berths each class shares. RAC passengers can board, and they move into a full berth as soon as one is freed.
- Chart preparation per train Choose when the chart is prepared, for example four hours before departure, with a second chart close to departure for last cancellations.
- Every change, told Each status change is emailed and shown in the passenger's account and on a public PNR status page. Tickets still waitlisted after the chart are cancelled and refunded automatically.

04 Passengers and berths

## Berth preference and passenger details in one form

Each passenger is entered once, with the details the railway checks on board. A berth preference is requested, not promised: it is allotted when the berth is free, and the form explains that before payment.

Passenger details

Coach B2 · bay 5 · berths 33 to 40

Berth preference

- Full name Ravi Kumar Age 42 Gender Male Berth preference Lower ID document National ID ID number XXXX XXXX 4821
- Full name Meera Kumar Age 39 Gender Female Berth preference Upper ID document Passport ID number XXXXX6307
- Book only if confirmed berths are allotted
- Book only if both berths are in the same coach
- Give lower berths to senior passengers first
- Preferences per passenger Lower, middle, upper, side lower or side upper, or no preference. The allotment engine honours them in order while berths are free.
- Lower berths for those who need them Senior citizens and women travelling alone can be given lower berths first, by a rule you switch on per class.
- Children and infants Set the age below which a child travels without a berth at a reduced fare, and the age at which a full fare and berth apply.
- ID kept with the ticket The ID type and number are stored per passenger and printed masked on the e-ticket, so staff on board can check them.

05 PNR e-ticket and refunds

## A PNR ticket with coach and berth, and refunds by the hour

Payment issues the e-ticket at once: a ten-digit PNR, the train, the coach and berth of every passenger and a QR code. If plans change, the refund is worked out from the time left before departure, with the slabs you set.

| Passenger | Coach | Berth | Status |
| Ravi Kumar Male · 42 | B2 | 34 Lower | CNF |
| Meera Kumar Female · 39 | B2 | 36 Lower | CNF |

Cancellation and refund

30 hours before departure

Ticket fare

–

Cancellation charge

−–

Refund to the passenger

–

Slab applied

- 48 hours or more Flat charge per passenger
- 12 to 48 hours 25% of the fare, at least the flat charge
- 4 to 12 hours 50% of the fare
- After the chart No refund for confirmed tickets

An example rule set. You set the slabs per class and quota. Waitlisted tickets that are never confirmed are refunded in full, less a small clerk fee.

06 Agents and suppliers

## A train booking system for travel agents

Agents book the same trains from a B2B portal, pay from a prepaid wallet and earn a commission per class. Behind them, the inventory can be your own trains, a partner operator's or a connected rail feed.

Set up agents and sub-agents in the [B2B travel portal](https://phptravels.com/b2b-travel-portal), fund them through the [agent wallet](https://phptravels.com/b2b-agent-wallet) and see every ticket, refund and commission in one ledger. Connected rail suppliers are listed on [the integrations page](https://phptravels.com/integrations).

- 01 Your own trains Load the services you run with their coaches, classes, quotas, timetables and fares.
- 02 Partner operators Operators manage their own trains and seat counts from their account, sold under your markups.
- 03 Connected rail feeds With the source code, your developers can connect a railway's reservation system or a rail supplier's API.

Agent wallet

- Ticket PNR 4821637905, 2 passengers −–
- Commission, AC 3-tier +–
- Refund PNR 4821550312 +–
- Wallet top-up by bank transfer +–

Commission per class

Rail suppliers in the live feed

- HKINT

Supplier connections change as new ones are added in the admin, so this list is loaded live.

FAQ

## Train ticket booking software questions

What railways, operators and travel agencies ask before selling train tickets online.

Software that lets passengers and agents search trains between two stations, see live availability per class and quota, choose berths, pay and receive a PNR e-ticket, while the operator or agency manages trains, coaches, fares, quotas, the waitlist and refunds from one admin.

Yes. Each train has its own coaches and classes, such as sleeper, AC 3-tier, AC 2-tier, first AC and chair car, each with its own berth or seat layout, fare and availability count.

Yes. You set quota counts per class of each train, with an opening time, a fare rule, eligibility and the ID required. Quota seats still free when the chart is prepared go back to the general pool.

When a class is full, tickets are sold as waitlisted. Cancellations move them up to RAC, which allows travel on a shared side berth, and then to confirmed. Tickets still waitlisted after the chart is prepared are cancelled and refunded automatically.

By slabs you define per class and quota, based on the hours left before departure, for example a flat charge two days out, a percentage closer to departure and no refund after the chart. The refund is credited to the card or the agent wallet.

The trains module is railway reservation software for national networks: reserved classes, berths, quotas, waitlist and PNR tickets. The rail module sells international journeys and rail passes, such as point-to-point tickets across Europe, through connected rail suppliers.

Yes. Agents book in the B2B portal with their own commissions per class, pay from a prepaid wallet and receive refunds back into it, all from the same installation as your public website.

Yes. Every plan includes the full source code under a commercial licence and you host it yourself, so your developers can change the rules, the screens or connect a railway's own system.

Keep exploring

## More from the platform

Reviewed by [Qasim Hussain](https://phptravels.com/author/qasim-hussain), Founder & CEO, PHPTRAVELS · Updated October 12, 2026

- [Transport API Transfers, rail, bus and ferry APIs for door-to-door trips](https://phptravels.com/transport-api)
- [Rail Rail networks and routes](https://phptravels.com/features/rail)
- [Buses Coach and intercity routes](https://phptravels.com/features/buses)
- [B2B wholesalers Distribute to sub-agents](https://phptravels.com/b2b-travel-portal)
- [Agent wallets Credit limits and top-ups](https://phptravels.com/b2b-agent-wallet)
- [Live demo](https://phptravels.com/demo)
