---
updatedAt: 2026-06-19T11:48:37.000Z
agentTools:
  projectIndex: https://docs.nuitee.com/llms.txt
---

# Flexible-date price matrix (one-way or round-trip)

## Overview

Search the cheapest fare for each departure (and, on round-trips, return) date combination across a grid of nearby dates — `±flexDays` around the dates in your request. Accepts the same `legs`-based body as `POST /flights/rates` plus optional `flexDays` (1–3, default 3).

**Supported:** one-way (1 leg) or round-trip (2 legs) only. Multi-city (3+ legs) is not supported.

**Date limit:** each leg `date` must not be more than 11 months from today (same as `POST /flights/rates`).

**Not supported:** top-level `origin`, `destination`, `departureDate`, or `returnDate` — use `legs` only.

## Access

Requires Flights API access and matrix enablement on your account. Matrix search is not enabled by default — contact the LiteAPI support team to request access.

## When to Use

- **Flexible-date calendars** — price heatmap when the traveller can shift dates
- **Cheap-date discovery** — find the lowest fare in a ±N day window before a full `/flights/rates` search
- **Round-trip date pairing** — compare outbound × return combinations on one grid
- **Progressive UI** — stream cells over SSE as each underlying search completes

## What You Get

- **`cells`** — one entry per valid date combination, sorted by `(outboundOffset, returnOffset)`
- **`cheapest`** — globally lowest-priced cell (null when nothing was priced)
- **`currency`** — currency of the global cheapest cell
- **`baseOutboundDate`** / **`baseReturnDate`** — the originally requested dates
- **`flexDays`**, **`roundTrip`** — grid metadata
- Per-cell **`price`**, **`currency`**, date offsets, and whether the underlying search was **`cached`** or **`success`**
- **Margined prices** — cell `price`, `cheapest`, and `currency` include the authenticated user's rate-search margin (same as `/flights/rates`)

## Key Features

- Probes `±flexDays` (1–3) around requested departure and return dates
- Each underlying date pair uses normal provider caching — a later `POST /flights/rates` for a matrix date is served from warm cache
- **SSE:** send header `Accept: text/event-stream` for incremental events: `matrix-start` (grid skeleton), `matrix-chunk` (one priced cell), `matrix-complete` (full sorted grid + cheapest)
- Same global `filters`, `sort`, and `options` as `/flights/rates` where applicable

## Quick Start

**Required:** `legs` (1 leg for one-way or 2 for round-trip, each with `origin`, `destination`, `date`), `adults` (≥ 1), `currency`

**Optional:** `flexDays` (1–3, default 3), `country`, passenger counts, `filters`, `sort`

**Round-trip:** two legs — outbound then return with optional `direction` `OUTBOUND` / `INBOUND`. **One-way:** one leg.

After choosing a date pair from the matrix, call `POST /flights/rates` with `legs` set to those dates for full offer details.

# OpenAPI definition

```json
{
  "openapi": "3.0.0",
  "info": {
    "title": "API: Flights",
    "version": "3.0.0",
    "description": "The Flights API provides endpoints for searching flights, managing bookings, and accessing static flight data including airlines and airports."
  },
  "servers": [
    {
      "url": "https://api.liteapi.travel/v3.0"
    }
  ],
  "security": [
    {
      "apikeyAuth": []
    }
  ],
  "components": {
    "securitySchemes": {
      "apikeyAuth": {
        "name": "X-API-Key",
        "type": "apiKey",
        "in": "header"
      }
    },
    "schemas": {
      "FlightMatrixCell": {
        "type": "object",
        "description": "Cheapest-price summary for a single departure/return date combination.",
        "properties": {
          "outboundDate": {
            "type": "string",
            "format": "date",
            "description": "Departure date for this cell (YYYY-MM-DD).",
            "example": "2026-08-26"
          },
          "outboundOffset": {
            "type": "integer",
            "description": "Days from the requested departure date (-flexDays..+flexDays).",
            "example": 0
          },
          "returnDate": {
            "type": "string",
            "format": "date",
            "nullable": true,
            "description": "Return date for this cell (YYYY-MM-DD). Null for one-way searches.",
            "example": "2026-09-03"
          },
          "returnOffset": {
            "type": "integer",
            "nullable": true,
            "description": "Days from the requested return date (-flexDays..+flexDays). Null for one-way searches.",
            "example": 0
          },
          "price": {
            "type": "number",
            "format": "float",
            "nullable": true,
            "description": "Cheapest display total for this date combination (includes rate-search margin). Null when no priced offer was found.",
            "example": 491.81
          },
          "currency": {
            "type": "string",
            "nullable": true,
            "description": "ISO 4217 currency of the cell price. Null when no priced offer was found.",
            "example": "EUR"
          },
          "success": {
            "type": "boolean",
            "description": "True when the underlying search returned at least one priced offer for this combination."
          },
          "cached": {
            "type": "boolean",
            "description": "True when the underlying search was served from cache."
          }
        }
      },
      "FlightMatrixData": {
        "type": "object",
        "description": "Flexible-date price matrix: cheapest fare per date combination around the requested dates.",
        "properties": {
          "baseOutboundDate": {
            "type": "string",
            "format": "date",
            "description": "The originally requested departure date (YYYY-MM-DD).",
            "example": "2026-08-26"
          },
          "baseReturnDate": {
            "type": "string",
            "format": "date",
            "nullable": true,
            "description": "The originally requested return date. Null for one-way searches.",
            "example": "2026-09-03"
          },
          "cells": {
            "type": "array",
            "description": "One cell per valid date combination, sorted by (outboundOffset, returnOffset).",
            "items": {
              "$ref": "#/components/schemas/FlightMatrixCell"
            }
          },
          "cheapest": {
            "allOf": [
              {
                "$ref": "#/components/schemas/FlightMatrixCell"
              }
            ],
            "nullable": true,
            "description": "The globally cheapest cell across the whole grid. Null when no cell was priced."
          },
          "currency": {
            "type": "string",
            "nullable": true,
            "description": "ISO 4217 currency of the global cheapest cell. Null when nothing was priced.",
            "example": "EUR"
          },
          "flexDays": {
            "type": "integer",
            "description": "Effective flexibility window applied (1-3).",
            "example": 3
          },
          "roundTrip": {
            "type": "boolean",
            "description": "True when the request was a round-trip (return dates vary across columns)."
          },
          "totalCells": {
            "type": "integer",
            "nullable": true,
            "description": "Total number of date combinations in the grid. Present on matrix-start SSE events; omitted from the non-streaming JSON response."
          }
        }
      },
      "FlightMatrixResponse": {
        "type": "object",
        "description": "Response for POST /flights/rates/matrix.",
        "required": [
          "data"
        ],
        "properties": {
          "data": {
            "type": "array",
            "description": "Matrix result sets (one element for this endpoint).",
            "items": {
              "$ref": "#/components/schemas/FlightMatrixData"
            }
          }
        }
      },
      "Error": {
        "type": "object",
        "properties": {
          "error": {
            "type": "object",
            "properties": {
              "code": {
                "type": "integer",
                "description": "Numeric error code"
              },
              "message": {
                "type": "string",
                "description": "Short error message"
              },
              "description": {
                "type": "string",
                "description": "Detailed error description"
              },
              "key": {
                "type": "string",
                "description": "JSON path to the offending request field (e.g. bodyRequest.offerId, query.airlinePnr). Present on validation and client-input errors; omitted on auth and server-side errors.",
                "example": "bodyRequest.offerId"
              }
            },
            "description": "Error details"
          }
        },
        "description": "Standard error response envelope",
        "example": {
          "error": {
            "code": 4000,
            "message": "bad request",
            "description": "invalid flight extra charges: usePaymentSdk must be true for Stripe bookings"
          }
        }
      }
    }
  },
  "tags": [
    {
      "name": "Flight Search",
      "description": "Search for available flights and verify offers"
    }
  ],
  "paths": {
    "/flights/rates/matrix": {
      "post": {
        "tags": [
          "Flight Search"
        ],
        "operationId": "searchFlightsMatrix",
        "summary": "Flexible-date price matrix (one-way or round-trip)",
        "description": "## Overview\n\nSearch the cheapest fare for each departure (and, on round-trips, return) date combination across a grid of nearby dates — `±flexDays` around the dates in your request. Accepts the same `legs`-based body as `POST /flights/rates` plus optional `flexDays` (1–3, default 3).\n\n**Supported:** one-way (1 leg) or round-trip (2 legs) only. Multi-city (3+ legs) is not supported.\n\n**Date limit:** each leg `date` must not be more than 11 months from today (same as `POST /flights/rates`).\n\n**Not supported:** top-level `origin`, `destination`, `departureDate`, or `returnDate` — use `legs` only.\n\n## Access\n\nRequires Flights API access and matrix enablement on your account. Matrix search is not enabled by default — contact the LiteAPI support team to request access.\n\n## When to Use\n\n- **Flexible-date calendars** — price heatmap when the traveller can shift dates\n- **Cheap-date discovery** — find the lowest fare in a ±N day window before a full `/flights/rates` search\n- **Round-trip date pairing** — compare outbound × return combinations on one grid\n- **Progressive UI** — stream cells over SSE as each underlying search completes\n\n## What You Get\n\n- **`cells`** — one entry per valid date combination, sorted by `(outboundOffset, returnOffset)`\n- **`cheapest`** — globally lowest-priced cell (null when nothing was priced)\n- **`currency`** — currency of the global cheapest cell\n- **`baseOutboundDate`** / **`baseReturnDate`** — the originally requested dates\n- **`flexDays`**, **`roundTrip`** — grid metadata\n- Per-cell **`price`**, **`currency`**, date offsets, and whether the underlying search was **`cached`** or **`success`**\n- **Margined prices** — cell `price`, `cheapest`, and `currency` include the authenticated user's rate-search margin (same as `/flights/rates`)\n\n## Key Features\n\n- Probes `±flexDays` (1–3) around requested departure and return dates\n- Each underlying date pair uses normal provider caching — a later `POST /flights/rates` for a matrix date is served from warm cache\n- **SSE:** send header `Accept: text/event-stream` for incremental events: `matrix-start` (grid skeleton), `matrix-chunk` (one priced cell), `matrix-complete` (full sorted grid + cheapest)\n- Same global `filters`, `sort`, and `options` as `/flights/rates` where applicable\n\n## Quick Start\n\n**Required:** `legs` (1 leg for one-way or 2 for round-trip, each with `origin`, `destination`, `date`), `adults` (≥ 1), `currency`\n\n**Optional:** `flexDays` (1–3, default 3), `country`, passenger counts, `filters`, `sort`\n\n**Round-trip:** two legs — outbound then return with optional `direction` `OUTBOUND` / `INBOUND`. **One-way:** one leg.\n\nAfter choosing a date pair from the matrix, call `POST /flights/rates` with `legs` set to those dates for full offer details.",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "legs",
                  "adults",
                  "currency"
                ],
                "properties": {
                  "legs": {
                    "type": "array",
                    "minItems": 1,
                    "maxItems": 2,
                    "description": "One leg (one-way) or two legs (round-trip). Multi-city is not supported.",
                    "items": {
                      "type": "object",
                      "required": [
                        "origin",
                        "destination",
                        "date"
                      ],
                      "properties": {
                        "origin": {
                          "type": "string",
                          "description": "Origin airport or city IATA code for this leg.",
                          "example": "LON"
                        },
                        "destination": {
                          "type": "string",
                          "description": "Destination airport or city IATA code for this leg.",
                          "example": "PAR"
                        },
                        "date": {
                          "type": "string",
                          "format": "date",
                          "description": "Departure date for this leg (YYYY-MM-DD). Must not be more than 11 months from today.",
                          "example": "2026-08-26"
                        },
                        "direction": {
                          "type": "string",
                          "enum": [
                            "OUTBOUND",
                            "INBOUND"
                          ],
                          "description": "Leg direction (optional; defaults to OUTBOUND on the provider).",
                          "example": "OUTBOUND"
                        }
                      }
                    },
                    "example": [
                      {
                        "origin": "LON",
                        "destination": "PAR",
                        "date": "2026-08-26",
                        "direction": "OUTBOUND"
                      }
                    ]
                  },
                  "adults": {
                    "type": "integer",
                    "minimum": 1,
                    "description": "Number of adult passengers (≥ 1).",
                    "example": 1
                  },
                  "children": {
                    "type": "integer",
                    "minimum": 0,
                    "description": "Number of child passengers (ages 2-11).",
                    "example": 0
                  },
                  "infants": {
                    "type": "integer",
                    "minimum": 0,
                    "description": "Number of infant passengers (under 2).",
                    "example": 0
                  },
                  "currency": {
                    "type": "string",
                    "description": "ISO 4217 currency for point of sale and displayed prices.",
                    "example": "EUR"
                  },
                  "country": {
                    "type": "string",
                    "description": "ISO country code for point of sale",
                    "example": "us"
                  },
                  "margin": {
                    "type": "object",
                    "description": "Optional per-request markup override. Only `rateSearch` affects the matrix (cell prices are fares); other categories are accepted for parity with `/flights/rates` but have no effect here. Only honoured when flight margin editing is enabled for your account; ignored otherwise.",
                    "properties": {
                      "rateSearch": {
                        "type": "number",
                        "minimum": 0,
                        "description": "Fare markup percentage applied to matrix cell prices instead of your account-level flight markup.",
                        "example": 10
                      }
                    },
                    "example": {
                      "rateSearch": 10
                    }
                  },
                  "flexDays": {
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 3,
                    "default": 3,
                    "description": "Days before/after requested dates to probe",
                    "example": 3
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Price matrix",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FlightMatrixResponse"
                },
                "example": {
                  "data": [
                    {
                      "baseOutboundDate": "2026-08-26",
                      "cells": [
                        {
                          "outboundDate": "2026-08-23",
                          "outboundOffset": -3,
                          "price": 491.81,
                          "currency": "EUR",
                          "success": true,
                          "cached": true
                        },
                        {
                          "outboundDate": "2026-08-24",
                          "outboundOffset": -2,
                          "price": 804.98,
                          "currency": "EUR",
                          "success": true,
                          "cached": true
                        },
                        {
                          "outboundDate": "2026-08-25",
                          "outboundOffset": -1,
                          "price": 804.98,
                          "currency": "EUR",
                          "success": true,
                          "cached": true
                        },
                        {
                          "outboundDate": "2026-08-26",
                          "outboundOffset": 0,
                          "price": 592.9,
                          "currency": "EUR",
                          "success": true,
                          "cached": true
                        },
                        {
                          "outboundDate": "2026-08-27",
                          "outboundOffset": 1,
                          "price": 926.2,
                          "currency": "EUR",
                          "success": true,
                          "cached": true
                        },
                        {
                          "outboundDate": "2026-08-28",
                          "outboundOffset": 2,
                          "price": 926.2,
                          "currency": "EUR",
                          "success": true,
                          "cached": true
                        },
                        {
                          "outboundDate": "2026-08-29",
                          "outboundOffset": 3,
                          "price": 542.29,
                          "currency": "EUR",
                          "success": true,
                          "cached": true
                        }
                      ],
                      "cheapest": {
                        "outboundDate": "2026-08-23",
                        "outboundOffset": -3,
                        "price": 491.81,
                        "currency": "EUR",
                        "success": true,
                        "cached": true
                      },
                      "currency": "EUR",
                      "flexDays": 3,
                      "roundTrip": false
                    }
                  ]
                }
              },
              "text/event-stream": {
                "schema": {
                  "type": "string",
                  "description": "When the request includes `Accept: text/event-stream`. Server-Sent Events (SSE): each message has an `event:` line (kebab-case: `matrix-start`, `matrix-chunk`, `matrix-complete`) and one or more `data:` lines, terminated by a blank line. All events use the same `{\"data\":[...]}` envelope as the JSON 200 response. `matrix-start` carries the grid skeleton (unpriced cells + `totalCells`). Each `matrix-chunk` carries one priced cell in the same `data[]` shape as the `application/json` 200 response. `matrix-complete` carries the full sorted grid and `cheapest` (parallel to `rates-chunk` / `rates-complete` on `POST /flights/rates`)."
                },
                "example": "event: matrix-start\ndata: {\"data\":[{\"baseOutboundDate\":\"2026-08-26\",\"baseReturnDate\":null,\"cells\":[{\"outboundDate\":\"2026-08-23\",\"returnDate\":null,\"outboundOffset\":-3,\"returnOffset\":null,\"success\":false,\"price\":null,\"currency\":null,\"cached\":false,\"error\":null},{\"outboundDate\":\"2026-08-24\",\"returnDate\":null,\"outboundOffset\":-2,\"returnOffset\":null,\"success\":false,\"price\":null,\"currency\":null,\"cached\":false,\"error\":null},{\"outboundDate\":\"2026-08-25\",\"returnDate\":null,\"outboundOffset\":-1,\"returnOffset\":null,\"success\":false,\"price\":null,\"currency\":null,\"cached\":false,\"error\":null},{\"outboundDate\":\"2026-08-26\",\"returnDate\":null,\"outboundOffset\":0,\"returnOffset\":null,\"success\":false,\"price\":null,\"currency\":null,\"cached\":false,\"error\":null},{\"outboundDate\":\"2026-08-27\",\"returnDate\":null,\"outboundOffset\":1,\"returnOffset\":null,\"success\":false,\"price\":null,\"currency\":null,\"cached\":false,\"error\":null},{\"outboundDate\":\"2026-08-28\",\"returnDate\":null,\"outboundOffset\":2,\"returnOffset\":null,\"success\":false,\"price\":null,\"currency\":null,\"cached\":false,\"error\":null},{\"outboundDate\":\"2026-08-29\",\"returnDate\":null,\"outboundOffset\":3,\"returnOffset\":null,\"success\":false,\"price\":null,\"currency\":null,\"cached\":false,\"error\":null}],\"flexDays\":3,\"roundTrip\":false,\"totalCells\":7}]}\n\nevent: matrix-chunk\ndata: {\"data\":[{\"baseOutboundDate\":\"\",\"cells\":[{\"outboundDate\":\"2026-08-24\",\"outboundOffset\":-2,\"price\":805.08,\"currency\":\"EUR\",\"success\":true,\"cached\":true}],\"flexDays\":0,\"roundTrip\":false}]}\n\nevent: matrix-chunk\ndata: {\"data\":[{\"baseOutboundDate\":\"\",\"cells\":[{\"outboundDate\":\"2026-08-25\",\"outboundOffset\":-1,\"price\":805.08,\"currency\":\"EUR\",\"success\":true,\"cached\":true}],\"flexDays\":0,\"roundTrip\":false}]}\n\nevent: matrix-chunk\ndata: {\"data\":[{\"baseOutboundDate\":\"\",\"cells\":[{\"outboundDate\":\"2026-08-23\",\"outboundOffset\":-3,\"price\":491.81,\"currency\":\"EUR\",\"success\":true,\"cached\":true}],\"flexDays\":0,\"roundTrip\":false}]}\n\nevent: matrix-chunk\ndata: {\"data\":[{\"baseOutboundDate\":\"\",\"cells\":[{\"outboundDate\":\"2026-08-26\",\"outboundOffset\":0,\"price\":592.9,\"currency\":\"EUR\",\"success\":true,\"cached\":true}],\"flexDays\":0,\"roundTrip\":false}]}\n\nevent: matrix-chunk\ndata: {\"data\":[{\"baseOutboundDate\":\"\",\"cells\":[{\"outboundDate\":\"2026-08-28\",\"outboundOffset\":2,\"price\":926.2,\"currency\":\"EUR\",\"success\":true,\"cached\":true}],\"flexDays\":0,\"roundTrip\":false}]}\n\nevent: matrix-chunk\ndata: {\"data\":[{\"baseOutboundDate\":\"\",\"cells\":[{\"outboundDate\":\"2026-08-27\",\"outboundOffset\":1,\"price\":926.2,\"currency\":\"EUR\",\"success\":true,\"cached\":true}],\"flexDays\":0,\"roundTrip\":false}]}\n\nevent: matrix-chunk\ndata: {\"data\":[{\"baseOutboundDate\":\"\",\"cells\":[{\"outboundDate\":\"2026-08-29\",\"outboundOffset\":3,\"price\":542.29,\"currency\":\"EUR\",\"success\":true,\"cached\":true}],\"flexDays\":0,\"roundTrip\":false}]}\n\nevent: matrix-complete\ndata: {\"data\":[{\"baseOutboundDate\":\"2026-08-26\",\"cells\":[{\"outboundDate\":\"2026-08-23\",\"outboundOffset\":-3,\"price\":491.81,\"currency\":\"EUR\",\"success\":true,\"cached\":true},{\"outboundDate\":\"2026-08-24\",\"outboundOffset\":-2,\"price\":805.08,\"currency\":\"EUR\",\"success\":true,\"cached\":true},{\"outboundDate\":\"2026-08-25\",\"outboundOffset\":-1,\"price\":805.08,\"currency\":\"EUR\",\"success\":true,\"cached\":true},{\"outboundDate\":\"2026-08-26\",\"outboundOffset\":0,\"price\":592.9,\"currency\":\"EUR\",\"success\":true,\"cached\":true},{\"outboundDate\":\"2026-08-27\",\"outboundOffset\":1,\"price\":926.2,\"currency\":\"EUR\",\"success\":true,\"cached\":true},{\"outboundDate\":\"2026-08-28\",\"outboundOffset\":2,\"price\":926.2,\"currency\":\"EUR\",\"success\":true,\"cached\":true},{\"outboundDate\":\"2026-08-29\",\"outboundOffset\":3,\"price\":542.29,\"currency\":\"EUR\",\"success\":true,\"cached\":true}],\"cheapest\":{\"outboundDate\":\"2026-08-23\",\"outboundOffset\":-3,\"price\":491.81,\"currency\":\"EUR\",\"success\":true,\"cached\":true},\"currency\":\"EUR\",\"flexDays\":3,\"roundTrip\":false}]}\n"
              }
            }
          },
          "400": {
            "description": "Bad request — missing or invalid matrix search parameters",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "missingRequiredField": {
                    "summary": "Missing required field",
                    "value": {
                      "error": {
                        "code": 41002,
                        "description": "field 'Legs' failed validation 'min'",
                        "message": "required search field is missing",
                        "key": "bodyRequest.legs"
                      }
                    }
                  },
                  "invalidParametersInfant": {
                    "summary": "Invalid parameters: infant not allowed",
                    "value": {
                      "error": {
                        "code": 41012,
                        "description": "number of infants cannot exceed number of adults, each infant must be accompanied by an adult",
                        "message": "search input validation error",
                        "key": "bodyRequest.infants"
                      }
                    }
                  },
                  "invalidLegCount": {
                    "summary": "Matrix supports one-way or round-trip only",
                    "value": {
                      "error": {
                        "code": 41012,
                        "description": "matrix search supports one-way (1 leg) or round-trip (2 legs) only",
                        "message": "search input validation error",
                        "key": "bodyRequest.legs"
                      }
                    }
                  },
                  "invalidFlexDays": {
                    "summary": "Invalid flexDays value",
                    "value": {
                      "error": {
                        "code": 41012,
                        "description": "must be between 1 and 3",
                        "message": "search input validation error",
                        "key": "bodyRequest.flexDays"
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "unauthorized": {
                    "summary": "Unauthorized",
                    "value": {
                      "error": {
                        "code": 41004,
                        "description": "Authentication failed",
                        "message": "unauthorized"
                      }
                    }
                  },
                  "credentialFailed": {
                    "summary": "Credential resolution failed",
                    "value": {
                      "error": {
                        "code": 41011,
                        "description": "Authentication failed: credential resolution failed",
                        "message": "unauthorized: credential resolution failed"
                      }
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Forbidden — matrix access not enabled for this account",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "example": {
                  "error": {
                    "code": 40301,
                    "description": "user does not have enough permissions to perform this action",
                    "message": "Flights matrix API access is not enabled for this account. Please contact support to get access"
                  }
                }
              }
            }
          },
          "500": {
            "description": "Internal server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "example": {
                  "error": {
                    "code": 51099,
                    "description": "Failed to search flight matrix",
                    "message": "unable to process search request"
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}
```