Download OpenAPI specification:
Train API endpoints converted from Postman collection.
Search for train tickets based on journey type (OneWay/RoundTrip), departure/arrival stations, and traveler details.
| journey_type
required
|
string
Enum: "OneWay"
"RoundTrip"
Type of the journey. |
|
required
|
Array of
objects
Travel segments containing station codes and dates. |
| travelers_adult
required
|
integer
Number of adult passengers. |
| travelers_child |
integer
Number of child passengers. |
| travelers_infants |
integer
Number of infant passengers. |
| supplier_uid |
string
Unique ID of the train supplier. Use 'all' for all available suppliers or specific ID like 'T1MO00001' (Haramain). |
| partner_id |
string
Partner identifier, can be left blank. |
| short_ref |
string
Optional reference for stream search tracking. |
|
language
required
|
string
Response language code. |
| guest_nationality
required
|
string
ISO 2-letter country code of the guests. |
{- "journey_type": "OneWay",
- "segment": [
- {
- "departure_code": "MKX",
- "arrival_code": "JXD",
- "outbound_date": "2026-04-19",
- "return_date": "2026-04-25"
}
], - "travelers_adult": 1,
- "travelers_child": 0,
- "travelers_infants": 0,
- "supplier_uid": "all",
- "partner_id": "",
- "short_ref": "xxxx111",
- "language": "en",
- "guest_nationality": "BD"
}
{- "status": "success",
- "train_data": {
- "Context": {
- "TimeStamp": 1752553734924,
- "TransactionId": "60a6e7db6301c17a",
- "StatusCode": 200,
- "Message": "Success"
}, - "Response": {
- "SearchKey": "O:MKX:DMX:25:09:20",
- "TypeOfJourney": "Oneway",
- "DepartureStationCity": "Makkah",
- "ArrivaleStationCity": "Madinah",
- "TrainInfo": [
- {
- "TrainKey": "MKX_DMX_2151_2025-09-20T08:00:00",
- "Supplier": "HARAMAIN",
- "Provider": "Go7",
- "DepartureStationCode": "MKX",
- "ArrivalStationCode": "DMX",
- "TotalDuration": 180,
- "Segments": [
- {
- "TrainName": "HHR",
- "TrainNo": "2151",
- "DepartureStation": {
- "Code": "MKX",
- "Name": "Makkah Al-Mukarramah",
- "City": "Makkah"
}, - "ArrivalStation": {
- "Code": "DMX",
- "Name": "Madinah Al-Munawarah",
- "City": "Madinah"
}, - "DepartureDate": "2025-09-20T08:00:00",
- "ArrivalDate": "2025-09-20T11:00:00",
- "LayoverTime": 0,
- "Duration": 180,
- "NextDayArrival": false
}
], - "Fare": [
- {
- "FareClass": "C",
- "FareClassName": "Business",
- "AvailableSeats": 109,
- "SellingPrice": 202.9861803,
- "SellingCurrency": "USD",
- "AdultSellingPrice": 101.49309015,
- "ChildSellingPrice": 0,
- "InfantSellingPrice": 0,
- "IsRefundable": false
}, - {
- "FareClass": "Y",
- "FareClassName": "Economy",
- "AvailableSeats": 304,
- "SellingPrice": 91.987695,
- "SellingCurrency": "USD",
- "AdultSellingPrice": 45.9938475,
- "ChildSellingPrice": 0,
- "InfantSellingPrice": 0,
- "IsRefundable": false
}
], - "RedEyeTrain": false
}, - {
- "TrainKey": "MKX_DMX_9090_2025-09-20T09:35:00",
- "Supplier": "HARAMAIN",
- "Provider": "Go7",
- "DepartureStationCode": "MKX",
- "ArrivalStationCode": "DMX",
- "TotalDuration": 189,
- "Segments": [
- {
- "TrainName": "HHR",
- "TrainNo": "9090",
- "DepartureStation": {
- "Code": "MKX",
- "Name": "Makkah Al-Mukarramah",
- "City": "Makkah"
}, - "ArrivalStation": {
- "Code": "DMX",
- "Name": "Madinah Al-Munawarah",
- "City": "Madinah"
}, - "DepartureDate": "2025-09-20T09:35:00",
- "ArrivalDate": "2025-09-20T12:44:00",
- "LayoverTime": 0,
- "Duration": 189,
- "NextDayArrival": false
}
], - "Fare": [
- {
- "FareClass": "C",
- "FareClassName": "Business",
- "AvailableSeats": 12,
- "SellingPrice": 202.9861803,
- "SellingCurrency": "USD",
- "AdultSellingPrice": 101.49309015,
- "ChildSellingPrice": 0,
- "InfantSellingPrice": 0,
- "IsRefundable": false
}, - {
- "FareClass": "Y",
- "FareClassName": "Economy",
- "AvailableSeats": 25,
- "SellingPrice": 91.987695,
- "SellingCurrency": "USD",
- "AdultSellingPrice": 45.9938475,
- "ChildSellingPrice": 0,
- "InfantSellingPrice": 0,
- "IsRefundable": false
}
], - "RedEyeTrain": false
}, - {
- "TrainKey": "MKX_DMX_1120_2025-09-20T12:00:00",
- "Supplier": "HARAMAIN",
- "Provider": "Go7",
- "DepartureStationCode": "MKX",
- "ArrivalStationCode": "DMX",
- "TotalDuration": 140,
- "Segments": [
- {
- "TrainName": "HHR",
- "TrainNo": "1120",
- "DepartureStation": {
- "Code": "MKX",
- "Name": "Makkah Al-Mukarramah",
- "City": "Makkah"
}, - "ArrivalStation": {
- "Code": "DMX",
- "Name": "Madinah Al-Munawarah",
- "City": "Madinah"
}, - "DepartureDate": "2025-09-20T12:00:00",
- "ArrivalDate": "2025-09-20T14:20:00",
- "LayoverTime": 0,
- "Duration": 140,
- "NextDayArrival": false
}
], - "Fare": [
- {
- "FareClass": "C",
- "FareClassName": "Business",
- "AvailableSeats": 77,
- "SellingPrice": 202.9861803,
- "SellingCurrency": "USD",
- "AdultSellingPrice": 101.49309015,
- "ChildSellingPrice": 0,
- "InfantSellingPrice": 0,
- "IsRefundable": false
}, - {
- "FareClass": "Y",
- "FareClassName": "Economy",
- "AvailableSeats": 183,
- "SellingPrice": 91.987695,
- "SellingCurrency": "USD",
- "AdultSellingPrice": 45.9938475,
- "ChildSellingPrice": 0,
- "InfantSellingPrice": 0,
- "IsRefundable": false
}
], - "RedEyeTrain": false
}, - {
- "TrainKey": "MKX_DMX_1122_2025-09-20T12:20:00",
- "Supplier": "HARAMAIN",
- "Provider": "Go7",
- "DepartureStationCode": "MKX",
- "ArrivalStationCode": "DMX",
- "TotalDuration": 140,
- "Segments": [
- {
- "TrainName": "HHR",
- "TrainNo": "1122",
- "DepartureStation": {
- "Code": "MKX",
- "Name": "Makkah Al-Mukarramah",
- "City": "Makkah"
}, - "ArrivalStation": {
- "Code": "DMX",
- "Name": "Madinah Al-Munawarah",
- "City": "Madinah"
}, - "DepartureDate": "2025-09-20T12:20:00",
- "ArrivalDate": "2025-09-20T14:40:00",
- "LayoverTime": 0,
- "Duration": 140,
- "NextDayArrival": false
}
], - "Fare": [
- {
- "FareClass": "C",
- "FareClassName": "Business",
- "AvailableSeats": 77,
- "SellingPrice": 202.9861803,
- "SellingCurrency": "USD",
- "AdultSellingPrice": 101.49309015,
- "ChildSellingPrice": 0,
- "InfantSellingPrice": 0,
- "IsRefundable": false
}, - {
- "FareClass": "Y",
- "FareClassName": "Economy",
- "AvailableSeats": 244,
- "SellingPrice": 91.987695,
- "SellingCurrency": "USD",
- "AdultSellingPrice": 45.9938475,
- "ChildSellingPrice": 0,
- "InfantSellingPrice": 0,
- "IsRefundable": false
}
], - "RedEyeTrain": false
}, - {
- "TrainKey": "MKX_DMX_1130_2025-09-20T13:00:00",
- "Supplier": "HARAMAIN",
- "Provider": "Go7",
- "DepartureStationCode": "MKX",
- "ArrivalStationCode": "DMX",
- "TotalDuration": 140,
- "Segments": [
- {
- "TrainName": "HHR",
- "TrainNo": "1130",
- "DepartureStation": {
- "Code": "MKX",
- "Name": "Makkah Al-Mukarramah",
- "City": "Makkah"
}, - "ArrivalStation": {
- "Code": "DMX",
- "Name": "Madinah Al-Munawarah",
- "City": "Madinah"
}, - "DepartureDate": "2025-09-20T13:00:00",
- "ArrivalDate": "2025-09-20T15:20:00",
- "LayoverTime": 0,
- "Duration": 140,
- "NextDayArrival": false
}
], - "Fare": [
- {
- "FareClass": "C",
- "FareClassName": "Business",
- "AvailableSeats": 109,
- "SellingPrice": 202.9861803,
- "SellingCurrency": "USD",
- "AdultSellingPrice": 101.49309015,
- "ChildSellingPrice": 0,
- "InfantSellingPrice": 0,
- "IsRefundable": false
}, - {
- "FareClass": "Y",
- "FareClassName": "Economy",
- "AvailableSeats": 304,
- "SellingPrice": 91.987695,
- "SellingCurrency": "USD",
- "AdultSellingPrice": 45.9938475,
- "ChildSellingPrice": 0,
- "InfantSellingPrice": 0,
- "IsRefundable": false
}
], - "RedEyeTrain": true
}
], - "Trains": [
- "MKX_DMX_2151_2025-09-20T08:00:00",
- "MKX_DMX_9090_2025-09-20T09:35:00",
- "MKX_DMX_1120_2025-09-20T12:00:00",
- "MKX_DMX_1122_2025-09-20T12:20:00",
- "MKX_DMX_1130_2025-09-20T13:00:00",
- "MKX_DMX_1132_2025-09-20T13:20:00",
- "MKX_DMX_3140_2025-09-20T14:00:00",
- "MKX_DMX_0142_2025-09-20T14:20:00",
- "MKX_DMX_3150_2025-09-20T15:00:00",
- "MKX_DMX_1152_2025-09-20T15:20:00",
- "MKX_DMX_3160_2025-09-20T16:00:00",
- "MKX_DMX_0162_2025-09-20T16:20:00",
- "MKX_DMX_1170_2025-09-20T17:00:00",
- "MKX_DMX_9170_2025-09-20T17:35:00",
- "MKX_DMX_1180_2025-09-20T18:00:00",
- "MKX_DMX_0190_2025-09-20T19:00:00",
- "MKX_DMX_1192_2025-09-20T19:20:00",
- "MKX_DMX_1200_2025-09-20T20:00:00",
- "MKX_DMX_0001_2025-09-20T23:10:00"
], - "Filters": {
- "MinPrice": 91.987695,
- "MaxPrice": 202.9861803,
- "MinDuration": 100,
- "MaxDuration": 189,
- "DepartureTimeSlots": [
- {
- "Id": 2,
- "Name": "Morning"
}, - {
- "Id": 3,
- "Name": "Afternoon"
}, - {
- "Id": 4,
- "Name": "Night"
}
], - "ArrivalTimeSlots": [
- {
- "Id": 2,
- "Name": "Morning"
}, - {
- "Id": 3,
- "Name": "Afternoon"
}, - {
- "Id": 4,
- "Name": "Night"
}, - {
- "Id": 1,
- "Name": "EarlyMorning"
}
]
}
}
}
}
Returns availability and pricing for a single train using the tracking ID and train ID obtained from the search results.
|
tracking_id
required
|
string
The unique tracking ID returned from the /train/search response. |
|
train_id
required
|
string
The unique identifier for the specific train. |
{- "tracking_id": "11774948590VTY1",
- "train_id": "JXD_DMX_0080_2026-04-05T08:32:00"
}
{- "status": "success",
- "tracking_id": "311775724441OH91",
- "train_id": "MKX_JXD_0080_2026-04-19T08:00:00",
- "search_parameter": {
- "tracking_id": "311775724441OH91",
- "train_id": "MKX_JXD_0080_2026-04-19T08:00:00",
- "travelers_adult": 1,
- "travelers_child": 0,
- "travelers_infants": 0
}, - "data": {
- "train_supplier": "Haramine",
- "start_from_price": 1881.77,
- "sell_currency": "BDT",
- "train_info": {
- "train_key": "MKX_JXD_0080_2026-04-19T08:00:00",
- "provider": "Go7",
- "supplier": "HHR_B2C",
- "route": [
- {
- "train_name": "HHR",
- "train_no": "0080",
- "departure_station": {
- "code": "MKX",
- "name": "Makkah Al-Mukarramah",
- "city": "Makkah"
}, - "arrival_station": {
- "code": "JXD",
- "name": "Al-Sulimaniyah",
- "city": "Jeddah"
}, - "departure_date": "2026-04-19T08:00:00",
- "arrival_date": "2026-04-19T08:28:00",
- "layover_time": 0,
- "duration": 28,
- "next_day_arrival": false
}
], - "duration_minutes": 28,
- "fare_options": [
- {
- "class_code": "C",
- "class_name": "Business",
- "price": {
- "promo_tag": null,
- "purchase": {
- "total": {
- "currency": "BDT",
- "amount": 4215.17,
- "before_discount": 4215.17,
- "discount": 0,
- "point": 0
}, - "price_breakdown": {
- "currency": "BDT",
- "total": 4215.17,
- "base_fare": 4215.17,
- "tax": 0,
- "extra_person_fee": 0,
- "supplier_sales_comission": null,
- "payable_at_property": [ ]
}
}, - "sell": {
- "total": {
- "currency": "BDT",
- "amount": 4215.17,
- "gross_price": 4215.17,
- "platform_fees_or_extra_tax": 0,
- "point": 0
}, - "price_breakdown": {
- "currency": "BDT",
- "total": 4215.17,
- "base_fare": 4215.17,
- "tax": 0,
- "platform_fees_or_extra_tax": 0,
- "extra_person_fee": 0,
- "supplier_sales_comission": null,
- "payable_at_property": [ ]
}
}, - "fmg": {
- "total": {
- "currency": "SAR",
- "amount": 128.8
}, - "price_breakdown": {
- "currency": "SAR",
- "total": 128.8,
- "base_fare": 128.8,
- "tax": 0,
- "extra_person_fee": 0,
- "supplier_sales_comission": null,
- "base_fare_fmg_charge": 0,
- "membership_discount_percentige": 0,
- "membership_discount_amount": 0,
- "final_base_fare_fmg_charge": 0,
- "payable_at_property": [ ]
}
}, - "supplier": {
- "total": {
- "currency": "SAR",
- "amount": 128.8
}, - "price_breakdown": {
- "currency": "SAR",
- "total": 128.8,
- "base_fare": 128.8,
- "tax": 0,
- "sales_tax": 0,
- "property_fees": 0,
- "surcharges": 0,
- "service_charge": 0,
- "extra_person_fee": 0,
- "supplier_sales_comission": null,
- "payable_at_property": [ ]
}
}
}, - "currency": "SAR",
- "seats": 28,
- "is_refundable": true,
- "cancellation_policy": {
- "hold_possible": "yes",
- "summery": "partially refundable",
- "auto_cancel": "2026-04-09T14:47:28",
- "auto_cancel_timestamp": 1775724448,
- "policy_breakdown": [
- {
- "from": "2026-04-09T14:47:28",
- "from_timestamp": 1775724448,
- "to": "2026-04-18T08:00:00",
- "to_timestamp": 1776477600,
- "currency": "BDT",
- "amount": 421.52,
- "partner": {
- "currency": "BDT",
- "amount": 421.52
}, - "fmg": {
- "currency": "SAR",
- "amount": 12.88
}, - "supplier": {
- "currency": "SAR",
- "amount": 12.88
}
}, - {
- "from": "2026-04-18T08:00:00",
- "from_timestamp": 1776477600,
- "to": "2026-04-19T07:40:00",
- "to_timestamp": 1776562800,
- "currency": "BDT",
- "amount": 1896.83,
- "partner": {
- "currency": "BDT",
- "amount": 1896.83
}, - "fmg": {
- "currency": "SAR",
- "amount": 57.96
}, - "supplier": {
- "currency": "SAR",
- "amount": 57.96
}
}, - {
- "from": "2026-04-19T07:40:00",
- "from_timestamp": 1776562800,
- "to": "2026-04-19T08:00:00",
- "to_timestamp": 1776564000,
- "currency": "BDT",
- "amount": 4215.17,
- "partner": {
- "currency": "BDT",
- "amount": 4215.17
}, - "fmg": {
- "currency": "SAR",
- "amount": 128.8
}, - "supplier": {
- "currency": "SAR",
- "amount": 128.8
}
}
]
}
}, - {
- "class_code": "Y",
- "class_name": "Economy",
- "price": {
- "promo_tag": null,
- "purchase": {
- "total": {
- "currency": "BDT",
- "amount": 1881.77,
- "before_discount": 1881.77,
- "discount": 0,
- "point": 0
}, - "price_breakdown": {
- "currency": "BDT",
- "total": 1881.77,
- "base_fare": 1881.77,
- "tax": 0,
- "extra_person_fee": 0,
- "supplier_sales_comission": null,
- "payable_at_property": [ ]
}
}, - "sell": {
- "total": {
- "currency": "BDT",
- "amount": 1881.77,
- "gross_price": 1881.77,
- "platform_fees_or_extra_tax": 0,
- "point": 0
}, - "price_breakdown": {
- "currency": "BDT",
- "total": 1881.77,
- "base_fare": 1881.77,
- "tax": 0,
- "platform_fees_or_extra_tax": 0,
- "extra_person_fee": 0,
- "supplier_sales_comission": null,
- "payable_at_property": [ ]
}
}, - "fmg": {
- "total": {
- "currency": "SAR",
- "amount": 57.5
}, - "price_breakdown": {
- "currency": "SAR",
- "total": 57.5,
- "base_fare": 57.5,
- "tax": 0,
- "extra_person_fee": 0,
- "supplier_sales_comission": null,
- "base_fare_fmg_charge": 0,
- "membership_discount_percentige": 0,
- "membership_discount_amount": 0,
- "final_base_fare_fmg_charge": 0,
- "payable_at_property": [ ]
}
}, - "supplier": {
- "total": {
- "currency": "SAR",
- "amount": 57.5
}, - "price_breakdown": {
- "currency": "SAR",
- "total": 57.5,
- "base_fare": 57.5,
- "tax": 0,
- "sales_tax": 0,
- "property_fees": 0,
- "surcharges": 0,
- "service_charge": 0,
- "extra_person_fee": 0,
- "supplier_sales_comission": null,
- "payable_at_property": [ ]
}
}
}, - "currency": "SAR",
- "seats": 110,
- "is_refundable": true,
- "cancellation_policy": {
- "hold_possible": "yes",
- "summery": "partially refundable",
- "auto_cancel": "2026-04-09T14:47:28",
- "auto_cancel_timestamp": 1775724448,
- "policy_breakdown": [
- {
- "from": "2026-04-09T14:47:28",
- "from_timestamp": 1775724448,
- "to": "2026-04-18T08:00:00",
- "to_timestamp": 1776477600,
- "currency": "BDT",
- "amount": 564.53,
- "partner": {
- "currency": "BDT",
- "amount": 564.53
}, - "fmg": {
- "currency": "SAR",
- "amount": 17.25
}, - "supplier": {
- "currency": "SAR",
- "amount": 17.25
}
}, - {
- "from": "2026-04-18T08:00:00",
- "from_timestamp": 1776477600,
- "to": "2026-04-19T07:40:00",
- "to_timestamp": 1776562800,
- "currency": "BDT",
- "amount": 1129.06,
- "partner": {
- "currency": "BDT",
- "amount": 1129.06
}, - "fmg": {
- "currency": "SAR",
- "amount": 34.5
}, - "supplier": {
- "currency": "SAR",
- "amount": 34.5
}
}, - {
- "from": "2026-04-19T07:40:00",
- "from_timestamp": 1776562800,
- "to": "2026-04-19T08:00:00",
- "to_timestamp": 1776564000,
- "currency": "BDT",
- "amount": 1881.77,
- "partner": {
- "currency": "BDT",
- "amount": 1881.77
}, - "fmg": {
- "currency": "SAR",
- "amount": 57.5
}, - "supplier": {
- "currency": "SAR",
- "amount": 57.5
}
}
]
}
}
], - "red_eye": false
}
}
}
Validates the selected train, fare class, and passenger nationality before proceeding to booking. Supports both One-Way and Round-Trip validation.
|
tracking_id
required
|
string
The unique tracking ID returned from the search results. |
| guest_nationality
required
|
string
ISO country code of the passenger. |
| outbound_train_id
required
|
string
The unique identifier for the outbound train. |
| outbound_fare_class
required
|
string
The class of service for the outbound journey (e.g., Y for Economy, B for Business). |
| return_train_id |
string
The unique identifier for the return train (Required for RoundTrip). |
| return_fare_class |
string
The class of service for the return journey (Required for RoundTrip). |
{- "tracking_id": "3117757287332YW1",
- "guest_nationality": "BD",
- "outbound_train_id": "MKX_JXD_0080_2026-04-19T08:00:00",
- "outbound_fare_class": "Y"
}
{- "status": "success",
- "tracking_id": "3117757287332YW1",
- "booking_tracking_id": "311177572884426194QMRVJ",
- "supplier_tracking_id": 1775728847222,
- "sold_out": false,
- "price_change": false,
- "search_price": {
- "currency": "BDT",
- "amount": 1881.83
}, - "validation_price": {
- "currency": "BDT",
- "amount": 1881.83
}, - "session_expire": {
- "timestamp": 1775729758,
- "datetime": "2026-04-09 16:15:58 +06",
- "message": "The booking process should be completed by no later than 2026-04-09 16:15:58 +06."
}, - "search_parameter": {
- "journey_type": "OneWay",
- "segment": [
- {
- "departure_code": "MKX",
- "arrival_code": "JXD",
- "outbound_date": "2026-04-19"
}
], - "travelers_adult": 1,
- "travelers_child": 0,
- "travelers_infants": 0,
- "supplier_uid": "all",
- "partner_id": "",
- "short_ref": "xxxx111",
- "language": "en",
- "guest_nationality": "BD",
- "tracking_id": "3117757287332YW1"
}, - "data": {
- "summery": {
- "tracking_id": "3117757287332YW1",
- "supplier_tracking_id": 1775728847222,
- "service_type": "TRAIN",
- "language": "en",
- "market": "SA",
- "departureDate": "2026-04-19T08:00:00",
- "arrivalDate": "2026-04-19T08:28:00",
- "search_key": "O:MKX:JXD:26:04:19",
- "train_key": "MKX_JXD_0080_2026-04-19T08:00:00",
- "trip_type": "O",
- "booking_status": "NEW",
- "provider_name": "HARAMAIN",
- "short_content": "Haramain Train: Makkah-Jeddah",
- "guest_nationality": "BD",
- "country_of_residence": "BD",
- "retry_count": 0,
- "group_booking": false
}, - "route": [
- {
- "departure_station_code": "MKX",
- "arrival_station_code": "JXD",
- "total_duration": 28,
- "segments": [
- {
- "train_name": "HHR",
- "train_number": "0080",
- "departure_station_code": "MKX",
- "arrival_station_code": "JXD",
- "departure_date": "2026-04-19T08:00:00",
- "arrival_date": "2026-04-19T08:28:00",
- "fare_class": "Y",
- "layover_time": 0,
- "duration": 28,
- "content": {
- "departure_station_name": "Makkah Al-Mukarramah",
- "arrival_station_name": "Al-Sulimaniyah",
- "departure_station_city": "Makkah",
- "arrival_station_city": "Jeddah",
- "fare_class_name": "Economy"
}, - "fare_basis_code": "NOTCANCEL"
}
], - "total_supplier_price": 57.5,
- "total_selling_price": 57.5
}
], - "price_details": {
- "promo_tag": null,
- "purchase": {
- "total": {
- "currency": "BDT",
- "amount": 1881.83,
- "before_discount": 1881.83,
- "discount": 0,
- "point": 0
}, - "price_breakdown": {
- "currency": "BDT",
- "total": 1881.83,
- "base_fare": 1636.37,
- "tax": 245.46,
- "extra_person_fee": 0,
- "supplier_sales_comission": null,
- "payable_at_property": [ ]
}
}, - "sell": {
- "total": {
- "currency": "BDT",
- "amount": 1881.83,
- "gross_price": 1881.83,
- "platform_fees_or_extra_tax": 0,
- "point": 0
}, - "price_breakdown": {
- "currency": "BDT",
- "total": 1881.83,
- "base_fare": 1636.37,
- "tax": 245.46,
- "platform_fees_or_extra_tax": 0,
- "extra_person_fee": 0,
- "supplier_sales_comission": null,
- "payable_at_property": [ ]
}
}, - "fmg": {
- "total": {
- "currency": "SAR",
- "amount": 57.5
}, - "price_breakdown": {
- "currency": "SAR",
- "total": 57.5,
- "base_fare": 50,
- "tax": 7.5,
- "extra_person_fee": 0,
- "supplier_sales_comission": null,
- "base_fare_fmg_charge": 0,
- "membership_discount_percentige": 0,
- "membership_discount_amount": 0,
- "final_base_fare_fmg_charge": 0,
- "payable_at_property": [ ]
}
}, - "supplier": {
- "total": {
- "currency": "SAR",
- "amount": 57.5
}, - "price_breakdown": {
- "currency": "SAR",
- "total": 57.5,
- "base_fare": 50,
- "tax": 7.5,
- "sales_tax": 0,
- "property_fees": 0,
- "surcharges": 0,
- "service_charge": 0,
- "extra_person_fee": 0,
- "supplier_sales_comission": null,
- "payable_at_property": [ ]
}
}
}, - "cancellation_policy": {
- "hold_possible": "yes",
- "summery": "partially refundable",
- "auto_cancel": "2026-04-09T16:00:58",
- "auto_cancel_timestamp": 1775728858,
- "policy_breakdown": [
- {
- "from": "2026-04-09T16:00:58",
- "from_timestamp": 1775728858,
- "to": "2026-04-18T08:00:00",
- "to_timestamp": 1776477600,
- "currency": "BDT",
- "amount": 564.55,
- "partner": {
- "currency": "BDT",
- "amount": 564.55
}, - "fmg": {
- "currency": "SAR",
- "amount": 17.25
}, - "supplier": {
- "currency": "SAR",
- "amount": 17.25
}
}, - {
- "from": "2026-04-18T08:00:00",
- "from_timestamp": 1776477600,
- "to": "2026-04-19T07:40:00",
- "to_timestamp": 1776562800,
- "currency": "BDT",
- "amount": 1129.1,
- "partner": {
- "currency": "BDT",
- "amount": 1129.1
}, - "fmg": {
- "currency": "SAR",
- "amount": 34.5
}, - "supplier": {
- "currency": "SAR",
- "amount": 34.5
}
}, - {
- "from": "2026-04-19T07:40:00",
- "from_timestamp": 1776562800,
- "to": "2026-04-19T08:00:00",
- "to_timestamp": 1776564000,
- "currency": "BDT",
- "amount": 1881.83,
- "partner": {
- "currency": "BDT",
- "amount": 1881.83
}, - "fmg": {
- "currency": "SAR",
- "amount": 57.5
}, - "supplier": {
- "currency": "SAR",
- "amount": 57.5
}
}
]
}, - "occupancies": [
- {
- "adults": 1,
- "children": 0,
- "infants": 0
}
], - "buyer_info": {
- "user_id": "klidwga0lmbj50shmv64yvkee7qzu6yb",
- "agency_id": "67cfdb887b7c46fe3c03ca5f"
}, - "travelers": null
}
}
Retrieves detailed validation information using the tracking ID and member ID.
|
tracking_id
required
|
string
The unique tracking ID returned from previous steps. |
| member_id |
string
The unique ID of the logged-in member/user. |
{- "tracking_id": "311177572884426194QMRVJ",
- "member_id": "1"
}
{- "status": "success",
- "tracking_id": "3117757287332YW1",
- "booking_tracking_id": "311177572884426194QMRVJ",
- "supplier_tracking_id": 1775728847222,
- "sold_out": false,
- "price_change": false,
- "search_price": {
- "currency": "BDT",
- "amount": 1881.83
}, - "validation_price": {
- "currency": "BDT",
- "amount": 1881.83
}, - "session_expire": {
- "timestamp": 1775729758,
- "datetime": "2026-04-09 16:15:58 +06",
- "message": "The booking process should be completed by no later than 2026-04-09 16:15:58 +06."
}, - "search_parameter": {
- "journey_type": "OneWay",
- "segment": [
- {
- "departure_code": "MKX",
- "arrival_code": "JXD",
- "outbound_date": "2026-04-19"
}
], - "travelers_adult": 1,
- "travelers_child": 0,
- "travelers_infants": 0,
- "supplier_uid": "all",
- "partner_id": "",
- "short_ref": "xxxx111",
- "language": "en",
- "guest_nationality": "BD",
- "tracking_id": "3117757287332YW1"
}, - "data": {
- "summery": {
- "tracking_id": "3117757287332YW1",
- "supplier_tracking_id": 1775728847222,
- "service_type": "TRAIN",
- "language": "en",
- "market": "SA",
- "departureDate": "2026-04-19T08:00:00",
- "arrivalDate": "2026-04-19T08:28:00",
- "search_key": "O:MKX:JXD:26:04:19",
- "train_key": "MKX_JXD_0080_2026-04-19T08:00:00",
- "trip_type": "O",
- "booking_status": "NEW",
- "provider_name": "HARAMAIN",
- "short_content": "Haramain Train: Makkah-Jeddah",
- "guest_nationality": "BD",
- "country_of_residence": "BD",
- "retry_count": 0,
- "group_booking": false
}, - "route": [
- {
- "departure_station_code": "MKX",
- "arrival_station_code": "JXD",
- "total_duration": 28,
- "segments": [
- {
- "train_name": "HHR",
- "train_number": "0080",
- "departure_station_code": "MKX",
- "arrival_station_code": "JXD",
- "departure_date": "2026-04-19T08:00:00",
- "arrival_date": "2026-04-19T08:28:00",
- "fare_class": "Y",
- "layover_time": 0,
- "duration": 28,
- "content": {
- "departure_station_name": "Makkah Al-Mukarramah",
- "arrival_station_name": "Al-Sulimaniyah",
- "departure_station_city": "Makkah",
- "arrival_station_city": "Jeddah",
- "fare_class_name": "Economy"
}, - "fare_basis_code": "NOTCANCEL"
}
], - "total_supplier_price": 57.5,
- "total_selling_price": 57.5
}
], - "price_details": {
- "promo_tag": null,
- "purchase": {
- "total": {
- "currency": "BDT",
- "amount": 1881.83,
- "before_discount": 1881.83,
- "discount": 0,
- "point": 0
}, - "price_breakdown": {
- "currency": "BDT",
- "total": 1881.83,
- "base_fare": 1636.37,
- "tax": 245.46,
- "extra_person_fee": 0,
- "supplier_sales_comission": null,
- "payable_at_property": [ ]
}
}, - "sell": {
- "total": {
- "currency": "BDT",
- "amount": 1881.83,
- "gross_price": 1881.83,
- "platform_fees_or_extra_tax": 0,
- "point": 0
}, - "price_breakdown": {
- "currency": "BDT",
- "total": 1881.83,
- "base_fare": 1636.37,
- "tax": 245.46,
- "platform_fees_or_extra_tax": 0,
- "extra_person_fee": 0,
- "supplier_sales_comission": null,
- "payable_at_property": [ ]
}
}, - "fmg": {
- "total": {
- "currency": "SAR",
- "amount": 57.5
}, - "price_breakdown": {
- "currency": "SAR",
- "total": 57.5,
- "base_fare": 50,
- "tax": 7.5,
- "extra_person_fee": 0,
- "supplier_sales_comission": null,
- "base_fare_fmg_charge": 0,
- "membership_discount_percentige": 0,
- "membership_discount_amount": 0,
- "final_base_fare_fmg_charge": 0,
- "payable_at_property": [ ]
}
}, - "supplier": {
- "total": {
- "currency": "SAR",
- "amount": 57.5
}, - "price_breakdown": {
- "currency": "SAR",
- "total": 57.5,
- "base_fare": 50,
- "tax": 7.5,
- "sales_tax": 0,
- "property_fees": 0,
- "surcharges": 0,
- "service_charge": 0,
- "extra_person_fee": 0,
- "supplier_sales_comission": null,
- "payable_at_property": [ ]
}
}
}, - "cancellation_policy": {
- "hold_possible": "yes",
- "summery": "partially refundable",
- "auto_cancel": "2026-04-09T16:00:58",
- "auto_cancel_timestamp": 1775728858,
- "policy_breakdown": [
- {
- "from": "2026-04-09T16:00:58",
- "from_timestamp": 1775728858,
- "to": "2026-04-18T08:00:00",
- "to_timestamp": 1776477600,
- "currency": "BDT",
- "amount": 564.55,
- "partner": {
- "currency": "BDT",
- "amount": 564.55
}, - "fmg": {
- "currency": "SAR",
- "amount": 17.25
}, - "supplier": {
- "currency": "SAR",
- "amount": 17.25
}
}, - {
- "from": "2026-04-18T08:00:00",
- "from_timestamp": 1776477600,
- "to": "2026-04-19T07:40:00",
- "to_timestamp": 1776562800,
- "currency": "BDT",
- "amount": 1129.1,
- "partner": {
- "currency": "BDT",
- "amount": 1129.1
}, - "fmg": {
- "currency": "SAR",
- "amount": 34.5
}, - "supplier": {
- "currency": "SAR",
- "amount": 34.5
}
}, - {
- "from": "2026-04-19T07:40:00",
- "from_timestamp": 1776562800,
- "to": "2026-04-19T08:00:00",
- "to_timestamp": 1776564000,
- "currency": "BDT",
- "amount": 1881.83,
- "partner": {
- "currency": "BDT",
- "amount": 1881.83
}, - "fmg": {
- "currency": "SAR",
- "amount": 57.5
}, - "supplier": {
- "currency": "SAR",
- "amount": 57.5
}
}
]
}, - "occupancies": [
- {
- "adults": 1,
- "children": 0,
- "infants": 0
}
], - "buyer_info": {
- "user_id": "klidwga0lmbj50shmv64yvkee7qzu6yb",
- "agency_id": "67cfdb887b7c46fe3c03ca5f"
}, - "travelers": null
}
}
Updates passenger details for a specific booking tracking ID.
|
tracking_id
required
|
string
|
| member_id |
string
|
| save_pax |
string
Enum: "yes"
"no"
|
| additional_request |
string
|
|
required
|
Array of
objects
|
{- "tracking_id": "311177572884426194QMRVJ",
- "member_id": "1",
- "save_pax": "no",
- "additional_request": "n/a",
- "passenger": [
- {
- "pax_title": "Adult 1",
- "pax_id": "1",
- "pax_type": "ADT",
- "title": "MR",
- "first_name": "Mahade",
- "last_name": "test",
- "age": "24",
- "isd_code": "880",
- "contact_no": "1901402814",
- "gender": "male",
- "dob": "2001-07-11",
- "nationality": "BD",
- "passport_no": "AE12519590",
- "passport_issue_date": "2022-09-01",
- "doc_country": "BD"
}
]
}
{- "status": "success",
- "reason": "Passenger data has been successfully updated.",
- "tracking_id": "311177572884426194QMRVJ",
- "total_guest": 1,
- "data": [
- {
- "tracking_id": "311177572884426194QMRVJ",
- "pax_id": "1",
- "pax_type": "ADT",
- "gender": "male",
- "title": "MR",
- "first_name": "MAHADE",
- "last_name": "test",
- "pax_age": "24",
- "isd_code": "880",
- "contact_no": "1901402814",
- "doc_no": "AE12519590",
- "doc_dateofissue": "2022-09-01",
- "doc_dateofexpiry": "2027-04-09",
- "nationality": "BD",
- "doc_country": "BD",
- "dob": "2001-07-11"
}
], - "validate_data": {
- "status": "success",
- "supplier_uid": "X1HE00028",
- "supplier_tracking_id": 1775728847222,
- "service_type": "TRAIN",
- "booking_status": "AVAILABILITY",
- "sold_out": false,
- "price_change": false,
- "price_change_amount": 0,
- "old_currency": "BDT",
- "old_price": 1881.83,
- "sell_currency": "BDT",
- "sell_price": 1881.83,
- "search_parameter": {
- "journey_type": "OneWay",
- "segment": [
- {
- "departure_code": "MKX",
- "arrival_code": "JXD",
- "outbound_date": "2026-04-19"
}
], - "travelers_adult": 1,
- "travelers_child": 0,
- "travelers_infants": 0,
- "supplier_uid": "all",
- "partner_id": "",
- "short_ref": "xxxx111",
- "language": "en",
- "guest_nationality": "BD",
- "tracking_id": "3117757287332YW1"
}, - "data": {
- "summery": {
- "tracking_id": "311177572884426194QMRVJ",
- "supplier_tracking_id": 1775728847222,
- "service_type": "TRAIN",
- "language": "en",
- "market": "SA",
- "departureDate": "2026-04-19T08:00:00",
- "arrivalDate": "2026-04-19T08:28:00",
- "search_key": "O:MKX:JXD:26:04:19",
- "train_key": "MKX_JXD_0080_2026-04-19T08:00:00",
- "trip_type": "O",
- "booking_status": "AVAILABILITY",
- "provider_name": "HARAMAIN",
- "short_content": "Haramain Train: Makkah-Jeddah",
- "guest_nationality": "BD",
- "country_of_residence": "BD",
- "retry_count": 0,
- "group_booking": false
}, - "route": [
- {
- "departure_station_code": "MKX",
- "arrival_station_code": "JXD",
- "total_duration": 28,
- "segments": [
- {
- "train_name": "HHR",
- "train_number": "0080",
- "departure_station_code": "MKX",
- "arrival_station_code": "JXD",
- "departure_date": "2026-04-19T08:00:00",
- "arrival_date": "2026-04-19T08:28:00",
- "fare_class": "Y",
- "layover_time": 0,
- "duration": 28,
- "content": {
- "departure_station_name": "Makkah Al-Mukarramah",
- "arrival_station_name": "Al-Sulimaniyah",
- "departure_station_city": "Makkah",
- "arrival_station_city": "Jeddah",
- "fare_class_name": "Economy"
}, - "fare_basis_code": "NOTCANCEL"
}
], - "total_supplier_price": 57.5,
- "total_selling_price": 57.5
}
], - "price_details": {
- "promo_tag": null,
- "purchase": {
- "total": {
- "currency": "BDT",
- "amount": 1881.83,
- "before_discount": 1881.83,
- "discount": 0,
- "point": 0
}, - "price_breakdown": {
- "currency": "BDT",
- "total": 1881.83,
- "base_fare": 1636.37,
- "tax": 245.46,
- "extra_person_fee": 0,
- "supplier_sales_comission": null,
- "payable_at_property": [ ]
}
}, - "sell": {
- "total": {
- "currency": "BDT",
- "amount": 1881.83,
- "gross_price": 1881.83,
- "platform_fees_or_extra_tax": 0,
- "point": 0
}, - "price_breakdown": {
- "currency": "BDT",
- "total": 1881.83,
- "base_fare": 1636.37,
- "tax": 245.46,
- "platform_fees_or_extra_tax": 0,
- "extra_person_fee": 0,
- "supplier_sales_comission": null,
- "payable_at_property": [ ]
}
}, - "fmg": {
- "total": {
- "currency": "SAR",
- "amount": 57.5
}, - "price_breakdown": {
- "currency": "SAR",
- "total": 57.5,
- "base_fare": 50,
- "tax": 7.5,
- "extra_person_fee": 0,
- "supplier_sales_comission": null,
- "base_fare_fmg_charge": 0,
- "membership_discount_percentige": 0,
- "membership_discount_amount": 0,
- "final_base_fare_fmg_charge": 0,
- "payable_at_property": [ ]
}
}, - "supplier": {
- "total": {
- "currency": "SAR",
- "amount": 57.5
}, - "price_breakdown": {
- "currency": "SAR",
- "total": 57.5,
- "base_fare": 50,
- "tax": 7.5,
- "sales_tax": 0,
- "property_fees": 0,
- "surcharges": 0,
- "service_charge": 0,
- "extra_person_fee": 0,
- "supplier_sales_comission": null,
- "payable_at_property": [ ]
}
}
}, - "cancellation_policy": {
- "hold_possible": "yes",
- "summery": "partially refundable",
- "auto_cancel": "2026-04-09T16:20:51",
- "auto_cancel_timestamp": 1775730051,
- "policy_breakdown": [
- {
- "from": "2026-04-09T16:20:51",
- "from_timestamp": 1775730051,
- "to": "2026-04-18T08:00:00",
- "to_timestamp": 1776477600,
- "currency": "BDT",
- "amount": 564.55,
- "partner": {
- "currency": "BDT",
- "amount": 564.55
}, - "fmg": {
- "currency": "SAR",
- "amount": 17.25
}, - "supplier": {
- "currency": "SAR",
- "amount": 17.25
}
}, - {
- "from": "2026-04-18T08:00:00",
- "from_timestamp": 1776477600,
- "to": "2026-04-19T07:40:00",
- "to_timestamp": 1776562800,
- "currency": "BDT",
- "amount": 1129.1,
- "partner": {
- "currency": "BDT",
- "amount": 1129.1
}, - "fmg": {
- "currency": "SAR",
- "amount": 34.5
}, - "supplier": {
- "currency": "SAR",
- "amount": 34.5
}
}, - {
- "from": "2026-04-19T07:40:00",
- "from_timestamp": 1776562800,
- "to": "2026-04-19T08:00:00",
- "to_timestamp": 1776564000,
- "currency": "BDT",
- "amount": 1881.83,
- "partner": {
- "currency": "BDT",
- "amount": 1881.83
}, - "fmg": {
- "currency": "SAR",
- "amount": 57.5
}, - "supplier": {
- "currency": "SAR",
- "amount": 57.5
}
}
]
}, - "occupancies": [
- {
- "adults": 1,
- "children": 0,
- "infants": 0
}
], - "buyer_info": {
- "user_id": "klidwga0lmbj50shmv64yvkee7qzu6yb",
- "name_prefix": "MR",
- "given_name": "MAHADE",
- "sur_name": "test",
- "agency_id": "67cfdb887b7c46fe3c03ca5f",
- "phone_no": "1901402814",
- "isd_code": "880"
}, - "travelers": [
- {
- "traveler_index": 0,
- "pax_type": "ADULT",
- "name_prefix": "Mr",
- "given_name": "MAHADE",
- "middle_name": "",
- "sur_name": "test",
- "gender": "MALE",
- "country_of_residence": "BD",
- "nationality": "BD",
- "birth_date": "2001-07-11",
- "passport_no": "AE12519590",
- "passport_type": "PASSPORT",
- "passport_issue_country_code": "BD",
- "passport_issue_date": "2022-09-01",
- "passport_expiry_date": "2027-04-09",
- "is_lead": true
}
]
}
}
}
Finalizes the booking process by processing payment through the selected payment method.
|
tracking_id
required
|
string
The unique tracking ID for the booking. |
| member_id |
string
ID of the logged-in member. |
| isd_code |
string
|
| contact_no |
string
|
| email_address |
string
<email>
|
| payment_type
required
|
string
Enum: "account_balance"
"card"
"onlinepayment"
Method of payment for the booking. |
| redirect_url
required
|
string
<uri>
URL to redirect after payment processing. |
{- "tracking_id": "311177572884426194QMRVJ",
- "member_id": "1",
- "isd_code": "880",
- "contact_no": "1966330000",
- "payment_type": "account_balance",
}
{- "Context": {
- "TimeStamp": 1776838694938,
- "TransactionId": "47016237b5f1ec6f",
- "StatusCode": 200
}, - "Response": {
- "QuickBookId": 1776838544149,
- "Online": {
- "PaymentToken": "",
- "PaymentUrl": ""
}, - "TzyRewards": false,
- "TzyWallet": true,
- "IsPaymentCompleted": false
}
}
Requests a cancellation for an existing booking using the tracking ID and a reason for cancellation.
|
member_id
required
|
string
The unique ID of the logged-in user. |
|
tracking_id
required
|
string
The unique tracking ID of the booking to be cancelled. |
| reason
required
|
string
The reason for requesting cancellation. |
{- "member_id": "1",
- "tracking_id": "111775111387888638XGGS",
- "reason": "I selected wrong date"
}
{- "status": "success",
- "reason": "Your booking has been successfully cancelled.",
- "tracking_id": "111775111387888638XGGS"
}
|
member_id
required
|
string
Logged-in user member ID |
|
tracking_id
required
|
string
eSIM or booking tracking ID |
|
booking_id
required
|
string
Booking ID for the eSIM package |
| property
name*
additional
property
|
any
|
{- "member_id": "2",
- "tracking_id": "11176276126126194RHSGI",
- "booking_id": "ES2510NOKJAAFK"
}
{- "status": "success",
- "booking_details": {
- "Context": {
- "TimeStamp": 1752553734924,
- "TransactionId": "60a6e7db6301c17a",
- "StatusCode": 200,
- "Message": "Success"
}, - "Response": {
- "BookingId": "ES2510NOKJAAFK",
- "TrackingId": "11176276126126194RHSGI",
- "MemberId": "2",
- "TrainKey": "MKX_DMX_2151_2025-09-20T08:00:00",
- "FareClass": "C",
- "FareClassName": "Business",
- "SellingPrice": 202.9861803,
- "SellingCurrency": "USD",
- "DepartureStationCode": "MKX",
- "ArrivalStationCode": "DMX",
- "DepartureDate": "2025-09-20T08:00:00",
- "ArrivalDate": "2025-09-20T11:00:00",
- "PassengerDetails": [
- {
- "FirstName": "John",
- "LastName": "Doe",
- "PassengerType": "Adult"
}
], - "BookingStatus": "Confirmed"
}
}
}