Search Ticket Resopnse Structure

Core Block

Attribute Type Description
adults Integer Number of adults traveling.
children Integer Number of children traveling.
senior_citizens Integer Number of senior citizens traveling.
children_ages Array(Integer) Ages of children traveling, e.g., [].
client_nationality String Nationality of the client, e.g., "IN".
round_trip Boolean Indicates if the trip is a round trip, e.g., true.
origin_code String Origin code, e.g., "R_007".
destination_code String Destination code, e.g., "R_008".
search_id String Unique search identifier, e.g., "kkydey72kgvfo7folcutdnhnmi".
ticket_rates TicketRates Ticket rates details, see TicketRates table.

TicketRates Attributes Table

Attribute Type Description
forward_list Array(TicketRate) List of forward tickets, see TicketRate table for each rate.
return_list Array(TicketRate) List of return tickets, see TicketRate table for each rate.

TicketRate Attributes Table

Attribute Type Description
currency String Currency code, e.g., "INR".
rate_key String Unique rate key, e.g., "4kmfjnde4z5s3r2q62ngeags46dpxxfauwzolt3zr"
price_details Object(category: Array(PriceDetail)) Details of the price, see PriceDetail table. eg. net: [PriceDetail]
group_code String Group code, e.g., "qoqrnzlpxzdxrhyt7pnte".
ticket_code String Unique ticket code, e.g., "4ddffkru5mrcppzs2a".
price Float Total price, e.g., 155.06.
rate_comments Object Rate comments, A key value based comments. Varies from rate to rate
payment_type Array(String) Payment types available, e.g., ["AT_WEB"].
credit_deduction String Credit deduction type, e.g., "immediate".
non_refundable Boolean Indicates if non-refundable, e.g., true.
rate_type String Rate type, e.g., "bookable".
ticket_info TicketInfo Information about the ticket, see TicketInfo table.

PriceDetail Attributes Table

Attribute Type Description
name String Name of the price detail, e.g., "SupplierPrice".
currency String Currency code, e.g., "INR".
amount Float Amount value, e.g., 15505.57.
amount_type String Type of amount, e.g., "value".
included Boolean Indicates if included, e.g., true.

RateComments Attributes Table

Attribute Type Description
policy String Policy details, e.g., "Seat reservation is included...".

TicketInfo Attributes Table

Attribute Type Description
description String Description of the ticket, e.g., "Flexpreis Europa1STANDARDFlexible".
trains_info Array(TrainInfo) Information about the connected trains, see TrainInfo table for each train details.

TrainInfo Attributes Table

Attribute Type Description
duration String Duration of the trip, e.g., "3h:31m".
departure_time String Departure time, e.g., "24-Aug-2024 09:33".
arrival_time String Arrival time, e.g., "24-Aug-2024 13:04".
carrier String Carrier name, e.g., "Dbahn EC 99".
destination_name String Destination name, e.g., "Munchen Hbf gl 27 36".
origin_name String Origin name, e.g., "Zurich Hauptbahnhof".
other_inclusions Array(Object) List of other inclusions, e.g., [].

Sample Response for Forward (Oneway)

{
  "children": 0,
  "search_id": "kkydey72kgvfo7folcutdnhnmi",
  "ticket_rates": {
    "forward_list": [
      {
        "currency": "INR",
        "rate_key": "4kmfjnde4z5s3r2q62ngeags46dpxxfauwzolt3zrjbrx7xpdpkstdxzeqdshy7j6netzdfvy4kfkvr74xjeebfn5pjqnw6k2x2f7gwqvxaffxqzyf2skpqhmisjmszizotxjitvgjoai3mwxp3ksqnbwwg7m3fwlphvhty5xmi4vcpvbvdu3r2jz7iq7kcrhhtsi4q",
        "price_details": {
          "net": [
            {
              "name": "SupplierPrice",
              "currency": "INR",
              "amount": 15505.57,
              "amount_type": "value",
              "included": true
            },
            {
              "name": "Total",
              "currency": "INR",
              "amount": 15505.57,
              "amount_type": "value",
              "included": true
            }
          ]
        },
        "group_code": "qoqrnzlpxzdxrhyt7pnte",
        "ticket_code": "4ddffkru5mrcppzs2a",
        "price": 15506,
        "rate_comments": {
          "policy": "Seat reservation is included in the booking for the trains with compulsory seat reservation.\n\n<p>If ticket not used, refundable or exchangeable up to 1 day before first day of validity. Thereafter a maximum 19 EUR charge applies.</p>\n<p>Exchanges: Passenger must pay the difference in price for next available fare in same or higher class of service.</p>"
        },
        "payment_type": ["AT_WEB"],
        "credit_deduction": "immediate",
        "non_refundable": true,
        "rate_type": "bookable",
        "ticket_info": {
          "description": "Flexpreis Europa1STANDARDFlexible",
          "trains_info": [
            {
              "duration": "3h:31m",
              "departure_time": "24-Aug-2024 09:33",
              "arrival_time": "24-Aug-2024 13:04",
              "carrier": "Dbahn EC 99",
              "destination_name": "Munchen Hbf gl 27 36",
              "origin_name": "Zurich Hauptbahnhof",
              "other_inclusions": []
            }
          ]
        }
      }
    ]
  },
  "adults": 2,
  "children_ages": [],
  "senior_citizens": 0,
  "client_nationality": "IN",
  "round_trip": false,
  "origin_code": "R_007",
  "destination_code": "R_008"
}

Sample Response for RoundTrop

{
  "children": 0,
  "request_data": {
    "adults": 2,
    "children": 0,
    "children_ages": [],
    "client_nationality": "IN",
    "currency": "INR",
    "cutoff_time": 30000,
    "departure_date": "2024-08-24",
    "departure_time": "09:00",
    "destination_code": "R_008",
    "origin_code": "R_007",
    "return_time": "13:00",
    "round_trip": false,
    "senior_citizens": 0
  },
  "search_id": "kkydey72kgvfo7folcutdnhnmi",
  "ticket_rates": {
    "forward_list": [
      {
        "currency": "INR",
        "rate_key": "4kmfjnde4z5s3r2q62ngeags46dpxxfauwzolt3zrjbrx7xpdpkstdxzeqdshy7j6netzdfvy4kfkvr74xjeebfn5pjqnw6k2x2f7gwqvxaffxqzyf2skpqhmisjmszizotxjitvgjoai3mwxp3ksqnbwwg7m3fwlphvhty5xmi4vcpvbvdu3r2jz7iq7kcrhhtsi4q",
        "price_details": {
          "net": [
            {
              "name": "SupplierPrice",
              "currency": "INR",
              "amount": 15505.57,
              "amount_type": "value",
              "included": true
            },
            {
              "name": "Total",
              "currency": "INR",
              "amount": 15505.57,
              "amount_type": "value",
              "included": true
            }
          ]
        },
        "group_code": "qoqrnzlpxzdxrhyt7pnte",
        "ticket_code": "4ddffkru5mrcppzs2a",
        "price": 15506,
        "rate_comments": {
          "policy": "Seat reservation is included in the booking for the trains with compulsory seat reservation.\n\n<p>If ticket not used, refundable or exchangeable up to 1 day before first day of validity. Thereafter a maximum 19 EUR charge applies.</p>\n<p>Exchanges: Passenger must pay the difference in price for next available fare in same or higher class of service.</p>"
        },
        "payment_type": ["AT_WEB"],
        "credit_deduction": "immediate",
        "non_refundable": true,
        "rate_type": "bookable",
        "ticket_info": {
          "description": "Flexpreis Europa1STANDARDFlexible",
          "trains_info": [
            {
              "duration": "3h:31m",
              "departure_time": "24-Aug-2024 09:33",
              "arrival_time": "24-Aug-2024 13:04",
              "carrier": "Dbahn EC 99",
              "destination_name": "Munchen Hbf gl 27 36",
              "origin_name": "Zurich Hauptbahnhof",
              "other_inclusions": []
            }
          ]
        }
      }
    ],
    "return_list": [
      {
        "currency": "INR",
        "rate_key": "4kmfjnde4z5s3r2q62ngeags46dpxxfauwzolt3zrjbrx7xpdpkstdxzeqdshy7j6netzdfvy4kfkvr74xjeebfn5pjqnw6k2x2f7gwqvxaffxqzyf2skpqhmisjmszizotxjitvgjoai3mwxp3ksqnbwwg7m3fwlphvhty5xmi4vcpvbvdu3r2jz7iq7kcrhhtsi4q",
        "price_details": {
          "net": [
            {
              "name": "SupplierPrice",
              "currency": "INR",
              "amount": 15505.57,
              "amount_type": "value",
              "included": true
            },
            {
              "name": "Total",
              "currency": "INR",
              "amount": 15505.57,
              "amount_type": "value",
              "included": true
            }
          ]
        },
        "group_code": "qoqrnzlpxzdxrhyt7pnte",
        "ticket_code": "4ddffkru5mrcppzs2a",
        "price": 15506,
        "rate_comments": {
          "policy": "Seat reservation is included in the booking for the trains with compulsory seat reservation.\n\n<p>If ticket not used, refundable or exchangeable up to 1 day before first day of validity. Thereafter a maximum 19 EUR charge applies.</p>\n<p>Exchanges: Passenger must pay the difference in price for next available fare in same or higher class of service.</p>"
        },
        "payment_type": ["AT_WEB"],
        "credit_deduction": "immediate",
        "non_refundable": true,
        "rate_type": "bookable",
        "ticket_info": {
          "description": "Flexpreis Europa1STANDARDFlexible",
          "trains_info": [
            {
              "duration": "3h:31m",
              "departure_time": "24-Aug-2024 09:33",
              "arrival_time": "24-Aug-2024 13:04",
              "carrier": "Dbahn EC 99",
              "origin_name": "Munchen Hbf gl 27 36",
              "destination_name": "Zurich Hauptbahnhof",
              "other_inclusions": []
            }
          ]
        }
      }
    ]
  },
  "adults": 2,
  "children_ages": [],
  "senior_citizens": 0,
  "client_nationality": "IN",
  "round_trip": false,
  "destination_code": "R_007",
  "origin_code": "R_008"
}