FlightSegment

defining a flight segment; including both operating and marketing details when applicable

BookingFlightsHotelsReservationsTravel

Properties

Name Type Description
departure object
arrival object
carrierCode string providing the airline / carrier code
number string the flight number as assigned by the carrier
aircraft object
operating object
duration string stop duration in [ISO8601](https://en.wikipedia.org/wiki/ISO_8601) PnYnMnDTnHnMnS format, e.g. PT2H10M
stops array information regarding the different stops composing the flight segment. E.g. technical stop, change of gauge...
bookingStatus string booking status of the segment
segmentType string type of the segment
isFlown boolean indicator set to true if segment is flown
View JSON Schema on GitHub

JSON Schema

flight-order-management-flight-segment-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/amadeus-reservations/refs/heads/main/json-schema/flight-order-management-flight-segment-schema.json",
  "title": "FlightSegment",
  "description": "defining a flight segment; including both operating and marketing details when applicable",
  "type": "object",
  "properties": {
    "departure": {
      "$ref": "#/definitions/FlightEndPoint"
    },
    "arrival": {
      "$ref": "#/definitions/FlightEndPoint"
    },
    "carrierCode": {
      "type": "string",
      "description": "providing the airline / carrier code",
      "minLength": 1,
      "maxLength": 2,
      "example": "DL"
    },
    "number": {
      "type": "string",
      "description": "the flight number as assigned by the carrier",
      "minLength": 1,
      "maxLength": 4,
      "example": "212"
    },
    "aircraft": {
      "$ref": "#/definitions/AircraftEquipment"
    },
    "operating": {
      "$ref": "#/definitions/OperatingFlight"
    },
    "duration": {
      "type": "string",
      "description": "stop duration in [ISO8601](https://en.wikipedia.org/wiki/ISO_8601) PnYnMnDTnHnMnS format, e.g. PT2H10M",
      "example": "PT2H10M"
    },
    "stops": {
      "type": "array",
      "description": "information regarding the different stops composing the flight segment. E.g. technical stop, change of gauge...",
      "items": {
        "$ref": "#/definitions/FlightStop"
      }
    },
    "bookingStatus": {
      "description": "booking status of the segment",
      "type": "string",
      "enum": [
        "CONFIRMED",
        "WAITLISTED",
        "CANCELLED",
        "PENDING",
        "DENIED"
      ],
      "example": "CONFIRMED"
    },
    "segmentType": {
      "description": "type of the segment",
      "type": "string",
      "enum": [
        "ACTIVE",
        "PASSIVE",
        "GHOST",
        "STAFF"
      ],
      "example": "GHOST"
    },
    "isFlown": {
      "type": "boolean",
      "description": "indicator set to true if segment is flown",
      "example": true
    }
  }
}

Work with this as data

Every JSON Schema here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for schemas

4 MCP tools reach this
  • find_json_schemasBrowse and filter every JSON Schema in the catalog.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools

Call it yourself

curl for this page
This JSON Schema
curl "https://apis.io/api/v1/json-schemas/flight-order-management-flight-segment"
All schemas
curl "https://apis.io/api/v1/json-schemas?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no email required.

A second provider on the same verified email joins the account you already have.