Coverage API

Quote

A quote tells you which product applies to an itinerary and what it costs.

Quote the coverage products for an itinerary

Returns every product available for the itinerary, each priced for the whole itinerary and all passengers. products is empty when the itinerary is eligible for none.

Products are offered only when the first flight departs at least 48 hours from now.

A quote reserves nothing. POST /order checks eligibility and prices the itinerary again, and rejects the order when the product is no longer available or the price no longer matches the quoted one.

POST
/quote
apikey<token>

In: header

itineraryItinerary
languageLanguage

ISO 639-1 language code

Match^[a-z]{2}$

Response Body

curl -X POST "https://api.staging.dohop.io/coverage/v1/quote" \  -H "Content-Type: application/json" \  -d '{    "itinerary": {      "outbound": {        "flights": [          {            "flight_number": "string",            "origin": "string",            "destination": "string",            "departure": "2019-08-24T14:15:22Z",            "arrival": "2019-08-24T14:15:22Z"          }        ]      },      "number_of_passengers": 1    },    "language": "string"  }'
{
  "products": [
    {
      "code": "protected",
      "price": {
        "amount": 0,
        "currency": "string"
      },
      "terms_url": "string"
    }
  ]
}
{
  "errors": [
    {
      "status_text": "Incomplete",
      "error_code": "string",
      "response_code": 0,
      "description": "string",
      "recoverable": true
    }
  ]
}
{
  "errors": [
    {
      "status_text": "Incomplete",
      "error_code": "string",
      "response_code": 0,
      "description": "string",
      "recoverable": true
    }
  ]
}