Ticket Request
Method : POST
URL : /api/rail/search/ticket
Core Block
| Attribute | Type | Required | Description |
|---|---|---|---|
| adults | Integer | Required | No of adults |
| children | Integer | Required | No of children |
| senior_citizens | Integer | Required | No of seniors |
| children_ages | Array(Integer) | Required | Children ages, pass [] if no children |
| round_trip | Boolean | Required | Indicates if the trip is a round trip or forward |
| departure_date | String | Required | Date of departure in "YYYY-MM-DD" format, e.g., "2024-06-29" |
| departure_time | String | Required | Time of departure in "HH:MM" format (24-hour), e.g., "13:30" |
| return_date | String | Required if round_trip is true | Date of return in "YYYY-MM-DD" format, e.g., "2024-06-29" |
| return_time | String | Required if round_trip is true | Time of return in "HH:MM" format (24-hour), e.g., "13:30", "02:55" |
| destination_code | String | Required | Destination code |
| origin_code | String | Required | Origin code |
| client_nationality | String | Required | Nationality - use Two Letter code like "IN" India |
| cutoff_time | Integer | Required | Cutoff time for receiving a response in milliseconds, e.g., 30000. |
| currency | String | Required | Currency is the three-letter ISO currency code, ex: EUR, INR, USD |
Request Sample Forward Ticket
{
"adults": 2,
"children": 0,
"senior_citizens": 0,
"children_ages": [],
"departure_date": "2024-08-24",
"departure_time": "09:00",
"destination_code": "R_008",
"origin_code": "R_007",
"round_trip": false,
"client_nationality": "IN",
"cutoff_time": 30000,
"currency": "INR"
}
Request Sample Forward & Return Tickets (Round Trip)
{
"adults": 2,
"children": 1,
"senior_citizens": 0,
"children_ages": [8],
"origin_code": "R_007",
"destination_code": "R_008",
"departure_date": "2024-08-24",
"departure_time": "09:00",
"return_date": "2024-08-24",
"return_time": "13:00",
"round_trip": true,
"client_nationality": "IN",
"cutoff_time": 30000,
"currency": "INR"
}