Offer
An offer holds the itinerary, the bundles and the services a traveller can choose from, with their prices.
Create an offer.
Create an offer for an itinerary of the search (air shopping) response. POST to the web_address_url of the itinerary exactly as the search returned it: the search API builds and signs its query parameters, the caller does not.
In: header
Query Parameters
Residency. Also accepted as residency. Comes with the web_address_url of the search response, send it unchanged.
Currency of display. Also accepted as currency. Comes with the web_address_url of the search response, send it unchanged.
Language. Also accepted as language.
"en"Partner name. Comes with the web_address_url of the search response, send it unchanged.
example: 0-1. Comes with the web_address_url of the search response, send it unchanged.
^[0-9]+(-[0-9]+)*$example: a-21.99-EUR-1336--b-27.95-CHF-1336. Comes with the web_address_url of the search response, send it unchanged.
Outbound itineraries, example: BCNGVA202111191445016250140U21408---GVAAMS202111191845020300145U21357. Comes with the web_address_url of the search response, send it unchanged.
Homebound itineraries. Comes with the web_address_url of the search response, send it unchanged.
nullDohop connection fee. Comes with the web_address_url of the search response, send it unchanged.
nullTotal Dohop fee quoted by the search, as amount-currency, example: 12.50-EUR. Comes with the web_address_url of the search response, send it unchanged.
nulln_adults or passenger_ages must be set, but they can not be used together. Comes with the web_address_url of the search response, send it unchanged.
nullCan not be used with n_adults or youngsters_ages. Comes with the web_address_url of the search response, send it unchanged.
nullCan only be used with n_adults, not with passenger_ages. Comes with the web_address_url of the search response, send it unchanged.
nullWhen the search API issued the URL. Comes with the web_address_url of the search response, send it unchanged.
nullSignature of the URL. Comes with the web_address_url of the search response, send it unchanged.
nullNot read by this API. Comes with the web_address_url of the search response, send it unchanged.
nullNot read by this API. Comes with the web_address_url of the search response, send it unchanged.
nullNot read by this API. Comes with the web_address_url of the search response, send it unchanged.
nullNot read by this API. Comes with the web_address_url of the search response, send it unchanged.
nullReferrer tracking id, stored on the order
nullIP address of the end customer, used for card risk checks. Defaults to the IP of the caller.
nullipvanyaddressResponse Body
curl -X POST "https://api.staging.dohop.io/connect_api/v1/new?res=string&curr=string&lang=en&mbs_partner=string&combo=string&fares=string&out=string"{
"offer_id": "string",
"expires_at": "2019-08-24T14:15:22Z",
"passengers": [
{
"passenger_id": "string",
"date_of_birth": "2019-08-24",
"first_name": "string",
"gender": "m",
"last_name": "string",
"passport_country": "string",
"passport_expiration": "string",
"passport_number": "string",
"nationality": "string",
"title": "string",
"expected_type": "a",
"traveling_with": "string"
}
],
"requirements": [
"passport_required"
],
"visa_requirements": {
"visa_not_required": [
"string"
]
},
"itinerary": {
"itinerary_tags": [
"overnight"
],
"outbound": [
{
"item_type": "leg",
"active_leg": {
"leg_id": "string",
"origin": {
"airport_iata": "str",
"airport_name": "string",
"city_iata": "string",
"city_name": "string",
"country_code": "st",
"country_name": "string",
"transport_type": "AIRPORT",
"terminal": "string"
},
"destination": {
"airport_iata": "str",
"airport_name": "string",
"city_iata": "string",
"city_name": "string",
"country_code": "st",
"country_name": "string",
"transport_type": "AIRPORT",
"terminal": "string"
},
"duration_in_seconds": 0,
"departure_date": "2019-08-24T14:15:22Z",
"arrival_date": "2019-08-24T14:15:22Z",
"flight_number": "string",
"aircraft_id": "string",
"marketing_carrier": {
"code": "string",
"name": "string"
},
"operating_carrier": {
"code": "string",
"name": "string"
},
"arrival_terminal": "string"
}
}
],
"homebound": [
{
"item_type": "leg",
"active_leg": {
"leg_id": "string",
"origin": {
"airport_iata": "str",
"airport_name": "string",
"city_iata": "string",
"city_name": "string",
"country_code": "st",
"country_name": "string",
"transport_type": "AIRPORT",
"terminal": "string"
},
"destination": {
"airport_iata": "str",
"airport_name": "string",
"city_iata": "string",
"city_name": "string",
"country_code": "st",
"country_name": "string",
"transport_type": "AIRPORT",
"terminal": "string"
},
"duration_in_seconds": 0,
"departure_date": "2019-08-24T14:15:22Z",
"arrival_date": "2019-08-24T14:15:22Z",
"flight_number": "string",
"aircraft_id": "string",
"marketing_carrier": {
"code": "string",
"name": "string"
},
"operating_carrier": {
"code": "string",
"name": "string"
},
"arrival_terminal": "string"
}
}
]
},
"bundle_groups": [
{
"bundles": [
{
"all_services": [
{
"bundle_code": "string",
"quantity": 0,
"service_class": "luggage_personal",
"dimensions": {
"length": 0,
"width": 0,
"height": 0
},
"weight": 0
}
],
"bundle_id": "string",
"bundle_codes": [
"string"
],
"is_selected": true,
"price": {
"currency": "str",
"amount": 0
},
"services": [
{
"bundle_code": "string",
"quantity": 0,
"service_class": "luggage_personal",
"dimensions": {
"length": 0,
"width": 0,
"height": 0
},
"weight": 0
}
]
}
],
"carrier_codes": [
"string"
],
"leg_ids": [
"string"
]
}
],
"service_groups": [
{
"carrier_codes": [
"string"
],
"leg_ids": [
"string"
],
"passenger_id": "string",
"services": [
{
"service_id": "string",
"service_class": "luggage_personal",
"quantity": 0,
"price": {
"currency": "str",
"amount": 0
},
"can_increment": true,
"can_decrement": true,
"dimensions": {
"length": 0,
"width": 0,
"height": 0
},
"passenger_id": "string",
"weight": 0,
"price_per_leg": {
"currency": "str",
"amount": 0
}
}
]
}
],
"summary": {
"leg_summaries": [
{
"additional_services": [
{
"service_id": "string",
"service_class": "luggage_personal",
"quantity": 0,
"price": {
"currency": "str",
"amount": 0
},
"can_increment": true,
"can_decrement": true,
"dimensions": {
"length": 0,
"width": 0,
"height": 0
},
"passenger_id": "string",
"weight": 0,
"price_per_leg": {
"currency": "str",
"amount": 0
}
}
],
"bundle": {
"code": "string",
"price": {
"currency": "str",
"amount": 0
}
},
"included_services": [
{
"bundle_code": "string",
"quantity": 0,
"service_class": "luggage_personal",
"dimensions": {
"length": 0,
"width": 0,
"height": 0
},
"weight": 0
}
],
"leg_ids": [
"string"
]
}
],
"fees": [
{
"fee_type": "dohop_service_fee",
"price": {
"currency": "str",
"amount": 0
}
}
],
"total": {
"currency": "str",
"amount": 0
},
"ticket_price": {
"total_tax": {
"currency": "str",
"amount": 0
},
"total_fare": {
"currency": "str",
"amount": 0
}
}
},
"errors": [
{
"initial_price": {
"currency": "str",
"amount": 0
},
"new_price": {
"currency": "str",
"amount": 0
}
}
],
"services_need_fetching": true
}{
"errors": [
{
"status_text": "Incomplete",
"error_code": "string",
"response_code": 0,
"description": "string",
"recoverable": true
}
]
}Get an offer.
Get the offer and extend its expiry.
In: header
Path Parameters
Id of offer
Response Body
curl -X GET "https://api.staging.dohop.io/connect_api/v1/string"{
"offer_id": "string",
"expires_at": "2019-08-24T14:15:22Z",
"passengers": [
{
"passenger_id": "string",
"date_of_birth": "2019-08-24",
"first_name": "string",
"gender": "m",
"last_name": "string",
"passport_country": "string",
"passport_expiration": "string",
"passport_number": "string",
"nationality": "string",
"title": "string",
"expected_type": "a",
"traveling_with": "string"
}
],
"requirements": [
"passport_required"
],
"visa_requirements": {
"visa_not_required": [
"string"
]
},
"itinerary": {
"itinerary_tags": [
"overnight"
],
"outbound": [
{
"item_type": "leg",
"active_leg": {
"leg_id": "string",
"origin": {
"airport_iata": "str",
"airport_name": "string",
"city_iata": "string",
"city_name": "string",
"country_code": "st",
"country_name": "string",
"transport_type": "AIRPORT",
"terminal": "string"
},
"destination": {
"airport_iata": "str",
"airport_name": "string",
"city_iata": "string",
"city_name": "string",
"country_code": "st",
"country_name": "string",
"transport_type": "AIRPORT",
"terminal": "string"
},
"duration_in_seconds": 0,
"departure_date": "2019-08-24T14:15:22Z",
"arrival_date": "2019-08-24T14:15:22Z",
"flight_number": "string",
"aircraft_id": "string",
"marketing_carrier": {
"code": "string",
"name": "string"
},
"operating_carrier": {
"code": "string",
"name": "string"
},
"arrival_terminal": "string"
}
}
],
"homebound": [
{
"item_type": "leg",
"active_leg": {
"leg_id": "string",
"origin": {
"airport_iata": "str",
"airport_name": "string",
"city_iata": "string",
"city_name": "string",
"country_code": "st",
"country_name": "string",
"transport_type": "AIRPORT",
"terminal": "string"
},
"destination": {
"airport_iata": "str",
"airport_name": "string",
"city_iata": "string",
"city_name": "string",
"country_code": "st",
"country_name": "string",
"transport_type": "AIRPORT",
"terminal": "string"
},
"duration_in_seconds": 0,
"departure_date": "2019-08-24T14:15:22Z",
"arrival_date": "2019-08-24T14:15:22Z",
"flight_number": "string",
"aircraft_id": "string",
"marketing_carrier": {
"code": "string",
"name": "string"
},
"operating_carrier": {
"code": "string",
"name": "string"
},
"arrival_terminal": "string"
}
}
]
},
"bundle_groups": [
{
"bundles": [
{
"all_services": [
{
"bundle_code": "string",
"quantity": 0,
"service_class": "luggage_personal",
"dimensions": {
"length": 0,
"width": 0,
"height": 0
},
"weight": 0
}
],
"bundle_id": "string",
"bundle_codes": [
"string"
],
"is_selected": true,
"price": {
"currency": "str",
"amount": 0
},
"services": [
{
"bundle_code": "string",
"quantity": 0,
"service_class": "luggage_personal",
"dimensions": {
"length": 0,
"width": 0,
"height": 0
},
"weight": 0
}
]
}
],
"carrier_codes": [
"string"
],
"leg_ids": [
"string"
]
}
],
"service_groups": [
{
"carrier_codes": [
"string"
],
"leg_ids": [
"string"
],
"passenger_id": "string",
"services": [
{
"service_id": "string",
"service_class": "luggage_personal",
"quantity": 0,
"price": {
"currency": "str",
"amount": 0
},
"can_increment": true,
"can_decrement": true,
"dimensions": {
"length": 0,
"width": 0,
"height": 0
},
"passenger_id": "string",
"weight": 0,
"price_per_leg": {
"currency": "str",
"amount": 0
}
}
]
}
],
"summary": {
"leg_summaries": [
{
"additional_services": [
{
"service_id": "string",
"service_class": "luggage_personal",
"quantity": 0,
"price": {
"currency": "str",
"amount": 0
},
"can_increment": true,
"can_decrement": true,
"dimensions": {
"length": 0,
"width": 0,
"height": 0
},
"passenger_id": "string",
"weight": 0,
"price_per_leg": {
"currency": "str",
"amount": 0
}
}
],
"bundle": {
"code": "string",
"price": {
"currency": "str",
"amount": 0
}
},
"included_services": [
{
"bundle_code": "string",
"quantity": 0,
"service_class": "luggage_personal",
"dimensions": {
"length": 0,
"width": 0,
"height": 0
},
"weight": 0
}
],
"leg_ids": [
"string"
]
}
],
"fees": [
{
"fee_type": "dohop_service_fee",
"price": {
"currency": "str",
"amount": 0
}
}
],
"total": {
"currency": "str",
"amount": 0
},
"ticket_price": {
"total_tax": {
"currency": "str",
"amount": 0
},
"total_fare": {
"currency": "str",
"amount": 0
}
}
},
"errors": [
{
"initial_price": {
"currency": "str",
"amount": 0
},
"new_price": {
"currency": "str",
"amount": 0
}
}
],
"services_need_fetching": true
}{
"errors": [
{
"status_text": "Incomplete",
"error_code": "string",
"response_code": 0,
"description": "string",
"recoverable": true
}
]
}Select a bundle.
Select a bundle. Resets the selected services of the bookings the bundle affects, selections on other bookings are kept.
In: header
Path Parameters
Id of offer
Query Parameters
Id of bundle to select
Response Body
curl -X PATCH "https://api.staging.dohop.io/connect_api/v1/string/bundles?bundle_id=string"{
"offer_id": "string",
"expires_at": "2019-08-24T14:15:22Z",
"passengers": [
{
"passenger_id": "string",
"date_of_birth": "2019-08-24",
"first_name": "string",
"gender": "m",
"last_name": "string",
"passport_country": "string",
"passport_expiration": "string",
"passport_number": "string",
"nationality": "string",
"title": "string",
"expected_type": "a",
"traveling_with": "string"
}
],
"requirements": [
"passport_required"
],
"visa_requirements": {
"visa_not_required": [
"string"
]
},
"itinerary": {
"itinerary_tags": [
"overnight"
],
"outbound": [
{
"item_type": "leg",
"active_leg": {
"leg_id": "string",
"origin": {
"airport_iata": "str",
"airport_name": "string",
"city_iata": "string",
"city_name": "string",
"country_code": "st",
"country_name": "string",
"transport_type": "AIRPORT",
"terminal": "string"
},
"destination": {
"airport_iata": "str",
"airport_name": "string",
"city_iata": "string",
"city_name": "string",
"country_code": "st",
"country_name": "string",
"transport_type": "AIRPORT",
"terminal": "string"
},
"duration_in_seconds": 0,
"departure_date": "2019-08-24T14:15:22Z",
"arrival_date": "2019-08-24T14:15:22Z",
"flight_number": "string",
"aircraft_id": "string",
"marketing_carrier": {
"code": "string",
"name": "string"
},
"operating_carrier": {
"code": "string",
"name": "string"
},
"arrival_terminal": "string"
}
}
],
"homebound": [
{
"item_type": "leg",
"active_leg": {
"leg_id": "string",
"origin": {
"airport_iata": "str",
"airport_name": "string",
"city_iata": "string",
"city_name": "string",
"country_code": "st",
"country_name": "string",
"transport_type": "AIRPORT",
"terminal": "string"
},
"destination": {
"airport_iata": "str",
"airport_name": "string",
"city_iata": "string",
"city_name": "string",
"country_code": "st",
"country_name": "string",
"transport_type": "AIRPORT",
"terminal": "string"
},
"duration_in_seconds": 0,
"departure_date": "2019-08-24T14:15:22Z",
"arrival_date": "2019-08-24T14:15:22Z",
"flight_number": "string",
"aircraft_id": "string",
"marketing_carrier": {
"code": "string",
"name": "string"
},
"operating_carrier": {
"code": "string",
"name": "string"
},
"arrival_terminal": "string"
}
}
]
},
"bundle_groups": [
{
"bundles": [
{
"all_services": [
{
"bundle_code": "string",
"quantity": 0,
"service_class": "luggage_personal",
"dimensions": {
"length": 0,
"width": 0,
"height": 0
},
"weight": 0
}
],
"bundle_id": "string",
"bundle_codes": [
"string"
],
"is_selected": true,
"price": {
"currency": "str",
"amount": 0
},
"services": [
{
"bundle_code": "string",
"quantity": 0,
"service_class": "luggage_personal",
"dimensions": {
"length": 0,
"width": 0,
"height": 0
},
"weight": 0
}
]
}
],
"carrier_codes": [
"string"
],
"leg_ids": [
"string"
]
}
],
"service_groups": [
{
"carrier_codes": [
"string"
],
"leg_ids": [
"string"
],
"passenger_id": "string",
"services": [
{
"service_id": "string",
"service_class": "luggage_personal",
"quantity": 0,
"price": {
"currency": "str",
"amount": 0
},
"can_increment": true,
"can_decrement": true,
"dimensions": {
"length": 0,
"width": 0,
"height": 0
},
"passenger_id": "string",
"weight": 0,
"price_per_leg": {
"currency": "str",
"amount": 0
}
}
]
}
],
"summary": {
"leg_summaries": [
{
"additional_services": [
{
"service_id": "string",
"service_class": "luggage_personal",
"quantity": 0,
"price": {
"currency": "str",
"amount": 0
},
"can_increment": true,
"can_decrement": true,
"dimensions": {
"length": 0,
"width": 0,
"height": 0
},
"passenger_id": "string",
"weight": 0,
"price_per_leg": {
"currency": "str",
"amount": 0
}
}
],
"bundle": {
"code": "string",
"price": {
"currency": "str",
"amount": 0
}
},
"included_services": [
{
"bundle_code": "string",
"quantity": 0,
"service_class": "luggage_personal",
"dimensions": {
"length": 0,
"width": 0,
"height": 0
},
"weight": 0
}
],
"leg_ids": [
"string"
]
}
],
"fees": [
{
"fee_type": "dohop_service_fee",
"price": {
"currency": "str",
"amount": 0
}
}
],
"total": {
"currency": "str",
"amount": 0
},
"ticket_price": {
"total_tax": {
"currency": "str",
"amount": 0
},
"total_fare": {
"currency": "str",
"amount": 0
}
}
},
"errors": [
{
"initial_price": {
"currency": "str",
"amount": 0
},
"new_price": {
"currency": "str",
"amount": 0
}
}
],
"services_need_fetching": true
}{
"errors": [
{
"status_text": "Incomplete",
"error_code": "string",
"response_code": 0,
"description": "string",
"recoverable": true
}
]
}Update the selected quantity of a luggage service.
Update the selected quantity of a luggage service. Other services cannot be selected.
In: header
Path Parameters
Id of offer
0 <= valueResponse Body
curl -X PATCH "https://api.staging.dohop.io/connect_api/v1/string/services" \ -H "Content-Type: application/json" \ -d '{ "service_id": "string", "quantity": 0 }'{
"offer_id": "string",
"expires_at": "2019-08-24T14:15:22Z",
"passengers": [
{
"passenger_id": "string",
"date_of_birth": "2019-08-24",
"first_name": "string",
"gender": "m",
"last_name": "string",
"passport_country": "string",
"passport_expiration": "string",
"passport_number": "string",
"nationality": "string",
"title": "string",
"expected_type": "a",
"traveling_with": "string"
}
],
"requirements": [
"passport_required"
],
"visa_requirements": {
"visa_not_required": [
"string"
]
},
"itinerary": {
"itinerary_tags": [
"overnight"
],
"outbound": [
{
"item_type": "leg",
"active_leg": {
"leg_id": "string",
"origin": {
"airport_iata": "str",
"airport_name": "string",
"city_iata": "string",
"city_name": "string",
"country_code": "st",
"country_name": "string",
"transport_type": "AIRPORT",
"terminal": "string"
},
"destination": {
"airport_iata": "str",
"airport_name": "string",
"city_iata": "string",
"city_name": "string",
"country_code": "st",
"country_name": "string",
"transport_type": "AIRPORT",
"terminal": "string"
},
"duration_in_seconds": 0,
"departure_date": "2019-08-24T14:15:22Z",
"arrival_date": "2019-08-24T14:15:22Z",
"flight_number": "string",
"aircraft_id": "string",
"marketing_carrier": {
"code": "string",
"name": "string"
},
"operating_carrier": {
"code": "string",
"name": "string"
},
"arrival_terminal": "string"
}
}
],
"homebound": [
{
"item_type": "leg",
"active_leg": {
"leg_id": "string",
"origin": {
"airport_iata": "str",
"airport_name": "string",
"city_iata": "string",
"city_name": "string",
"country_code": "st",
"country_name": "string",
"transport_type": "AIRPORT",
"terminal": "string"
},
"destination": {
"airport_iata": "str",
"airport_name": "string",
"city_iata": "string",
"city_name": "string",
"country_code": "st",
"country_name": "string",
"transport_type": "AIRPORT",
"terminal": "string"
},
"duration_in_seconds": 0,
"departure_date": "2019-08-24T14:15:22Z",
"arrival_date": "2019-08-24T14:15:22Z",
"flight_number": "string",
"aircraft_id": "string",
"marketing_carrier": {
"code": "string",
"name": "string"
},
"operating_carrier": {
"code": "string",
"name": "string"
},
"arrival_terminal": "string"
}
}
]
},
"bundle_groups": [
{
"bundles": [
{
"all_services": [
{
"bundle_code": "string",
"quantity": 0,
"service_class": "luggage_personal",
"dimensions": {
"length": 0,
"width": 0,
"height": 0
},
"weight": 0
}
],
"bundle_id": "string",
"bundle_codes": [
"string"
],
"is_selected": true,
"price": {
"currency": "str",
"amount": 0
},
"services": [
{
"bundle_code": "string",
"quantity": 0,
"service_class": "luggage_personal",
"dimensions": {
"length": 0,
"width": 0,
"height": 0
},
"weight": 0
}
]
}
],
"carrier_codes": [
"string"
],
"leg_ids": [
"string"
]
}
],
"service_groups": [
{
"carrier_codes": [
"string"
],
"leg_ids": [
"string"
],
"passenger_id": "string",
"services": [
{
"service_id": "string",
"service_class": "luggage_personal",
"quantity": 0,
"price": {
"currency": "str",
"amount": 0
},
"can_increment": true,
"can_decrement": true,
"dimensions": {
"length": 0,
"width": 0,
"height": 0
},
"passenger_id": "string",
"weight": 0,
"price_per_leg": {
"currency": "str",
"amount": 0
}
}
]
}
],
"summary": {
"leg_summaries": [
{
"additional_services": [
{
"service_id": "string",
"service_class": "luggage_personal",
"quantity": 0,
"price": {
"currency": "str",
"amount": 0
},
"can_increment": true,
"can_decrement": true,
"dimensions": {
"length": 0,
"width": 0,
"height": 0
},
"passenger_id": "string",
"weight": 0,
"price_per_leg": {
"currency": "str",
"amount": 0
}
}
],
"bundle": {
"code": "string",
"price": {
"currency": "str",
"amount": 0
}
},
"included_services": [
{
"bundle_code": "string",
"quantity": 0,
"service_class": "luggage_personal",
"dimensions": {
"length": 0,
"width": 0,
"height": 0
},
"weight": 0
}
],
"leg_ids": [
"string"
]
}
],
"fees": [
{
"fee_type": "dohop_service_fee",
"price": {
"currency": "str",
"amount": 0
}
}
],
"total": {
"currency": "str",
"amount": 0
},
"ticket_price": {
"total_tax": {
"currency": "str",
"amount": 0
},
"total_fare": {
"currency": "str",
"amount": 0
}
}
},
"errors": [
{
"initial_price": {
"currency": "str",
"amount": 0
},
"new_price": {
"currency": "str",
"amount": 0
}
}
],
"services_need_fetching": true
}{
"errors": [
{
"status_text": "Incomplete",
"error_code": "string",
"response_code": 0,
"description": "string",
"recoverable": true
}
]
}