XML Samples: Rail

Download all samples

Both the request and response XML are included in the text file link.

Request Description Sample

Search

Return schedules and/or fares for a specific journey plan. The default search is 'fastest journey' for 'all classes'.

Example

Book

Return a Universal Record (UR) with the rail reservation (PNR).

Example

Exchange quote

Rail bookings cannot be canceled because they are ticketed immediately after booking. Therefore, rail bookings must be refunded or exchanged.

The response contains information about the rail booking and exchange.

Example of allowed exchange

Example of exchange not allowed

Refund quote

Request a refund quote. The response includes the refund amount and any cancellation fees that may apply.

Example

Refund

After a refund quote, send a refund request to process the refund.

Example