Amadeus Solutions · Schema

OriginDestination

OriginDestination schema

AirlinesBookingFlightsGDSHotelsTravelTravel Technology
View JSON Schema on GitHub

JSON Schema

flight-offers-search-origin-destination-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/amadeus-solutions/refs/heads/main/json-schema/flight-offers-search-origin-destination-schema.json",
  "title": "OriginDestination",
  "description": "OriginDestination schema",
  "allOf": [
    {
      "$ref": "#/definitions/OriginDestinationLight"
    },
    {
      "type": "object",
      "properties": {
        "originRadius": {
          "description": "Include other possible locations around the point, located less than this distance in kilometers away. Max:300\n\nCan not be combined with \"dateWindow\" or \"timeWindow\".\n",
          "type": "number",
          "example": 200
        },
        "alternativeOriginsCodes": {
          "type": "array",
          "description": "Set of alternative origin location, such as a city or an airport. Currently, only the locations defined in [IATA](http://www.iata.org/publications/Pages/code-search.aspx) are supported.",
          "minItems": 1,
          "maxItems": 2,
          "items": {
            "title": "code",
            "type": "string"
          },
          "example": [
            "LON",
            "MUC"
          ]
        },
        "destinationRadius": {
          "description": "Include other possible locations around the point, located less than this distance in kilometers away. Max:300\n\nCan not be combined with \"dateWindow\" or \"timeWindow\".\n",
          "type": "number",
          "example": 200
        },
        "alternativeDestinationsCodes": {
          "type": "array",
          "description": "Set of alternative destination location, such as a city or an airport. Currently, only the locations defined in [IATA](http://www.iata.org/publications/Pages/code-search.aspx) are supported.",
          "minItems": 1,
          "maxItems": 2,
          "items": {
            "title": "code",
            "type": "string"
          }
        },
        "departureDateTimeRange": {
          "description": "Approximate date and time of departure, specified as a local date and time range.",
          "$ref": "#/definitions/DateTimeRange"
        },
        "arrivalDateTimeRange": {
          "description": "Approximate date and time of arrival, specified as a local date and time range.",
          "$ref": "#/definitions/DateTimeRange"
        }
      }
    }
  ]
}