Connect API
Search
Search returns priced itineraries. Each result carries the parameters that create an offer for it.
Searching and pricing
Search for and price an itinerary
apikey<token>
In: header
metadataMetadata
User metadata such as residency, language and currency
origin_destinationsOrigin Destinations
Items
items <= 2passengers?Passengers
preferences?Preferences
Response Body
curl -X POST "https://api.dev.dohop.com/ndc/api/0.11/air_shopping/" \ -H "Content-Type: application/json" \ -d '{ "metadata": { "country": "IS", "language": "en", "currency": "EUR" }, "origin_destinations": [ { "arrival": { "airport_code": "MAD" }, "departure": { "airport_code": "INV", "date": "2027-02-23" } } ], "passengers": [ { "pax_id": "PAX_ID", "age": 16, "expected_ptc": "ADT" } ], "preferences": { "ignore_cached_fares": false } }'{
"data_lists": {
"segments": [
{
"segment_id": "string",
"departure": {
"airport_code": "string",
"datetime": "2019-08-24T14:15:22Z",
"terminal_name": "string",
"airside_transfer": false
},
"arrival": {
"airport_code": "string",
"datetime": "2019-08-24T14:15:22Z",
"terminal_name": "string",
"airside_transfer": false
},
"duration": "string",
"marketing_carrier": {
"carrier_code": "string",
"flight_number": 0
},
"operating_carrier": {
"carrier_code": "string",
"flight_number": 0
},
"metadata": {
"display_carrier_iata": "string",
"display_carrier_number": "string"
},
"dated_operating_legs": [
{
"arrival": {
"airport_code": "string",
"datetime": "2019-08-24T14:15:22Z",
"terminal_name": "string",
"airside_transfer": false
},
"departure": {
"airport_code": "string",
"datetime": "2019-08-24T14:15:22Z",
"terminal_name": "string",
"airside_transfer": false
},
"duration": "string",
"aircraft_type": "string",
"booking_class_or_rbd": "string"
}
],
"cabin_type": "Y"
}
],
"journeys": [
{
"journey_id": "string",
"segment_ids": [
"string"
]
}
],
"products": [
{
"key": "string",
"name": "string",
"logo": "string"
}
],
"passengers": [
{
"pax_id": "string",
"age": 16,
"expected_ptc": "ADT"
}
]
},
"offers": [
{
"offer_id": "string",
"offer_items": [
{
"offer_item_id": "string",
"price": {
"currency": "str",
"amount": 0
},
"price_with_fee": {
"currency": "str",
"amount": 0
},
"rank": 0,
"services": [
{
"service_id": "string",
"pax_ref_ids": [
"string"
],
"journey_ids": [
"string"
],
"service_ref": {
"service_definition_ref_id": "string",
"segment_ids": [
"string"
]
}
}
]
}
],
"total_price": {
"currency": "str",
"amount": 0
},
"product_key": "string",
"web_address_url": "string",
"fare_combo_str": "string",
"fare_type": "virtual interline"
}
],
"errors": [
{
"reason": "string"
}
]
}{
"errors": [
{
"response_code": 0,
"description": "string"
}
]
}All departure stations
Get a list of all possible origins for searches
apikey<token>
In: header
Response Body
curl -X GET "https://api.dev.dohop.com/ndc/api/0.11/availability/departure_stations/"{
"departure_stations": [
"string"
]
}Get all possible destinations for departure station
Get all destinations for specified departure stations. Departure stations can be up to 20 and are comma separated
apikey<token>
In: header
Path Parameters
departure_stationsDeparture Stations
Response Body
curl -X GET "https://api.dev.dohop.com/ndc/api/0.11/availability/station_pairs/string/"{
"departure_stations": {
"property1": [
"string"
],
"property2": [
"string"
]
}
}{
"errors": [
{
"response_code": 0,
"description": "string"
}
]
}Get all possible dates for origin and destination pair
Get all available dates for specified origin and destination stations. Destination stations can be up to 20 and are comma separated
apikey<token>
In: header
Path Parameters
departure_stationDeparture Station
arrival_stationsArrival Stations
Response Body
curl -X GET "https://api.dev.dohop.com/ndc/api/0.11/availability/station_pair_dates/string/string/"{
"arrival_stations": {
"property1": [
"string"
],
"property2": [
"string"
]
}
}{
"errors": [
{
"response_code": 0,
"description": "string"
}
]
}