{
  "openapi": "3.1.0",
  "info": {
    "title": "BeMyPlan API",
    "version": "1.0.0",
    "description": "The BeMyPlan B2B travel API. Each area (today /data) is versioned on its own; the major is in the path."
  },
  "x-audience": "external-public",
  "tags": [
    {
      "name": "Aircraft",
      "description": "Aircraft types."
    },
    {
      "name": "Airlines",
      "description": "Airlines by IATA/ICAO code."
    },
    {
      "name": "Airports",
      "description": "Airports with city, country, coordinates and IANA time zone."
    },
    {
      "name": "Cities",
      "description": "Cities (IATA metropolitan codes)."
    },
    {
      "name": "Countries",
      "description": "Countries (ISO 3166-1 alpha-2)."
    },
    {
      "name": "Places",
      "description": "Airport and city suggestions by name, code or position."
    }
  ],
  "servers": [
    {
      "url": "https://api.bemyplan.com",
      "description": "Production"
    },
    {
      "url": "https://api.sandbox.bemyplan.com",
      "description": "Sandbox"
    }
  ],
  "paths": {
    "/data/v1/aircraft": {
      "get": {
        "operationId": "dataListAircraft",
        "summary": "List aircraft types",
        "tags": [
          "Aircraft"
        ],
        "security": [
          {
            "apiKey": []
          }
        ],
        "x-required-scope": "data:read",
        "x-error-codes": [
          "credit_account_frozen",
          "credits_unavailable",
          "entitlement_unavailable",
          "insufficient_credits",
          "invalid_cursor",
          "price_unavailable",
          "service_not_enabled"
        ],
        "parameters": [
          {
            "in": "query",
            "name": "limit",
            "schema": {
              "default": 50,
              "description": "Items per page, 1–200 (default 50).",
              "type": "integer",
              "minimum": 1,
              "maximum": 200
            },
            "description": "Items per page, 1–200 (default 50)."
          },
          {
            "in": "query",
            "name": "after",
            "schema": {
              "description": "Cursor mode: the page after this cursor (pass meta.after back).",
              "type": "string",
              "minLength": 1,
              "maxLength": 512
            },
            "description": "Cursor mode: the page after this cursor (pass meta.after back)."
          },
          {
            "in": "query",
            "name": "before",
            "schema": {
              "description": "Cursor mode: the page before this cursor (pass meta.before back).",
              "type": "string",
              "minLength": 1,
              "maxLength": 512
            },
            "description": "Cursor mode: the page before this cursor (pass meta.before back)."
          },
          {
            "in": "query",
            "name": "page",
            "schema": {
              "description": "Page mode: 1-based page; the response adds meta.page and meta.totalCount.",
              "type": "integer",
              "minimum": 1,
              "maximum": 10000
            },
            "description": "Page mode: 1-based page; the response adds meta.page and meta.totalCount."
          },
          {
            "in": "query",
            "name": "iataCode",
            "schema": {
              "type": "string",
              "minLength": 3,
              "maxLength": 3,
              "pattern": "^[A-Za-z0-9]{3}$",
              "description": "IATA aircraft type code, 3 characters. Case-insensitive: lower case is accepted and normalised (trimmed and upper-cased before it is checked); codes in responses are always upper case.",
              "example": "320"
            }
          },
          {
            "in": "query",
            "name": "icaoCode",
            "schema": {
              "type": "string",
              "pattern": "^[A-Za-z0-9]{2,4}$",
              "description": "ICAO aircraft type designator, 2 to 4 characters. Case-insensitive: lower case is accepted and normalised (trimmed and upper-cased before it is checked); codes in responses are always upper case.",
              "example": "A320"
            }
          },
          {
            "in": "query",
            "name": "name",
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 100,
              "description": "Name prefix, matched after transliteration (ø becomes o, ß becomes ss) and case folding.",
              "example": "amster"
            }
          },
          {
            "in": "header",
            "name": "If-None-Match",
            "schema": {
              "description": "A previously returned `ETag`. When it still matches, the answer is 304 with no body (and no charge for a free call).",
              "type": "string"
            },
            "description": "A previously returned `ETag`. When it still matches, the answer is 304 with no body (and no charge for a free call)."
          }
        ],
        "responses": {
          "200": {
            "description": "One page of aircraft types",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/XRequestId"
              },
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimitPolicy"
              },
              "RateLimit": {
                "$ref": "#/components/headers/RateLimit"
              },
              "ETag": {
                "description": "Weak validator of this representation; send it back as `If-None-Match`.",
                "schema": {
                  "type": "string",
                  "example": "W/\"4f2a9c1b7d3e8a05\""
                }
              },
              "Cache-Control": {
                "description": "`private, max-age=3600`: cacheable by the client for an hour.",
                "schema": {
                  "type": "string",
                  "example": "private, max-age=3600"
                }
              }
            },
            "content": {
              "application/json": {
                "example": {
                  "data": [
                    {
                      "id": "arc_f3nfkufdtvkmjdp5",
                      "iataCode": "320",
                      "icaoCode": "A320",
                      "name": "Airbus A320",
                      "manufacturer": "Airbus",
                      "active": true
                    }
                  ],
                  "meta": {
                    "requestId": "0b6f3c1e-8f0a-4a39-9a55-2d4d7f3e1c11",
                    "limit": 50,
                    "after": "l1.W1siYW1zdGVyZGFtIGFpcnBvcnQgc2NoaXBob2wiXSwiYXJwX2l3cWVhd3d1ZnhiNGg1cWEiXQ",
                    "before": null
                  }
                },
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Aircraft"
                      }
                    },
                    "meta": {
                      "type": "object",
                      "properties": {
                        "requestId": {
                          "type": "string",
                          "example": "0b6f3c1e-8f0a-4a39-9a55-2d4d7f3e1c11"
                        },
                        "limit": {
                          "type": "integer",
                          "minimum": 1,
                          "maximum": 2147483647,
                          "example": 50
                        },
                        "after": {
                          "example": "l1.W1siYW1zdGVyZGFtIGFpcnBvcnQgc2NoaXBob2wiXSwiYXJwX2l3cWVhd3d1ZnhiNGg1cWEiXQ",
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "before": {
                          "example": null,
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "page": {
                          "type": "integer",
                          "minimum": 1,
                          "maximum": 2147483647
                        },
                        "totalCount": {
                          "type": "integer",
                          "minimum": 0,
                          "maximum": 2147483647
                        }
                      },
                      "required": [
                        "requestId",
                        "limit",
                        "after",
                        "before"
                      ]
                    }
                  },
                  "required": [
                    "data",
                    "meta"
                  ]
                }
              }
            }
          },
          "304": {
            "description": "Not modified: `If-None-Match` matched the current `ETag`. No body.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/XRequestId"
              },
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimitPolicy"
              },
              "RateLimit": {
                "$ref": "#/components/headers/RateLimit"
              },
              "ETag": {
                "description": "Weak validator of this representation; send it back as `If-None-Match`.",
                "schema": {
                  "type": "string",
                  "example": "W/\"4f2a9c1b7d3e8a05\""
                }
              },
              "Cache-Control": {
                "description": "`private, max-age=3600`: cacheable by the client for an hour.",
                "schema": {
                  "type": "string",
                  "example": "private, max-age=3600"
                }
              }
            }
          },
          "400": {
            "description": "Validation failed (`validation`)",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/XRequestId"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                },
                "examples": {
                  "invalid_request": {
                    "summary": "The request failed schema validation; see fields and formErrors.",
                    "value": {
                      "error": {
                        "category": "validation",
                        "code": "invalid_request",
                        "message": "The request failed schema validation; see fields and formErrors.",
                        "requestId": "0b6f3c1e-8f0a-4a39-9a55-2d4d7f3e1c11",
                        "fields": {
                          "limit": [
                            "Too big: expected number to be <=200"
                          ]
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Not authenticated (`unauthorized`)",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/XRequestId"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                },
                "examples": {
                  "api_key_invalid": {
                    "summary": "The API key is unknown, revoked or malformed.",
                    "value": {
                      "error": {
                        "category": "unauthorized",
                        "code": "api_key_invalid",
                        "message": "The API key is unknown, revoked or malformed.",
                        "requestId": "0b6f3c1e-8f0a-4a39-9a55-2d4d7f3e1c11"
                      }
                    }
                  }
                }
              }
            }
          },
          "402": {
            "description": "Payment required — e.g. not enough credits (`quota_exceeded`)",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/XRequestId"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                },
                "examples": {
                  "insufficient_credits": {
                    "summary": "Not enough credits for this call (balance plus credit allowance). Ask your BeMyPlan contact to top up.",
                    "value": {
                      "error": {
                        "category": "quota_exceeded",
                        "code": "insufficient_credits",
                        "message": "Not enough credits for this call (balance plus credit allowance). Ask your BeMyPlan contact to top up.",
                        "requestId": "0b6f3c1e-8f0a-4a39-9a55-2d4d7f3e1c11",
                        "details": {
                          "required": 1,
                          "available": 0,
                          "balance": -100,
                          "creditAllowance": 100
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Not allowed (`forbidden`)",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/XRequestId"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                },
                "examples": {
                  "insufficient_scope": {
                    "summary": "The API key lacks the scope this route requires.",
                    "value": {
                      "error": {
                        "category": "forbidden",
                        "code": "insufficient_scope",
                        "message": "The API key lacks the scope this route requires.",
                        "requestId": "0b6f3c1e-8f0a-4a39-9a55-2d4d7f3e1c11"
                      }
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "Rate limited or quota exhausted (`rate_limited` / `quota_exceeded`); `Retry-After` gives the wait in seconds",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/XRequestId"
              },
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfter"
              },
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimitPolicy"
              },
              "RateLimit": {
                "$ref": "#/components/headers/RateLimit"
              },
              "BMP-Rate-Limited-Reason": {
                "$ref": "#/components/headers/BmpRateLimitedReason"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                },
                "examples": {
                  "rate_limited": {
                    "summary": "Too many requests; back off and retry after Retry-After.",
                    "value": {
                      "error": {
                        "category": "rate_limited",
                        "code": "rate_limited",
                        "message": "Too many requests; back off and retry after Retry-After.",
                        "requestId": "0b6f3c1e-8f0a-4a39-9a55-2d4d7f3e1c11",
                        "details": {
                          "msBeforeNext": 12000,
                          "reason": "account-rate",
                          "policy": "account"
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "503": {
            "description": "Temporarily unavailable (`upstream_error`); a retryable outage (`auth_unavailable`, `credits_unavailable`, `entitlement_unavailable`, `refdata_unavailable`) carries `Retry-After`",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/XRequestId"
              },
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfter"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                },
                "examples": {
                  "auth_unavailable": {
                    "summary": "The session store did not answer in time; retry shortly.",
                    "value": {
                      "error": {
                        "category": "upstream_error",
                        "code": "auth_unavailable",
                        "message": "The session store did not answer in time; retry shortly.",
                        "requestId": "0b6f3c1e-8f0a-4a39-9a55-2d4d7f3e1c11"
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/data/v1/aircraft/{aircraftId}": {
      "get": {
        "operationId": "dataGetAircraft",
        "summary": "Get one aircraft type by id (includes inactive)",
        "tags": [
          "Aircraft"
        ],
        "security": [
          {
            "apiKey": []
          }
        ],
        "x-required-scope": "data:read",
        "x-error-codes": [
          "aircraft_not_found",
          "credit_account_frozen",
          "credits_unavailable",
          "entitlement_unavailable",
          "insufficient_credits",
          "price_unavailable",
          "service_not_enabled"
        ],
        "parameters": [
          {
            "in": "path",
            "name": "aircraftId",
            "schema": {
              "type": "string",
              "pattern": "^arc_[a-z2-7]{16}$",
              "description": "The id from a list response. Lower case only; ids are not normalised.",
              "example": "arc_f3nfkufdtvkmjdp5"
            },
            "required": true,
            "description": "The id from a list response. Lower case only; ids are not normalised."
          },
          {
            "in": "header",
            "name": "If-None-Match",
            "schema": {
              "description": "A previously returned `ETag`. When it still matches, the answer is 304 with no body (and no charge for a free call).",
              "type": "string"
            },
            "description": "A previously returned `ETag`. When it still matches, the answer is 304 with no body (and no charge for a free call)."
          }
        ],
        "responses": {
          "200": {
            "description": "The aircraft type",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/XRequestId"
              },
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimitPolicy"
              },
              "RateLimit": {
                "$ref": "#/components/headers/RateLimit"
              },
              "ETag": {
                "description": "Weak validator of this representation; send it back as `If-None-Match`.",
                "schema": {
                  "type": "string",
                  "example": "W/\"4f2a9c1b7d3e8a05\""
                }
              },
              "Cache-Control": {
                "description": "`private, max-age=3600`: cacheable by the client for an hour.",
                "schema": {
                  "type": "string",
                  "example": "private, max-age=3600"
                }
              }
            },
            "content": {
              "application/json": {
                "example": {
                  "data": {
                    "id": "arc_f3nfkufdtvkmjdp5",
                    "iataCode": "320",
                    "icaoCode": "A320",
                    "name": "Airbus A320",
                    "manufacturer": "Airbus",
                    "active": true
                  },
                  "meta": {
                    "requestId": "0b6f3c1e-8f0a-4a39-9a55-2d4d7f3e1c11"
                  }
                },
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/Aircraft"
                    },
                    "meta": {
                      "type": "object",
                      "properties": {
                        "requestId": {
                          "type": "string",
                          "example": "0b6f3c1e-8f0a-4a39-9a55-2d4d7f3e1c11"
                        }
                      },
                      "required": [
                        "requestId"
                      ]
                    }
                  },
                  "required": [
                    "data",
                    "meta"
                  ]
                }
              }
            }
          },
          "304": {
            "description": "Not modified: `If-None-Match` matched the current `ETag`. No body.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/XRequestId"
              },
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimitPolicy"
              },
              "RateLimit": {
                "$ref": "#/components/headers/RateLimit"
              },
              "ETag": {
                "description": "Weak validator of this representation; send it back as `If-None-Match`.",
                "schema": {
                  "type": "string",
                  "example": "W/\"4f2a9c1b7d3e8a05\""
                }
              },
              "Cache-Control": {
                "description": "`private, max-age=3600`: cacheable by the client for an hour.",
                "schema": {
                  "type": "string",
                  "example": "private, max-age=3600"
                }
              }
            }
          },
          "400": {
            "description": "Validation failed (`validation`)",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/XRequestId"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                },
                "examples": {
                  "invalid_request": {
                    "summary": "The request failed schema validation; see fields and formErrors.",
                    "value": {
                      "error": {
                        "category": "validation",
                        "code": "invalid_request",
                        "message": "The request failed schema validation; see fields and formErrors.",
                        "requestId": "0b6f3c1e-8f0a-4a39-9a55-2d4d7f3e1c11",
                        "fields": {
                          "limit": [
                            "Too big: expected number to be <=200"
                          ]
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Not authenticated (`unauthorized`)",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/XRequestId"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                },
                "examples": {
                  "api_key_invalid": {
                    "summary": "The API key is unknown, revoked or malformed.",
                    "value": {
                      "error": {
                        "category": "unauthorized",
                        "code": "api_key_invalid",
                        "message": "The API key is unknown, revoked or malformed.",
                        "requestId": "0b6f3c1e-8f0a-4a39-9a55-2d4d7f3e1c11"
                      }
                    }
                  }
                }
              }
            }
          },
          "402": {
            "description": "Payment required — e.g. not enough credits (`quota_exceeded`)",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/XRequestId"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                },
                "examples": {
                  "insufficient_credits": {
                    "summary": "Not enough credits for this call (balance plus credit allowance). Ask your BeMyPlan contact to top up.",
                    "value": {
                      "error": {
                        "category": "quota_exceeded",
                        "code": "insufficient_credits",
                        "message": "Not enough credits for this call (balance plus credit allowance). Ask your BeMyPlan contact to top up.",
                        "requestId": "0b6f3c1e-8f0a-4a39-9a55-2d4d7f3e1c11",
                        "details": {
                          "required": 1,
                          "available": 0,
                          "balance": -100,
                          "creditAllowance": 100
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Not allowed (`forbidden`)",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/XRequestId"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                },
                "examples": {
                  "insufficient_scope": {
                    "summary": "The API key lacks the scope this route requires.",
                    "value": {
                      "error": {
                        "category": "forbidden",
                        "code": "insufficient_scope",
                        "message": "The API key lacks the scope this route requires.",
                        "requestId": "0b6f3c1e-8f0a-4a39-9a55-2d4d7f3e1c11"
                      }
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "Not found (`not_found`)",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/XRequestId"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                },
                "examples": {
                  "aircraft_not_found": {
                    "summary": "No aircraft with that id.",
                    "value": {
                      "error": {
                        "category": "not_found",
                        "code": "aircraft_not_found",
                        "message": "No aircraft with that id.",
                        "requestId": "0b6f3c1e-8f0a-4a39-9a55-2d4d7f3e1c11"
                      }
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "Rate limited or quota exhausted (`rate_limited` / `quota_exceeded`); `Retry-After` gives the wait in seconds",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/XRequestId"
              },
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfter"
              },
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimitPolicy"
              },
              "RateLimit": {
                "$ref": "#/components/headers/RateLimit"
              },
              "BMP-Rate-Limited-Reason": {
                "$ref": "#/components/headers/BmpRateLimitedReason"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                },
                "examples": {
                  "rate_limited": {
                    "summary": "Too many requests; back off and retry after Retry-After.",
                    "value": {
                      "error": {
                        "category": "rate_limited",
                        "code": "rate_limited",
                        "message": "Too many requests; back off and retry after Retry-After.",
                        "requestId": "0b6f3c1e-8f0a-4a39-9a55-2d4d7f3e1c11",
                        "details": {
                          "msBeforeNext": 12000,
                          "reason": "account-rate",
                          "policy": "account"
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "503": {
            "description": "Temporarily unavailable (`upstream_error`); a retryable outage (`auth_unavailable`, `credits_unavailable`, `entitlement_unavailable`, `refdata_unavailable`) carries `Retry-After`",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/XRequestId"
              },
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfter"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                },
                "examples": {
                  "auth_unavailable": {
                    "summary": "The session store did not answer in time; retry shortly.",
                    "value": {
                      "error": {
                        "category": "upstream_error",
                        "code": "auth_unavailable",
                        "message": "The session store did not answer in time; retry shortly.",
                        "requestId": "0b6f3c1e-8f0a-4a39-9a55-2d4d7f3e1c11"
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/data/v1/airlines": {
      "get": {
        "operationId": "dataListAirlines",
        "summary": "List airlines",
        "tags": [
          "Airlines"
        ],
        "security": [
          {
            "apiKey": []
          }
        ],
        "x-required-scope": "data:read",
        "x-error-codes": [
          "credit_account_frozen",
          "credits_unavailable",
          "entitlement_unavailable",
          "insufficient_credits",
          "invalid_cursor",
          "price_unavailable",
          "service_not_enabled"
        ],
        "parameters": [
          {
            "in": "query",
            "name": "limit",
            "schema": {
              "default": 50,
              "description": "Items per page, 1–200 (default 50).",
              "type": "integer",
              "minimum": 1,
              "maximum": 200
            },
            "description": "Items per page, 1–200 (default 50)."
          },
          {
            "in": "query",
            "name": "after",
            "schema": {
              "description": "Cursor mode: the page after this cursor (pass meta.after back).",
              "type": "string",
              "minLength": 1,
              "maxLength": 512
            },
            "description": "Cursor mode: the page after this cursor (pass meta.after back)."
          },
          {
            "in": "query",
            "name": "before",
            "schema": {
              "description": "Cursor mode: the page before this cursor (pass meta.before back).",
              "type": "string",
              "minLength": 1,
              "maxLength": 512
            },
            "description": "Cursor mode: the page before this cursor (pass meta.before back)."
          },
          {
            "in": "query",
            "name": "page",
            "schema": {
              "description": "Page mode: 1-based page; the response adds meta.page and meta.totalCount.",
              "type": "integer",
              "minimum": 1,
              "maximum": 10000
            },
            "description": "Page mode: 1-based page; the response adds meta.page and meta.totalCount."
          },
          {
            "in": "query",
            "name": "iataCode",
            "schema": {
              "type": "string",
              "minLength": 2,
              "maxLength": 2,
              "pattern": "^[A-Za-z0-9]{2}$",
              "description": "IATA airline code, 2 characters. Also matches a current or historical alternate code of the airline. Case-insensitive: lower case is accepted and normalised (trimmed and upper-cased before it is checked); codes in responses are always upper case.",
              "example": "KL"
            }
          },
          {
            "in": "query",
            "name": "icaoCode",
            "schema": {
              "type": "string",
              "minLength": 3,
              "maxLength": 3,
              "pattern": "^[A-Za-z]{3}$",
              "description": "ICAO airline code, 3 letters. Also matches a current or historical alternate code of the airline. Case-insensitive: lower case is accepted and normalised (trimmed and upper-cased before it is checked); codes in responses are always upper case.",
              "example": "KLM"
            }
          },
          {
            "in": "query",
            "name": "name",
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 100,
              "description": "Name prefix, matched after transliteration (ø becomes o, ß becomes ss) and case folding.",
              "example": "amster"
            }
          },
          {
            "in": "query",
            "name": "iataCountryCode",
            "schema": {
              "type": "string",
              "minLength": 2,
              "maxLength": 2,
              "pattern": "^[A-Za-z]{2}$",
              "description": "ISO 3166-1 alpha-2 country code of the airline. Case-insensitive: lower case is accepted and normalised (trimmed and upper-cased before it is checked); codes in responses are always upper case.",
              "example": "NL"
            }
          },
          {
            "in": "header",
            "name": "If-None-Match",
            "schema": {
              "description": "A previously returned `ETag`. When it still matches, the answer is 304 with no body (and no charge for a free call).",
              "type": "string"
            },
            "description": "A previously returned `ETag`. When it still matches, the answer is 304 with no body (and no charge for a free call)."
          }
        ],
        "responses": {
          "200": {
            "description": "One page of airlines",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/XRequestId"
              },
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimitPolicy"
              },
              "RateLimit": {
                "$ref": "#/components/headers/RateLimit"
              },
              "ETag": {
                "description": "Weak validator of this representation; send it back as `If-None-Match`.",
                "schema": {
                  "type": "string",
                  "example": "W/\"4f2a9c1b7d3e8a05\""
                }
              },
              "Cache-Control": {
                "description": "`private, max-age=3600`: cacheable by the client for an hour.",
                "schema": {
                  "type": "string",
                  "example": "private, max-age=3600"
                }
              }
            },
            "content": {
              "application/json": {
                "example": {
                  "data": [
                    {
                      "id": "arl_rkqzjrn7vptgasb4",
                      "iataCode": "KL",
                      "icaoCode": "KLM",
                      "name": "KLM Royal Dutch Airlines",
                      "iataCountryCode": "NL",
                      "conditionsOfCarriageUrl": null,
                      "logoSymbolUrl": null,
                      "logoLockupUrl": null,
                      "alternateIataCodes": [],
                      "alternateIcaoCodes": [],
                      "historicalIataCodes": [],
                      "historicalIcaoCodes": [],
                      "codeAliases": [],
                      "active": true
                    }
                  ],
                  "meta": {
                    "requestId": "0b6f3c1e-8f0a-4a39-9a55-2d4d7f3e1c11",
                    "limit": 50,
                    "after": "l1.W1siYW1zdGVyZGFtIGFpcnBvcnQgc2NoaXBob2wiXSwiYXJwX2l3cWVhd3d1ZnhiNGg1cWEiXQ",
                    "before": null
                  }
                },
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Airline"
                      }
                    },
                    "meta": {
                      "type": "object",
                      "properties": {
                        "requestId": {
                          "type": "string",
                          "example": "0b6f3c1e-8f0a-4a39-9a55-2d4d7f3e1c11"
                        },
                        "limit": {
                          "type": "integer",
                          "minimum": 1,
                          "maximum": 2147483647,
                          "example": 50
                        },
                        "after": {
                          "example": "l1.W1siYW1zdGVyZGFtIGFpcnBvcnQgc2NoaXBob2wiXSwiYXJwX2l3cWVhd3d1ZnhiNGg1cWEiXQ",
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "before": {
                          "example": null,
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "page": {
                          "type": "integer",
                          "minimum": 1,
                          "maximum": 2147483647
                        },
                        "totalCount": {
                          "type": "integer",
                          "minimum": 0,
                          "maximum": 2147483647
                        }
                      },
                      "required": [
                        "requestId",
                        "limit",
                        "after",
                        "before"
                      ]
                    }
                  },
                  "required": [
                    "data",
                    "meta"
                  ]
                }
              }
            }
          },
          "304": {
            "description": "Not modified: `If-None-Match` matched the current `ETag`. No body.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/XRequestId"
              },
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimitPolicy"
              },
              "RateLimit": {
                "$ref": "#/components/headers/RateLimit"
              },
              "ETag": {
                "description": "Weak validator of this representation; send it back as `If-None-Match`.",
                "schema": {
                  "type": "string",
                  "example": "W/\"4f2a9c1b7d3e8a05\""
                }
              },
              "Cache-Control": {
                "description": "`private, max-age=3600`: cacheable by the client for an hour.",
                "schema": {
                  "type": "string",
                  "example": "private, max-age=3600"
                }
              }
            }
          },
          "400": {
            "description": "Validation failed (`validation`)",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/XRequestId"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                },
                "examples": {
                  "invalid_request": {
                    "summary": "The request failed schema validation; see fields and formErrors.",
                    "value": {
                      "error": {
                        "category": "validation",
                        "code": "invalid_request",
                        "message": "The request failed schema validation; see fields and formErrors.",
                        "requestId": "0b6f3c1e-8f0a-4a39-9a55-2d4d7f3e1c11",
                        "fields": {
                          "limit": [
                            "Too big: expected number to be <=200"
                          ]
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Not authenticated (`unauthorized`)",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/XRequestId"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                },
                "examples": {
                  "api_key_invalid": {
                    "summary": "The API key is unknown, revoked or malformed.",
                    "value": {
                      "error": {
                        "category": "unauthorized",
                        "code": "api_key_invalid",
                        "message": "The API key is unknown, revoked or malformed.",
                        "requestId": "0b6f3c1e-8f0a-4a39-9a55-2d4d7f3e1c11"
                      }
                    }
                  }
                }
              }
            }
          },
          "402": {
            "description": "Payment required — e.g. not enough credits (`quota_exceeded`)",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/XRequestId"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                },
                "examples": {
                  "insufficient_credits": {
                    "summary": "Not enough credits for this call (balance plus credit allowance). Ask your BeMyPlan contact to top up.",
                    "value": {
                      "error": {
                        "category": "quota_exceeded",
                        "code": "insufficient_credits",
                        "message": "Not enough credits for this call (balance plus credit allowance). Ask your BeMyPlan contact to top up.",
                        "requestId": "0b6f3c1e-8f0a-4a39-9a55-2d4d7f3e1c11",
                        "details": {
                          "required": 1,
                          "available": 0,
                          "balance": -100,
                          "creditAllowance": 100
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Not allowed (`forbidden`)",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/XRequestId"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                },
                "examples": {
                  "insufficient_scope": {
                    "summary": "The API key lacks the scope this route requires.",
                    "value": {
                      "error": {
                        "category": "forbidden",
                        "code": "insufficient_scope",
                        "message": "The API key lacks the scope this route requires.",
                        "requestId": "0b6f3c1e-8f0a-4a39-9a55-2d4d7f3e1c11"
                      }
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "Rate limited or quota exhausted (`rate_limited` / `quota_exceeded`); `Retry-After` gives the wait in seconds",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/XRequestId"
              },
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfter"
              },
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimitPolicy"
              },
              "RateLimit": {
                "$ref": "#/components/headers/RateLimit"
              },
              "BMP-Rate-Limited-Reason": {
                "$ref": "#/components/headers/BmpRateLimitedReason"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                },
                "examples": {
                  "rate_limited": {
                    "summary": "Too many requests; back off and retry after Retry-After.",
                    "value": {
                      "error": {
                        "category": "rate_limited",
                        "code": "rate_limited",
                        "message": "Too many requests; back off and retry after Retry-After.",
                        "requestId": "0b6f3c1e-8f0a-4a39-9a55-2d4d7f3e1c11",
                        "details": {
                          "msBeforeNext": 12000,
                          "reason": "account-rate",
                          "policy": "account"
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "503": {
            "description": "Temporarily unavailable (`upstream_error`); a retryable outage (`auth_unavailable`, `credits_unavailable`, `entitlement_unavailable`, `refdata_unavailable`) carries `Retry-After`",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/XRequestId"
              },
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfter"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                },
                "examples": {
                  "auth_unavailable": {
                    "summary": "The session store did not answer in time; retry shortly.",
                    "value": {
                      "error": {
                        "category": "upstream_error",
                        "code": "auth_unavailable",
                        "message": "The session store did not answer in time; retry shortly.",
                        "requestId": "0b6f3c1e-8f0a-4a39-9a55-2d4d7f3e1c11"
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/data/v1/airlines/{airlineId}": {
      "get": {
        "operationId": "dataGetAirline",
        "summary": "Get one airline by id (includes inactive)",
        "tags": [
          "Airlines"
        ],
        "security": [
          {
            "apiKey": []
          }
        ],
        "x-required-scope": "data:read",
        "x-error-codes": [
          "airline_not_found",
          "credit_account_frozen",
          "credits_unavailable",
          "entitlement_unavailable",
          "insufficient_credits",
          "price_unavailable",
          "service_not_enabled"
        ],
        "parameters": [
          {
            "in": "path",
            "name": "airlineId",
            "schema": {
              "type": "string",
              "pattern": "^arl_[a-z2-7]{16}$",
              "description": "The id from a list response. Lower case only; ids are not normalised.",
              "example": "arl_rkqzjrn7vptgasb4"
            },
            "required": true,
            "description": "The id from a list response. Lower case only; ids are not normalised."
          },
          {
            "in": "header",
            "name": "If-None-Match",
            "schema": {
              "description": "A previously returned `ETag`. When it still matches, the answer is 304 with no body (and no charge for a free call).",
              "type": "string"
            },
            "description": "A previously returned `ETag`. When it still matches, the answer is 304 with no body (and no charge for a free call)."
          }
        ],
        "responses": {
          "200": {
            "description": "The airline",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/XRequestId"
              },
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimitPolicy"
              },
              "RateLimit": {
                "$ref": "#/components/headers/RateLimit"
              },
              "ETag": {
                "description": "Weak validator of this representation; send it back as `If-None-Match`.",
                "schema": {
                  "type": "string",
                  "example": "W/\"4f2a9c1b7d3e8a05\""
                }
              },
              "Cache-Control": {
                "description": "`private, max-age=3600`: cacheable by the client for an hour.",
                "schema": {
                  "type": "string",
                  "example": "private, max-age=3600"
                }
              }
            },
            "content": {
              "application/json": {
                "example": {
                  "data": {
                    "id": "arl_rkqzjrn7vptgasb4",
                    "iataCode": "KL",
                    "icaoCode": "KLM",
                    "name": "KLM Royal Dutch Airlines",
                    "iataCountryCode": "NL",
                    "conditionsOfCarriageUrl": null,
                    "logoSymbolUrl": null,
                    "logoLockupUrl": null,
                    "alternateIataCodes": [],
                    "alternateIcaoCodes": [],
                    "historicalIataCodes": [],
                    "historicalIcaoCodes": [],
                    "codeAliases": [],
                    "active": true
                  },
                  "meta": {
                    "requestId": "0b6f3c1e-8f0a-4a39-9a55-2d4d7f3e1c11"
                  }
                },
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/Airline"
                    },
                    "meta": {
                      "type": "object",
                      "properties": {
                        "requestId": {
                          "type": "string",
                          "example": "0b6f3c1e-8f0a-4a39-9a55-2d4d7f3e1c11"
                        }
                      },
                      "required": [
                        "requestId"
                      ]
                    }
                  },
                  "required": [
                    "data",
                    "meta"
                  ]
                }
              }
            }
          },
          "304": {
            "description": "Not modified: `If-None-Match` matched the current `ETag`. No body.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/XRequestId"
              },
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimitPolicy"
              },
              "RateLimit": {
                "$ref": "#/components/headers/RateLimit"
              },
              "ETag": {
                "description": "Weak validator of this representation; send it back as `If-None-Match`.",
                "schema": {
                  "type": "string",
                  "example": "W/\"4f2a9c1b7d3e8a05\""
                }
              },
              "Cache-Control": {
                "description": "`private, max-age=3600`: cacheable by the client for an hour.",
                "schema": {
                  "type": "string",
                  "example": "private, max-age=3600"
                }
              }
            }
          },
          "400": {
            "description": "Validation failed (`validation`)",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/XRequestId"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                },
                "examples": {
                  "invalid_request": {
                    "summary": "The request failed schema validation; see fields and formErrors.",
                    "value": {
                      "error": {
                        "category": "validation",
                        "code": "invalid_request",
                        "message": "The request failed schema validation; see fields and formErrors.",
                        "requestId": "0b6f3c1e-8f0a-4a39-9a55-2d4d7f3e1c11",
                        "fields": {
                          "limit": [
                            "Too big: expected number to be <=200"
                          ]
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Not authenticated (`unauthorized`)",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/XRequestId"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                },
                "examples": {
                  "api_key_invalid": {
                    "summary": "The API key is unknown, revoked or malformed.",
                    "value": {
                      "error": {
                        "category": "unauthorized",
                        "code": "api_key_invalid",
                        "message": "The API key is unknown, revoked or malformed.",
                        "requestId": "0b6f3c1e-8f0a-4a39-9a55-2d4d7f3e1c11"
                      }
                    }
                  }
                }
              }
            }
          },
          "402": {
            "description": "Payment required — e.g. not enough credits (`quota_exceeded`)",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/XRequestId"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                },
                "examples": {
                  "insufficient_credits": {
                    "summary": "Not enough credits for this call (balance plus credit allowance). Ask your BeMyPlan contact to top up.",
                    "value": {
                      "error": {
                        "category": "quota_exceeded",
                        "code": "insufficient_credits",
                        "message": "Not enough credits for this call (balance plus credit allowance). Ask your BeMyPlan contact to top up.",
                        "requestId": "0b6f3c1e-8f0a-4a39-9a55-2d4d7f3e1c11",
                        "details": {
                          "required": 1,
                          "available": 0,
                          "balance": -100,
                          "creditAllowance": 100
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Not allowed (`forbidden`)",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/XRequestId"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                },
                "examples": {
                  "insufficient_scope": {
                    "summary": "The API key lacks the scope this route requires.",
                    "value": {
                      "error": {
                        "category": "forbidden",
                        "code": "insufficient_scope",
                        "message": "The API key lacks the scope this route requires.",
                        "requestId": "0b6f3c1e-8f0a-4a39-9a55-2d4d7f3e1c11"
                      }
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "Not found (`not_found`)",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/XRequestId"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                },
                "examples": {
                  "airline_not_found": {
                    "summary": "No airline with that id.",
                    "value": {
                      "error": {
                        "category": "not_found",
                        "code": "airline_not_found",
                        "message": "No airline with that id.",
                        "requestId": "0b6f3c1e-8f0a-4a39-9a55-2d4d7f3e1c11"
                      }
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "Rate limited or quota exhausted (`rate_limited` / `quota_exceeded`); `Retry-After` gives the wait in seconds",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/XRequestId"
              },
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfter"
              },
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimitPolicy"
              },
              "RateLimit": {
                "$ref": "#/components/headers/RateLimit"
              },
              "BMP-Rate-Limited-Reason": {
                "$ref": "#/components/headers/BmpRateLimitedReason"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                },
                "examples": {
                  "rate_limited": {
                    "summary": "Too many requests; back off and retry after Retry-After.",
                    "value": {
                      "error": {
                        "category": "rate_limited",
                        "code": "rate_limited",
                        "message": "Too many requests; back off and retry after Retry-After.",
                        "requestId": "0b6f3c1e-8f0a-4a39-9a55-2d4d7f3e1c11",
                        "details": {
                          "msBeforeNext": 12000,
                          "reason": "account-rate",
                          "policy": "account"
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "503": {
            "description": "Temporarily unavailable (`upstream_error`); a retryable outage (`auth_unavailable`, `credits_unavailable`, `entitlement_unavailable`, `refdata_unavailable`) carries `Retry-After`",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/XRequestId"
              },
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfter"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                },
                "examples": {
                  "auth_unavailable": {
                    "summary": "The session store did not answer in time; retry shortly.",
                    "value": {
                      "error": {
                        "category": "upstream_error",
                        "code": "auth_unavailable",
                        "message": "The session store did not answer in time; retry shortly.",
                        "requestId": "0b6f3c1e-8f0a-4a39-9a55-2d4d7f3e1c11"
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/data/v1/airports": {
      "get": {
        "operationId": "dataListAirports",
        "summary": "List airports",
        "tags": [
          "Airports"
        ],
        "security": [
          {
            "apiKey": []
          }
        ],
        "x-required-scope": "data:read",
        "x-error-codes": [
          "credit_account_frozen",
          "credits_unavailable",
          "entitlement_unavailable",
          "insufficient_credits",
          "invalid_cursor",
          "price_unavailable",
          "service_not_enabled"
        ],
        "parameters": [
          {
            "in": "query",
            "name": "limit",
            "schema": {
              "default": 50,
              "description": "Items per page, 1–200 (default 50).",
              "type": "integer",
              "minimum": 1,
              "maximum": 200
            },
            "description": "Items per page, 1–200 (default 50)."
          },
          {
            "in": "query",
            "name": "after",
            "schema": {
              "description": "Cursor mode: the page after this cursor (pass meta.after back).",
              "type": "string",
              "minLength": 1,
              "maxLength": 512
            },
            "description": "Cursor mode: the page after this cursor (pass meta.after back)."
          },
          {
            "in": "query",
            "name": "before",
            "schema": {
              "description": "Cursor mode: the page before this cursor (pass meta.before back).",
              "type": "string",
              "minLength": 1,
              "maxLength": 512
            },
            "description": "Cursor mode: the page before this cursor (pass meta.before back)."
          },
          {
            "in": "query",
            "name": "page",
            "schema": {
              "description": "Page mode: 1-based page; the response adds meta.page and meta.totalCount.",
              "type": "integer",
              "minimum": 1,
              "maximum": 10000
            },
            "description": "Page mode: 1-based page; the response adds meta.page and meta.totalCount."
          },
          {
            "in": "query",
            "name": "iataCode",
            "schema": {
              "type": "string",
              "minLength": 3,
              "maxLength": 3,
              "pattern": "^[A-Za-z]{3}$",
              "description": "IATA airport code, 3 letters. Also matches a current or historical alternate code of the airport. Case-insensitive: lower case is accepted and normalised (trimmed and upper-cased before it is checked); codes in responses are always upper case.",
              "example": "AMS"
            }
          },
          {
            "in": "query",
            "name": "icaoCode",
            "schema": {
              "type": "string",
              "minLength": 4,
              "maxLength": 4,
              "pattern": "^[A-Za-z0-9]{4}$",
              "description": "ICAO airport code, 4 characters. Case-insensitive: lower case is accepted and normalised (trimmed and upper-cased before it is checked); codes in responses are always upper case.",
              "example": "EHAM"
            }
          },
          {
            "in": "query",
            "name": "iataCountryCode",
            "schema": {
              "type": "string",
              "minLength": 2,
              "maxLength": 2,
              "pattern": "^[A-Za-z]{2}$",
              "description": "ISO 3166-1 alpha-2 country code of the airport. Case-insensitive: lower case is accepted and normalised (trimmed and upper-cased before it is checked); codes in responses are always upper case.",
              "example": "NL"
            }
          },
          {
            "in": "query",
            "name": "cityId",
            "schema": {
              "type": "string",
              "pattern": "^cit_[a-z2-7]{16}$",
              "description": "Id of the city the airport serves. Lower case only; ids are not normalised.",
              "example": "cit_letxal4ojx3tujmz"
            }
          },
          {
            "in": "query",
            "name": "iataCityCode",
            "schema": {
              "type": "string",
              "minLength": 3,
              "maxLength": 3,
              "pattern": "^[A-Za-z]{3}$",
              "description": "IATA code of the city the airport serves, 3 letters: `LON` lists Heathrow, Gatwick and the other London airports in one call. For a city with one airport it is usually the airport's own code (`AMS`). Case-insensitive: lower case is accepted and normalised (trimmed and upper-cased before it is checked); codes in responses are always upper case.",
              "example": "LON"
            }
          },
          {
            "in": "query",
            "name": "name",
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 100,
              "description": "Name prefix, matched after transliteration (ø becomes o, ß becomes ss) and case folding.",
              "example": "amster"
            }
          },
          {
            "in": "header",
            "name": "If-None-Match",
            "schema": {
              "description": "A previously returned `ETag`. When it still matches, the answer is 304 with no body (and no charge for a free call).",
              "type": "string"
            },
            "description": "A previously returned `ETag`. When it still matches, the answer is 304 with no body (and no charge for a free call)."
          }
        ],
        "responses": {
          "200": {
            "description": "One page of airports",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/XRequestId"
              },
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimitPolicy"
              },
              "RateLimit": {
                "$ref": "#/components/headers/RateLimit"
              },
              "ETag": {
                "description": "Weak validator of this representation; send it back as `If-None-Match`.",
                "schema": {
                  "type": "string",
                  "example": "W/\"4f2a9c1b7d3e8a05\""
                }
              },
              "Cache-Control": {
                "description": "`private, max-age=3600`: cacheable by the client for an hour.",
                "schema": {
                  "type": "string",
                  "example": "private, max-age=3600"
                }
              }
            },
            "content": {
              "application/json": {
                "example": {
                  "data": [
                    {
                      "id": "arp_iwqeawwufxb4h5qa",
                      "iataCode": "AMS",
                      "icaoCode": "EHAM",
                      "name": "Amsterdam Airport Schiphol",
                      "cityId": "cit_letxal4ojx3tujmz",
                      "iataCityCode": "AMS",
                      "iataCountryCode": "NL",
                      "latitude": 52.3086,
                      "longitude": 4.7639,
                      "timeZone": "Europe/Amsterdam",
                      "type": "large_airport",
                      "elevationFt": -11,
                      "region": "North Holland",
                      "website": "https://www.schiphol.nl/",
                      "wikipediaUrl": "https://en.wikipedia.org/wiki/Amsterdam_Airport_Schiphol",
                      "alternateIataCodes": [],
                      "historicalIataCodes": [],
                      "codeAliases": [],
                      "active": true
                    }
                  ],
                  "meta": {
                    "requestId": "0b6f3c1e-8f0a-4a39-9a55-2d4d7f3e1c11",
                    "limit": 50,
                    "after": "l1.W1siYW1zdGVyZGFtIGFpcnBvcnQgc2NoaXBob2wiXSwiYXJwX2l3cWVhd3d1ZnhiNGg1cWEiXQ",
                    "before": null
                  }
                },
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Airport"
                      }
                    },
                    "meta": {
                      "type": "object",
                      "properties": {
                        "requestId": {
                          "type": "string",
                          "example": "0b6f3c1e-8f0a-4a39-9a55-2d4d7f3e1c11"
                        },
                        "limit": {
                          "type": "integer",
                          "minimum": 1,
                          "maximum": 2147483647,
                          "example": 50
                        },
                        "after": {
                          "example": "l1.W1siYW1zdGVyZGFtIGFpcnBvcnQgc2NoaXBob2wiXSwiYXJwX2l3cWVhd3d1ZnhiNGg1cWEiXQ",
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "before": {
                          "example": null,
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "page": {
                          "type": "integer",
                          "minimum": 1,
                          "maximum": 2147483647
                        },
                        "totalCount": {
                          "type": "integer",
                          "minimum": 0,
                          "maximum": 2147483647
                        }
                      },
                      "required": [
                        "requestId",
                        "limit",
                        "after",
                        "before"
                      ]
                    }
                  },
                  "required": [
                    "data",
                    "meta"
                  ]
                }
              }
            }
          },
          "304": {
            "description": "Not modified: `If-None-Match` matched the current `ETag`. No body.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/XRequestId"
              },
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimitPolicy"
              },
              "RateLimit": {
                "$ref": "#/components/headers/RateLimit"
              },
              "ETag": {
                "description": "Weak validator of this representation; send it back as `If-None-Match`.",
                "schema": {
                  "type": "string",
                  "example": "W/\"4f2a9c1b7d3e8a05\""
                }
              },
              "Cache-Control": {
                "description": "`private, max-age=3600`: cacheable by the client for an hour.",
                "schema": {
                  "type": "string",
                  "example": "private, max-age=3600"
                }
              }
            }
          },
          "400": {
            "description": "Validation failed (`validation`)",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/XRequestId"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                },
                "examples": {
                  "invalid_request": {
                    "summary": "The request failed schema validation; see fields and formErrors.",
                    "value": {
                      "error": {
                        "category": "validation",
                        "code": "invalid_request",
                        "message": "The request failed schema validation; see fields and formErrors.",
                        "requestId": "0b6f3c1e-8f0a-4a39-9a55-2d4d7f3e1c11",
                        "fields": {
                          "limit": [
                            "Too big: expected number to be <=200"
                          ]
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Not authenticated (`unauthorized`)",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/XRequestId"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                },
                "examples": {
                  "api_key_invalid": {
                    "summary": "The API key is unknown, revoked or malformed.",
                    "value": {
                      "error": {
                        "category": "unauthorized",
                        "code": "api_key_invalid",
                        "message": "The API key is unknown, revoked or malformed.",
                        "requestId": "0b6f3c1e-8f0a-4a39-9a55-2d4d7f3e1c11"
                      }
                    }
                  }
                }
              }
            }
          },
          "402": {
            "description": "Payment required — e.g. not enough credits (`quota_exceeded`)",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/XRequestId"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                },
                "examples": {
                  "insufficient_credits": {
                    "summary": "Not enough credits for this call (balance plus credit allowance). Ask your BeMyPlan contact to top up.",
                    "value": {
                      "error": {
                        "category": "quota_exceeded",
                        "code": "insufficient_credits",
                        "message": "Not enough credits for this call (balance plus credit allowance). Ask your BeMyPlan contact to top up.",
                        "requestId": "0b6f3c1e-8f0a-4a39-9a55-2d4d7f3e1c11",
                        "details": {
                          "required": 1,
                          "available": 0,
                          "balance": -100,
                          "creditAllowance": 100
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Not allowed (`forbidden`)",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/XRequestId"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                },
                "examples": {
                  "insufficient_scope": {
                    "summary": "The API key lacks the scope this route requires.",
                    "value": {
                      "error": {
                        "category": "forbidden",
                        "code": "insufficient_scope",
                        "message": "The API key lacks the scope this route requires.",
                        "requestId": "0b6f3c1e-8f0a-4a39-9a55-2d4d7f3e1c11"
                      }
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "Rate limited or quota exhausted (`rate_limited` / `quota_exceeded`); `Retry-After` gives the wait in seconds",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/XRequestId"
              },
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfter"
              },
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimitPolicy"
              },
              "RateLimit": {
                "$ref": "#/components/headers/RateLimit"
              },
              "BMP-Rate-Limited-Reason": {
                "$ref": "#/components/headers/BmpRateLimitedReason"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                },
                "examples": {
                  "rate_limited": {
                    "summary": "Too many requests; back off and retry after Retry-After.",
                    "value": {
                      "error": {
                        "category": "rate_limited",
                        "code": "rate_limited",
                        "message": "Too many requests; back off and retry after Retry-After.",
                        "requestId": "0b6f3c1e-8f0a-4a39-9a55-2d4d7f3e1c11",
                        "details": {
                          "msBeforeNext": 12000,
                          "reason": "account-rate",
                          "policy": "account"
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "503": {
            "description": "Temporarily unavailable (`upstream_error`); a retryable outage (`auth_unavailable`, `credits_unavailable`, `entitlement_unavailable`, `refdata_unavailable`) carries `Retry-After`",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/XRequestId"
              },
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfter"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                },
                "examples": {
                  "auth_unavailable": {
                    "summary": "The session store did not answer in time; retry shortly.",
                    "value": {
                      "error": {
                        "category": "upstream_error",
                        "code": "auth_unavailable",
                        "message": "The session store did not answer in time; retry shortly.",
                        "requestId": "0b6f3c1e-8f0a-4a39-9a55-2d4d7f3e1c11"
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/data/v1/airports/{airportId}": {
      "get": {
        "operationId": "dataGetAirport",
        "summary": "Get one airport by id (includes inactive)",
        "tags": [
          "Airports"
        ],
        "security": [
          {
            "apiKey": []
          }
        ],
        "x-required-scope": "data:read",
        "x-error-codes": [
          "airport_not_found",
          "credit_account_frozen",
          "credits_unavailable",
          "entitlement_unavailable",
          "insufficient_credits",
          "price_unavailable",
          "service_not_enabled"
        ],
        "parameters": [
          {
            "in": "path",
            "name": "airportId",
            "schema": {
              "type": "string",
              "pattern": "^arp_[a-z2-7]{16}$",
              "description": "The id from a list response. Lower case only; ids are not normalised.",
              "example": "arp_iwqeawwufxb4h5qa"
            },
            "required": true,
            "description": "The id from a list response. Lower case only; ids are not normalised."
          },
          {
            "in": "header",
            "name": "If-None-Match",
            "schema": {
              "description": "A previously returned `ETag`. When it still matches, the answer is 304 with no body (and no charge for a free call).",
              "type": "string"
            },
            "description": "A previously returned `ETag`. When it still matches, the answer is 304 with no body (and no charge for a free call)."
          }
        ],
        "responses": {
          "200": {
            "description": "The airport",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/XRequestId"
              },
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimitPolicy"
              },
              "RateLimit": {
                "$ref": "#/components/headers/RateLimit"
              },
              "ETag": {
                "description": "Weak validator of this representation; send it back as `If-None-Match`.",
                "schema": {
                  "type": "string",
                  "example": "W/\"4f2a9c1b7d3e8a05\""
                }
              },
              "Cache-Control": {
                "description": "`private, max-age=3600`: cacheable by the client for an hour.",
                "schema": {
                  "type": "string",
                  "example": "private, max-age=3600"
                }
              }
            },
            "content": {
              "application/json": {
                "example": {
                  "data": {
                    "id": "arp_iwqeawwufxb4h5qa",
                    "iataCode": "AMS",
                    "icaoCode": "EHAM",
                    "name": "Amsterdam Airport Schiphol",
                    "cityId": "cit_letxal4ojx3tujmz",
                    "iataCityCode": "AMS",
                    "iataCountryCode": "NL",
                    "latitude": 52.3086,
                    "longitude": 4.7639,
                    "timeZone": "Europe/Amsterdam",
                    "type": "large_airport",
                    "elevationFt": -11,
                    "region": "North Holland",
                    "website": "https://www.schiphol.nl/",
                    "wikipediaUrl": "https://en.wikipedia.org/wiki/Amsterdam_Airport_Schiphol",
                    "alternateIataCodes": [],
                    "historicalIataCodes": [],
                    "codeAliases": [],
                    "active": true
                  },
                  "meta": {
                    "requestId": "0b6f3c1e-8f0a-4a39-9a55-2d4d7f3e1c11"
                  }
                },
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/Airport"
                    },
                    "meta": {
                      "type": "object",
                      "properties": {
                        "requestId": {
                          "type": "string",
                          "example": "0b6f3c1e-8f0a-4a39-9a55-2d4d7f3e1c11"
                        }
                      },
                      "required": [
                        "requestId"
                      ]
                    }
                  },
                  "required": [
                    "data",
                    "meta"
                  ]
                }
              }
            }
          },
          "304": {
            "description": "Not modified: `If-None-Match` matched the current `ETag`. No body.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/XRequestId"
              },
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimitPolicy"
              },
              "RateLimit": {
                "$ref": "#/components/headers/RateLimit"
              },
              "ETag": {
                "description": "Weak validator of this representation; send it back as `If-None-Match`.",
                "schema": {
                  "type": "string",
                  "example": "W/\"4f2a9c1b7d3e8a05\""
                }
              },
              "Cache-Control": {
                "description": "`private, max-age=3600`: cacheable by the client for an hour.",
                "schema": {
                  "type": "string",
                  "example": "private, max-age=3600"
                }
              }
            }
          },
          "400": {
            "description": "Validation failed (`validation`)",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/XRequestId"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                },
                "examples": {
                  "invalid_request": {
                    "summary": "The request failed schema validation; see fields and formErrors.",
                    "value": {
                      "error": {
                        "category": "validation",
                        "code": "invalid_request",
                        "message": "The request failed schema validation; see fields and formErrors.",
                        "requestId": "0b6f3c1e-8f0a-4a39-9a55-2d4d7f3e1c11",
                        "fields": {
                          "limit": [
                            "Too big: expected number to be <=200"
                          ]
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Not authenticated (`unauthorized`)",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/XRequestId"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                },
                "examples": {
                  "api_key_invalid": {
                    "summary": "The API key is unknown, revoked or malformed.",
                    "value": {
                      "error": {
                        "category": "unauthorized",
                        "code": "api_key_invalid",
                        "message": "The API key is unknown, revoked or malformed.",
                        "requestId": "0b6f3c1e-8f0a-4a39-9a55-2d4d7f3e1c11"
                      }
                    }
                  }
                }
              }
            }
          },
          "402": {
            "description": "Payment required — e.g. not enough credits (`quota_exceeded`)",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/XRequestId"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                },
                "examples": {
                  "insufficient_credits": {
                    "summary": "Not enough credits for this call (balance plus credit allowance). Ask your BeMyPlan contact to top up.",
                    "value": {
                      "error": {
                        "category": "quota_exceeded",
                        "code": "insufficient_credits",
                        "message": "Not enough credits for this call (balance plus credit allowance). Ask your BeMyPlan contact to top up.",
                        "requestId": "0b6f3c1e-8f0a-4a39-9a55-2d4d7f3e1c11",
                        "details": {
                          "required": 1,
                          "available": 0,
                          "balance": -100,
                          "creditAllowance": 100
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Not allowed (`forbidden`)",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/XRequestId"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                },
                "examples": {
                  "insufficient_scope": {
                    "summary": "The API key lacks the scope this route requires.",
                    "value": {
                      "error": {
                        "category": "forbidden",
                        "code": "insufficient_scope",
                        "message": "The API key lacks the scope this route requires.",
                        "requestId": "0b6f3c1e-8f0a-4a39-9a55-2d4d7f3e1c11"
                      }
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "Not found (`not_found`)",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/XRequestId"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                },
                "examples": {
                  "airport_not_found": {
                    "summary": "No airport with that id.",
                    "value": {
                      "error": {
                        "category": "not_found",
                        "code": "airport_not_found",
                        "message": "No airport with that id.",
                        "requestId": "0b6f3c1e-8f0a-4a39-9a55-2d4d7f3e1c11"
                      }
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "Rate limited or quota exhausted (`rate_limited` / `quota_exceeded`); `Retry-After` gives the wait in seconds",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/XRequestId"
              },
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfter"
              },
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimitPolicy"
              },
              "RateLimit": {
                "$ref": "#/components/headers/RateLimit"
              },
              "BMP-Rate-Limited-Reason": {
                "$ref": "#/components/headers/BmpRateLimitedReason"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                },
                "examples": {
                  "rate_limited": {
                    "summary": "Too many requests; back off and retry after Retry-After.",
                    "value": {
                      "error": {
                        "category": "rate_limited",
                        "code": "rate_limited",
                        "message": "Too many requests; back off and retry after Retry-After.",
                        "requestId": "0b6f3c1e-8f0a-4a39-9a55-2d4d7f3e1c11",
                        "details": {
                          "msBeforeNext": 12000,
                          "reason": "account-rate",
                          "policy": "account"
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "503": {
            "description": "Temporarily unavailable (`upstream_error`); a retryable outage (`auth_unavailable`, `credits_unavailable`, `entitlement_unavailable`, `refdata_unavailable`) carries `Retry-After`",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/XRequestId"
              },
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfter"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                },
                "examples": {
                  "auth_unavailable": {
                    "summary": "The session store did not answer in time; retry shortly.",
                    "value": {
                      "error": {
                        "category": "upstream_error",
                        "code": "auth_unavailable",
                        "message": "The session store did not answer in time; retry shortly.",
                        "requestId": "0b6f3c1e-8f0a-4a39-9a55-2d4d7f3e1c11"
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/data/v1/cities": {
      "get": {
        "operationId": "dataListCities",
        "summary": "List cities",
        "tags": [
          "Cities"
        ],
        "security": [
          {
            "apiKey": []
          }
        ],
        "x-required-scope": "data:read",
        "x-error-codes": [
          "credit_account_frozen",
          "credits_unavailable",
          "entitlement_unavailable",
          "insufficient_credits",
          "invalid_cursor",
          "price_unavailable",
          "service_not_enabled"
        ],
        "parameters": [
          {
            "in": "query",
            "name": "limit",
            "schema": {
              "default": 50,
              "description": "Items per page, 1–200 (default 50).",
              "type": "integer",
              "minimum": 1,
              "maximum": 200
            },
            "description": "Items per page, 1–200 (default 50)."
          },
          {
            "in": "query",
            "name": "after",
            "schema": {
              "description": "Cursor mode: the page after this cursor (pass meta.after back).",
              "type": "string",
              "minLength": 1,
              "maxLength": 512
            },
            "description": "Cursor mode: the page after this cursor (pass meta.after back)."
          },
          {
            "in": "query",
            "name": "before",
            "schema": {
              "description": "Cursor mode: the page before this cursor (pass meta.before back).",
              "type": "string",
              "minLength": 1,
              "maxLength": 512
            },
            "description": "Cursor mode: the page before this cursor (pass meta.before back)."
          },
          {
            "in": "query",
            "name": "page",
            "schema": {
              "description": "Page mode: 1-based page; the response adds meta.page and meta.totalCount.",
              "type": "integer",
              "minimum": 1,
              "maximum": 10000
            },
            "description": "Page mode: 1-based page; the response adds meta.page and meta.totalCount."
          },
          {
            "in": "query",
            "name": "iataCode",
            "schema": {
              "type": "string",
              "minLength": 3,
              "maxLength": 3,
              "pattern": "^[A-Za-z]{3}$",
              "description": "IATA city code, 3 letters. Case-insensitive: lower case is accepted and normalised (trimmed and upper-cased before it is checked); codes in responses are always upper case.",
              "example": "AMS"
            }
          },
          {
            "in": "query",
            "name": "iataCountryCode",
            "schema": {
              "type": "string",
              "minLength": 2,
              "maxLength": 2,
              "pattern": "^[A-Za-z]{2}$",
              "description": "ISO 3166-1 alpha-2 country code of the city. Case-insensitive: lower case is accepted and normalised (trimmed and upper-cased before it is checked); codes in responses are always upper case.",
              "example": "NL"
            }
          },
          {
            "in": "query",
            "name": "name",
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 100,
              "description": "Name prefix, matched after transliteration (ø becomes o, ß becomes ss) and case folding.",
              "example": "amster"
            }
          },
          {
            "in": "header",
            "name": "If-None-Match",
            "schema": {
              "description": "A previously returned `ETag`. When it still matches, the answer is 304 with no body (and no charge for a free call).",
              "type": "string"
            },
            "description": "A previously returned `ETag`. When it still matches, the answer is 304 with no body (and no charge for a free call)."
          }
        ],
        "responses": {
          "200": {
            "description": "One page of cities",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/XRequestId"
              },
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimitPolicy"
              },
              "RateLimit": {
                "$ref": "#/components/headers/RateLimit"
              },
              "ETag": {
                "description": "Weak validator of this representation; send it back as `If-None-Match`.",
                "schema": {
                  "type": "string",
                  "example": "W/\"4f2a9c1b7d3e8a05\""
                }
              },
              "Cache-Control": {
                "description": "`private, max-age=3600`: cacheable by the client for an hour.",
                "schema": {
                  "type": "string",
                  "example": "private, max-age=3600"
                }
              }
            },
            "content": {
              "application/json": {
                "example": {
                  "data": [
                    {
                      "id": "cit_letxal4ojx3tujmz",
                      "iataCode": "AMS",
                      "name": "Amsterdam",
                      "iataCountryCode": "NL",
                      "timeZone": "Europe/Amsterdam",
                      "latitude": 52.3676,
                      "longitude": 4.9041,
                      "active": true
                    }
                  ],
                  "meta": {
                    "requestId": "0b6f3c1e-8f0a-4a39-9a55-2d4d7f3e1c11",
                    "limit": 50,
                    "after": "l1.W1siYW1zdGVyZGFtIGFpcnBvcnQgc2NoaXBob2wiXSwiYXJwX2l3cWVhd3d1ZnhiNGg1cWEiXQ",
                    "before": null
                  }
                },
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/City"
                      }
                    },
                    "meta": {
                      "type": "object",
                      "properties": {
                        "requestId": {
                          "type": "string",
                          "example": "0b6f3c1e-8f0a-4a39-9a55-2d4d7f3e1c11"
                        },
                        "limit": {
                          "type": "integer",
                          "minimum": 1,
                          "maximum": 2147483647,
                          "example": 50
                        },
                        "after": {
                          "example": "l1.W1siYW1zdGVyZGFtIGFpcnBvcnQgc2NoaXBob2wiXSwiYXJwX2l3cWVhd3d1ZnhiNGg1cWEiXQ",
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "before": {
                          "example": null,
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "page": {
                          "type": "integer",
                          "minimum": 1,
                          "maximum": 2147483647
                        },
                        "totalCount": {
                          "type": "integer",
                          "minimum": 0,
                          "maximum": 2147483647
                        }
                      },
                      "required": [
                        "requestId",
                        "limit",
                        "after",
                        "before"
                      ]
                    }
                  },
                  "required": [
                    "data",
                    "meta"
                  ]
                }
              }
            }
          },
          "304": {
            "description": "Not modified: `If-None-Match` matched the current `ETag`. No body.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/XRequestId"
              },
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimitPolicy"
              },
              "RateLimit": {
                "$ref": "#/components/headers/RateLimit"
              },
              "ETag": {
                "description": "Weak validator of this representation; send it back as `If-None-Match`.",
                "schema": {
                  "type": "string",
                  "example": "W/\"4f2a9c1b7d3e8a05\""
                }
              },
              "Cache-Control": {
                "description": "`private, max-age=3600`: cacheable by the client for an hour.",
                "schema": {
                  "type": "string",
                  "example": "private, max-age=3600"
                }
              }
            }
          },
          "400": {
            "description": "Validation failed (`validation`)",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/XRequestId"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                },
                "examples": {
                  "invalid_request": {
                    "summary": "The request failed schema validation; see fields and formErrors.",
                    "value": {
                      "error": {
                        "category": "validation",
                        "code": "invalid_request",
                        "message": "The request failed schema validation; see fields and formErrors.",
                        "requestId": "0b6f3c1e-8f0a-4a39-9a55-2d4d7f3e1c11",
                        "fields": {
                          "limit": [
                            "Too big: expected number to be <=200"
                          ]
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Not authenticated (`unauthorized`)",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/XRequestId"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                },
                "examples": {
                  "api_key_invalid": {
                    "summary": "The API key is unknown, revoked or malformed.",
                    "value": {
                      "error": {
                        "category": "unauthorized",
                        "code": "api_key_invalid",
                        "message": "The API key is unknown, revoked or malformed.",
                        "requestId": "0b6f3c1e-8f0a-4a39-9a55-2d4d7f3e1c11"
                      }
                    }
                  }
                }
              }
            }
          },
          "402": {
            "description": "Payment required — e.g. not enough credits (`quota_exceeded`)",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/XRequestId"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                },
                "examples": {
                  "insufficient_credits": {
                    "summary": "Not enough credits for this call (balance plus credit allowance). Ask your BeMyPlan contact to top up.",
                    "value": {
                      "error": {
                        "category": "quota_exceeded",
                        "code": "insufficient_credits",
                        "message": "Not enough credits for this call (balance plus credit allowance). Ask your BeMyPlan contact to top up.",
                        "requestId": "0b6f3c1e-8f0a-4a39-9a55-2d4d7f3e1c11",
                        "details": {
                          "required": 1,
                          "available": 0,
                          "balance": -100,
                          "creditAllowance": 100
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Not allowed (`forbidden`)",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/XRequestId"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                },
                "examples": {
                  "insufficient_scope": {
                    "summary": "The API key lacks the scope this route requires.",
                    "value": {
                      "error": {
                        "category": "forbidden",
                        "code": "insufficient_scope",
                        "message": "The API key lacks the scope this route requires.",
                        "requestId": "0b6f3c1e-8f0a-4a39-9a55-2d4d7f3e1c11"
                      }
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "Rate limited or quota exhausted (`rate_limited` / `quota_exceeded`); `Retry-After` gives the wait in seconds",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/XRequestId"
              },
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfter"
              },
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimitPolicy"
              },
              "RateLimit": {
                "$ref": "#/components/headers/RateLimit"
              },
              "BMP-Rate-Limited-Reason": {
                "$ref": "#/components/headers/BmpRateLimitedReason"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                },
                "examples": {
                  "rate_limited": {
                    "summary": "Too many requests; back off and retry after Retry-After.",
                    "value": {
                      "error": {
                        "category": "rate_limited",
                        "code": "rate_limited",
                        "message": "Too many requests; back off and retry after Retry-After.",
                        "requestId": "0b6f3c1e-8f0a-4a39-9a55-2d4d7f3e1c11",
                        "details": {
                          "msBeforeNext": 12000,
                          "reason": "account-rate",
                          "policy": "account"
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "503": {
            "description": "Temporarily unavailable (`upstream_error`); a retryable outage (`auth_unavailable`, `credits_unavailable`, `entitlement_unavailable`, `refdata_unavailable`) carries `Retry-After`",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/XRequestId"
              },
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfter"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                },
                "examples": {
                  "auth_unavailable": {
                    "summary": "The session store did not answer in time; retry shortly.",
                    "value": {
                      "error": {
                        "category": "upstream_error",
                        "code": "auth_unavailable",
                        "message": "The session store did not answer in time; retry shortly.",
                        "requestId": "0b6f3c1e-8f0a-4a39-9a55-2d4d7f3e1c11"
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/data/v1/cities/{cityId}": {
      "get": {
        "operationId": "dataGetCity",
        "summary": "Get one city by id (includes inactive)",
        "tags": [
          "Cities"
        ],
        "security": [
          {
            "apiKey": []
          }
        ],
        "x-required-scope": "data:read",
        "x-error-codes": [
          "city_not_found",
          "credit_account_frozen",
          "credits_unavailable",
          "entitlement_unavailable",
          "insufficient_credits",
          "price_unavailable",
          "service_not_enabled"
        ],
        "parameters": [
          {
            "in": "path",
            "name": "cityId",
            "schema": {
              "type": "string",
              "pattern": "^cit_[a-z2-7]{16}$",
              "description": "The id from a list response. Lower case only; ids are not normalised.",
              "example": "cit_letxal4ojx3tujmz"
            },
            "required": true,
            "description": "The id from a list response. Lower case only; ids are not normalised."
          },
          {
            "in": "header",
            "name": "If-None-Match",
            "schema": {
              "description": "A previously returned `ETag`. When it still matches, the answer is 304 with no body (and no charge for a free call).",
              "type": "string"
            },
            "description": "A previously returned `ETag`. When it still matches, the answer is 304 with no body (and no charge for a free call)."
          }
        ],
        "responses": {
          "200": {
            "description": "The city",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/XRequestId"
              },
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimitPolicy"
              },
              "RateLimit": {
                "$ref": "#/components/headers/RateLimit"
              },
              "ETag": {
                "description": "Weak validator of this representation; send it back as `If-None-Match`.",
                "schema": {
                  "type": "string",
                  "example": "W/\"4f2a9c1b7d3e8a05\""
                }
              },
              "Cache-Control": {
                "description": "`private, max-age=3600`: cacheable by the client for an hour.",
                "schema": {
                  "type": "string",
                  "example": "private, max-age=3600"
                }
              }
            },
            "content": {
              "application/json": {
                "example": {
                  "data": {
                    "id": "cit_letxal4ojx3tujmz",
                    "iataCode": "AMS",
                    "name": "Amsterdam",
                    "iataCountryCode": "NL",
                    "timeZone": "Europe/Amsterdam",
                    "latitude": 52.3676,
                    "longitude": 4.9041,
                    "active": true
                  },
                  "meta": {
                    "requestId": "0b6f3c1e-8f0a-4a39-9a55-2d4d7f3e1c11"
                  }
                },
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/City"
                    },
                    "meta": {
                      "type": "object",
                      "properties": {
                        "requestId": {
                          "type": "string",
                          "example": "0b6f3c1e-8f0a-4a39-9a55-2d4d7f3e1c11"
                        }
                      },
                      "required": [
                        "requestId"
                      ]
                    }
                  },
                  "required": [
                    "data",
                    "meta"
                  ]
                }
              }
            }
          },
          "304": {
            "description": "Not modified: `If-None-Match` matched the current `ETag`. No body.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/XRequestId"
              },
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimitPolicy"
              },
              "RateLimit": {
                "$ref": "#/components/headers/RateLimit"
              },
              "ETag": {
                "description": "Weak validator of this representation; send it back as `If-None-Match`.",
                "schema": {
                  "type": "string",
                  "example": "W/\"4f2a9c1b7d3e8a05\""
                }
              },
              "Cache-Control": {
                "description": "`private, max-age=3600`: cacheable by the client for an hour.",
                "schema": {
                  "type": "string",
                  "example": "private, max-age=3600"
                }
              }
            }
          },
          "400": {
            "description": "Validation failed (`validation`)",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/XRequestId"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                },
                "examples": {
                  "invalid_request": {
                    "summary": "The request failed schema validation; see fields and formErrors.",
                    "value": {
                      "error": {
                        "category": "validation",
                        "code": "invalid_request",
                        "message": "The request failed schema validation; see fields and formErrors.",
                        "requestId": "0b6f3c1e-8f0a-4a39-9a55-2d4d7f3e1c11",
                        "fields": {
                          "limit": [
                            "Too big: expected number to be <=200"
                          ]
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Not authenticated (`unauthorized`)",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/XRequestId"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                },
                "examples": {
                  "api_key_invalid": {
                    "summary": "The API key is unknown, revoked or malformed.",
                    "value": {
                      "error": {
                        "category": "unauthorized",
                        "code": "api_key_invalid",
                        "message": "The API key is unknown, revoked or malformed.",
                        "requestId": "0b6f3c1e-8f0a-4a39-9a55-2d4d7f3e1c11"
                      }
                    }
                  }
                }
              }
            }
          },
          "402": {
            "description": "Payment required — e.g. not enough credits (`quota_exceeded`)",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/XRequestId"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                },
                "examples": {
                  "insufficient_credits": {
                    "summary": "Not enough credits for this call (balance plus credit allowance). Ask your BeMyPlan contact to top up.",
                    "value": {
                      "error": {
                        "category": "quota_exceeded",
                        "code": "insufficient_credits",
                        "message": "Not enough credits for this call (balance plus credit allowance). Ask your BeMyPlan contact to top up.",
                        "requestId": "0b6f3c1e-8f0a-4a39-9a55-2d4d7f3e1c11",
                        "details": {
                          "required": 1,
                          "available": 0,
                          "balance": -100,
                          "creditAllowance": 100
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Not allowed (`forbidden`)",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/XRequestId"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                },
                "examples": {
                  "insufficient_scope": {
                    "summary": "The API key lacks the scope this route requires.",
                    "value": {
                      "error": {
                        "category": "forbidden",
                        "code": "insufficient_scope",
                        "message": "The API key lacks the scope this route requires.",
                        "requestId": "0b6f3c1e-8f0a-4a39-9a55-2d4d7f3e1c11"
                      }
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "Not found (`not_found`)",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/XRequestId"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                },
                "examples": {
                  "city_not_found": {
                    "summary": "No city with that id.",
                    "value": {
                      "error": {
                        "category": "not_found",
                        "code": "city_not_found",
                        "message": "No city with that id.",
                        "requestId": "0b6f3c1e-8f0a-4a39-9a55-2d4d7f3e1c11"
                      }
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "Rate limited or quota exhausted (`rate_limited` / `quota_exceeded`); `Retry-After` gives the wait in seconds",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/XRequestId"
              },
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfter"
              },
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimitPolicy"
              },
              "RateLimit": {
                "$ref": "#/components/headers/RateLimit"
              },
              "BMP-Rate-Limited-Reason": {
                "$ref": "#/components/headers/BmpRateLimitedReason"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                },
                "examples": {
                  "rate_limited": {
                    "summary": "Too many requests; back off and retry after Retry-After.",
                    "value": {
                      "error": {
                        "category": "rate_limited",
                        "code": "rate_limited",
                        "message": "Too many requests; back off and retry after Retry-After.",
                        "requestId": "0b6f3c1e-8f0a-4a39-9a55-2d4d7f3e1c11",
                        "details": {
                          "msBeforeNext": 12000,
                          "reason": "account-rate",
                          "policy": "account"
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "503": {
            "description": "Temporarily unavailable (`upstream_error`); a retryable outage (`auth_unavailable`, `credits_unavailable`, `entitlement_unavailable`, `refdata_unavailable`) carries `Retry-After`",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/XRequestId"
              },
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfter"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                },
                "examples": {
                  "auth_unavailable": {
                    "summary": "The session store did not answer in time; retry shortly.",
                    "value": {
                      "error": {
                        "category": "upstream_error",
                        "code": "auth_unavailable",
                        "message": "The session store did not answer in time; retry shortly.",
                        "requestId": "0b6f3c1e-8f0a-4a39-9a55-2d4d7f3e1c11"
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/data/v1/countries": {
      "get": {
        "operationId": "dataListCountries",
        "summary": "List countries",
        "tags": [
          "Countries"
        ],
        "security": [
          {
            "apiKey": []
          }
        ],
        "x-required-scope": "data:read",
        "x-error-codes": [
          "credit_account_frozen",
          "credits_unavailable",
          "entitlement_unavailable",
          "insufficient_credits",
          "invalid_cursor",
          "price_unavailable",
          "service_not_enabled"
        ],
        "parameters": [
          {
            "in": "query",
            "name": "limit",
            "schema": {
              "default": 50,
              "description": "Items per page, 1–300 (default 50).",
              "type": "integer",
              "minimum": 1,
              "maximum": 300
            },
            "description": "Items per page, 1–300 (default 50)."
          },
          {
            "in": "query",
            "name": "after",
            "schema": {
              "description": "Cursor mode: the page after this cursor (pass meta.after back).",
              "type": "string",
              "minLength": 1,
              "maxLength": 512
            },
            "description": "Cursor mode: the page after this cursor (pass meta.after back)."
          },
          {
            "in": "query",
            "name": "before",
            "schema": {
              "description": "Cursor mode: the page before this cursor (pass meta.before back).",
              "type": "string",
              "minLength": 1,
              "maxLength": 512
            },
            "description": "Cursor mode: the page before this cursor (pass meta.before back)."
          },
          {
            "in": "query",
            "name": "page",
            "schema": {
              "description": "Page mode: 1-based page; the response adds meta.page and meta.totalCount.",
              "type": "integer",
              "minimum": 1,
              "maximum": 10000
            },
            "description": "Page mode: 1-based page; the response adds meta.page and meta.totalCount."
          },
          {
            "in": "query",
            "name": "name",
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 100,
              "description": "Name prefix, matched after transliteration (ø becomes o, ß becomes ss) and case folding.",
              "example": "amster"
            }
          },
          {
            "in": "query",
            "name": "continent",
            "schema": {
              "description": "Continent code: AF, AN, AS, EU, NA, OC or SA. Case-insensitive.",
              "example": "EU",
              "type": "string"
            }
          },
          {
            "in": "header",
            "name": "If-None-Match",
            "schema": {
              "description": "A previously returned `ETag`. When it still matches, the answer is 304 with no body (and no charge for a free call).",
              "type": "string"
            },
            "description": "A previously returned `ETag`. When it still matches, the answer is 304 with no body (and no charge for a free call)."
          }
        ],
        "responses": {
          "200": {
            "description": "One page of countries",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/XRequestId"
              },
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimitPolicy"
              },
              "RateLimit": {
                "$ref": "#/components/headers/RateLimit"
              },
              "ETag": {
                "description": "Weak validator of this representation; send it back as `If-None-Match`.",
                "schema": {
                  "type": "string",
                  "example": "W/\"4f2a9c1b7d3e8a05\""
                }
              },
              "Cache-Control": {
                "description": "`private, max-age=3600`: cacheable by the client for an hour.",
                "schema": {
                  "type": "string",
                  "example": "private, max-age=3600"
                }
              }
            },
            "content": {
              "application/json": {
                "example": {
                  "data": [
                    {
                      "id": "NL",
                      "name": "Netherlands",
                      "iso3": "NLD",
                      "continent": "EU",
                      "currencyCode": "EUR",
                      "active": true
                    }
                  ],
                  "meta": {
                    "requestId": "0b6f3c1e-8f0a-4a39-9a55-2d4d7f3e1c11",
                    "limit": 50,
                    "after": "l1.W1siYW1zdGVyZGFtIGFpcnBvcnQgc2NoaXBob2wiXSwiYXJwX2l3cWVhd3d1ZnhiNGg1cWEiXQ",
                    "before": null
                  }
                },
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Country"
                      }
                    },
                    "meta": {
                      "type": "object",
                      "properties": {
                        "requestId": {
                          "type": "string",
                          "example": "0b6f3c1e-8f0a-4a39-9a55-2d4d7f3e1c11"
                        },
                        "limit": {
                          "type": "integer",
                          "minimum": 1,
                          "maximum": 2147483647,
                          "example": 50
                        },
                        "after": {
                          "example": "l1.W1siYW1zdGVyZGFtIGFpcnBvcnQgc2NoaXBob2wiXSwiYXJwX2l3cWVhd3d1ZnhiNGg1cWEiXQ",
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "before": {
                          "example": null,
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "page": {
                          "type": "integer",
                          "minimum": 1,
                          "maximum": 2147483647
                        },
                        "totalCount": {
                          "type": "integer",
                          "minimum": 0,
                          "maximum": 2147483647
                        }
                      },
                      "required": [
                        "requestId",
                        "limit",
                        "after",
                        "before"
                      ]
                    }
                  },
                  "required": [
                    "data",
                    "meta"
                  ]
                }
              }
            }
          },
          "304": {
            "description": "Not modified: `If-None-Match` matched the current `ETag`. No body.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/XRequestId"
              },
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimitPolicy"
              },
              "RateLimit": {
                "$ref": "#/components/headers/RateLimit"
              },
              "ETag": {
                "description": "Weak validator of this representation; send it back as `If-None-Match`.",
                "schema": {
                  "type": "string",
                  "example": "W/\"4f2a9c1b7d3e8a05\""
                }
              },
              "Cache-Control": {
                "description": "`private, max-age=3600`: cacheable by the client for an hour.",
                "schema": {
                  "type": "string",
                  "example": "private, max-age=3600"
                }
              }
            }
          },
          "400": {
            "description": "Validation failed (`validation`)",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/XRequestId"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                },
                "examples": {
                  "invalid_request": {
                    "summary": "The request failed schema validation; see fields and formErrors.",
                    "value": {
                      "error": {
                        "category": "validation",
                        "code": "invalid_request",
                        "message": "The request failed schema validation; see fields and formErrors.",
                        "requestId": "0b6f3c1e-8f0a-4a39-9a55-2d4d7f3e1c11",
                        "fields": {
                          "limit": [
                            "Too big: expected number to be <=200"
                          ]
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Not authenticated (`unauthorized`)",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/XRequestId"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                },
                "examples": {
                  "api_key_invalid": {
                    "summary": "The API key is unknown, revoked or malformed.",
                    "value": {
                      "error": {
                        "category": "unauthorized",
                        "code": "api_key_invalid",
                        "message": "The API key is unknown, revoked or malformed.",
                        "requestId": "0b6f3c1e-8f0a-4a39-9a55-2d4d7f3e1c11"
                      }
                    }
                  }
                }
              }
            }
          },
          "402": {
            "description": "Payment required — e.g. not enough credits (`quota_exceeded`)",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/XRequestId"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                },
                "examples": {
                  "insufficient_credits": {
                    "summary": "Not enough credits for this call (balance plus credit allowance). Ask your BeMyPlan contact to top up.",
                    "value": {
                      "error": {
                        "category": "quota_exceeded",
                        "code": "insufficient_credits",
                        "message": "Not enough credits for this call (balance plus credit allowance). Ask your BeMyPlan contact to top up.",
                        "requestId": "0b6f3c1e-8f0a-4a39-9a55-2d4d7f3e1c11",
                        "details": {
                          "required": 1,
                          "available": 0,
                          "balance": -100,
                          "creditAllowance": 100
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Not allowed (`forbidden`)",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/XRequestId"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                },
                "examples": {
                  "insufficient_scope": {
                    "summary": "The API key lacks the scope this route requires.",
                    "value": {
                      "error": {
                        "category": "forbidden",
                        "code": "insufficient_scope",
                        "message": "The API key lacks the scope this route requires.",
                        "requestId": "0b6f3c1e-8f0a-4a39-9a55-2d4d7f3e1c11"
                      }
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "Rate limited or quota exhausted (`rate_limited` / `quota_exceeded`); `Retry-After` gives the wait in seconds",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/XRequestId"
              },
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfter"
              },
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimitPolicy"
              },
              "RateLimit": {
                "$ref": "#/components/headers/RateLimit"
              },
              "BMP-Rate-Limited-Reason": {
                "$ref": "#/components/headers/BmpRateLimitedReason"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                },
                "examples": {
                  "rate_limited": {
                    "summary": "Too many requests; back off and retry after Retry-After.",
                    "value": {
                      "error": {
                        "category": "rate_limited",
                        "code": "rate_limited",
                        "message": "Too many requests; back off and retry after Retry-After.",
                        "requestId": "0b6f3c1e-8f0a-4a39-9a55-2d4d7f3e1c11",
                        "details": {
                          "msBeforeNext": 12000,
                          "reason": "account-rate",
                          "policy": "account"
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "503": {
            "description": "Temporarily unavailable (`upstream_error`); a retryable outage (`auth_unavailable`, `credits_unavailable`, `entitlement_unavailable`, `refdata_unavailable`) carries `Retry-After`",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/XRequestId"
              },
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfter"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                },
                "examples": {
                  "auth_unavailable": {
                    "summary": "The session store did not answer in time; retry shortly.",
                    "value": {
                      "error": {
                        "category": "upstream_error",
                        "code": "auth_unavailable",
                        "message": "The session store did not answer in time; retry shortly.",
                        "requestId": "0b6f3c1e-8f0a-4a39-9a55-2d4d7f3e1c11"
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/data/v1/countries/{countryId}": {
      "get": {
        "operationId": "dataGetCountry",
        "summary": "Get one country by ISO alpha-2 id (includes inactive)",
        "tags": [
          "Countries"
        ],
        "security": [
          {
            "apiKey": []
          }
        ],
        "x-required-scope": "data:read",
        "x-error-codes": [
          "country_not_found",
          "credit_account_frozen",
          "credits_unavailable",
          "entitlement_unavailable",
          "insufficient_credits",
          "price_unavailable",
          "service_not_enabled"
        ],
        "parameters": [
          {
            "in": "path",
            "name": "countryId",
            "schema": {
              "type": "string",
              "pattern": "^[A-Za-z]{2}$",
              "description": "ISO 3166-1 alpha-2 country code. Case-insensitive: lower case is accepted and normalised (trimmed and upper-cased before it is checked); codes in responses are always upper case.",
              "example": "NL"
            },
            "required": true,
            "description": "ISO 3166-1 alpha-2 country code. Case-insensitive: lower case is accepted and normalised (trimmed and upper-cased before it is checked); codes in responses are always upper case."
          },
          {
            "in": "header",
            "name": "If-None-Match",
            "schema": {
              "description": "A previously returned `ETag`. When it still matches, the answer is 304 with no body (and no charge for a free call).",
              "type": "string"
            },
            "description": "A previously returned `ETag`. When it still matches, the answer is 304 with no body (and no charge for a free call)."
          }
        ],
        "responses": {
          "200": {
            "description": "The country",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/XRequestId"
              },
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimitPolicy"
              },
              "RateLimit": {
                "$ref": "#/components/headers/RateLimit"
              },
              "ETag": {
                "description": "Weak validator of this representation; send it back as `If-None-Match`.",
                "schema": {
                  "type": "string",
                  "example": "W/\"4f2a9c1b7d3e8a05\""
                }
              },
              "Cache-Control": {
                "description": "`private, max-age=3600`: cacheable by the client for an hour.",
                "schema": {
                  "type": "string",
                  "example": "private, max-age=3600"
                }
              }
            },
            "content": {
              "application/json": {
                "example": {
                  "data": {
                    "id": "NL",
                    "name": "Netherlands",
                    "iso3": "NLD",
                    "continent": "EU",
                    "currencyCode": "EUR",
                    "active": true
                  },
                  "meta": {
                    "requestId": "0b6f3c1e-8f0a-4a39-9a55-2d4d7f3e1c11"
                  }
                },
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/Country"
                    },
                    "meta": {
                      "type": "object",
                      "properties": {
                        "requestId": {
                          "type": "string",
                          "example": "0b6f3c1e-8f0a-4a39-9a55-2d4d7f3e1c11"
                        }
                      },
                      "required": [
                        "requestId"
                      ]
                    }
                  },
                  "required": [
                    "data",
                    "meta"
                  ]
                }
              }
            }
          },
          "304": {
            "description": "Not modified: `If-None-Match` matched the current `ETag`. No body.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/XRequestId"
              },
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimitPolicy"
              },
              "RateLimit": {
                "$ref": "#/components/headers/RateLimit"
              },
              "ETag": {
                "description": "Weak validator of this representation; send it back as `If-None-Match`.",
                "schema": {
                  "type": "string",
                  "example": "W/\"4f2a9c1b7d3e8a05\""
                }
              },
              "Cache-Control": {
                "description": "`private, max-age=3600`: cacheable by the client for an hour.",
                "schema": {
                  "type": "string",
                  "example": "private, max-age=3600"
                }
              }
            }
          },
          "400": {
            "description": "Validation failed (`validation`)",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/XRequestId"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                },
                "examples": {
                  "invalid_request": {
                    "summary": "The request failed schema validation; see fields and formErrors.",
                    "value": {
                      "error": {
                        "category": "validation",
                        "code": "invalid_request",
                        "message": "The request failed schema validation; see fields and formErrors.",
                        "requestId": "0b6f3c1e-8f0a-4a39-9a55-2d4d7f3e1c11",
                        "fields": {
                          "limit": [
                            "Too big: expected number to be <=200"
                          ]
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Not authenticated (`unauthorized`)",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/XRequestId"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                },
                "examples": {
                  "api_key_invalid": {
                    "summary": "The API key is unknown, revoked or malformed.",
                    "value": {
                      "error": {
                        "category": "unauthorized",
                        "code": "api_key_invalid",
                        "message": "The API key is unknown, revoked or malformed.",
                        "requestId": "0b6f3c1e-8f0a-4a39-9a55-2d4d7f3e1c11"
                      }
                    }
                  }
                }
              }
            }
          },
          "402": {
            "description": "Payment required — e.g. not enough credits (`quota_exceeded`)",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/XRequestId"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                },
                "examples": {
                  "insufficient_credits": {
                    "summary": "Not enough credits for this call (balance plus credit allowance). Ask your BeMyPlan contact to top up.",
                    "value": {
                      "error": {
                        "category": "quota_exceeded",
                        "code": "insufficient_credits",
                        "message": "Not enough credits for this call (balance plus credit allowance). Ask your BeMyPlan contact to top up.",
                        "requestId": "0b6f3c1e-8f0a-4a39-9a55-2d4d7f3e1c11",
                        "details": {
                          "required": 1,
                          "available": 0,
                          "balance": -100,
                          "creditAllowance": 100
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Not allowed (`forbidden`)",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/XRequestId"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                },
                "examples": {
                  "insufficient_scope": {
                    "summary": "The API key lacks the scope this route requires.",
                    "value": {
                      "error": {
                        "category": "forbidden",
                        "code": "insufficient_scope",
                        "message": "The API key lacks the scope this route requires.",
                        "requestId": "0b6f3c1e-8f0a-4a39-9a55-2d4d7f3e1c11"
                      }
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "Not found (`not_found`)",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/XRequestId"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                },
                "examples": {
                  "country_not_found": {
                    "summary": "No country with that id.",
                    "value": {
                      "error": {
                        "category": "not_found",
                        "code": "country_not_found",
                        "message": "No country with that id.",
                        "requestId": "0b6f3c1e-8f0a-4a39-9a55-2d4d7f3e1c11"
                      }
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "Rate limited or quota exhausted (`rate_limited` / `quota_exceeded`); `Retry-After` gives the wait in seconds",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/XRequestId"
              },
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfter"
              },
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimitPolicy"
              },
              "RateLimit": {
                "$ref": "#/components/headers/RateLimit"
              },
              "BMP-Rate-Limited-Reason": {
                "$ref": "#/components/headers/BmpRateLimitedReason"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                },
                "examples": {
                  "rate_limited": {
                    "summary": "Too many requests; back off and retry after Retry-After.",
                    "value": {
                      "error": {
                        "category": "rate_limited",
                        "code": "rate_limited",
                        "message": "Too many requests; back off and retry after Retry-After.",
                        "requestId": "0b6f3c1e-8f0a-4a39-9a55-2d4d7f3e1c11",
                        "details": {
                          "msBeforeNext": 12000,
                          "reason": "account-rate",
                          "policy": "account"
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "503": {
            "description": "Temporarily unavailable (`upstream_error`); a retryable outage (`auth_unavailable`, `credits_unavailable`, `entitlement_unavailable`, `refdata_unavailable`) carries `Retry-After`",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/XRequestId"
              },
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfter"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                },
                "examples": {
                  "auth_unavailable": {
                    "summary": "The session store did not answer in time; retry shortly.",
                    "value": {
                      "error": {
                        "category": "upstream_error",
                        "code": "auth_unavailable",
                        "message": "The session store did not answer in time; retry shortly.",
                        "requestId": "0b6f3c1e-8f0a-4a39-9a55-2d4d7f3e1c11"
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/data/v1/places/suggestions": {
      "get": {
        "operationId": "dataSuggestPlaces",
        "summary": "Suggest airports and cities by name, code or position",
        "tags": [
          "Places"
        ],
        "security": [
          {
            "apiKey": []
          }
        ],
        "x-required-scope": "data:read",
        "x-error-codes": [
          "credit_account_frozen",
          "credits_unavailable",
          "entitlement_unavailable",
          "insufficient_credits",
          "place_query_invalid",
          "price_unavailable",
          "service_not_enabled"
        ],
        "parameters": [
          {
            "in": "query",
            "name": "query",
            "schema": {
              "type": "string",
              "minLength": 2,
              "maxLength": 64,
              "description": "Text search over airport and city names and codes. Mutually exclusive with lat and lng.",
              "example": "ams"
            }
          },
          {
            "in": "query",
            "name": "lat",
            "schema": {
              "type": "number",
              "minimum": -90,
              "maximum": 90,
              "description": "Latitude of the position to search around. Give lat and lng together; mutually exclusive with query.",
              "example": 52.31
            },
            "description": "Latitude of the position to search around. Give lat and lng together; mutually exclusive with query."
          },
          {
            "in": "query",
            "name": "lng",
            "schema": {
              "type": "number",
              "minimum": -180,
              "maximum": 180,
              "description": "Longitude of the position to search around. Give lat and lng together.",
              "example": 4.76
            },
            "description": "Longitude of the position to search around. Give lat and lng together."
          },
          {
            "in": "query",
            "name": "rad",
            "schema": {
              "type": "number",
              "minimum": 1,
              "maximum": 500,
              "description": "Radius in km, 1 to 500; 100 when omitted in position mode.",
              "example": 50
            },
            "description": "Radius in km, 1 to 500; 100 when omitted in position mode."
          },
          {
            "in": "query",
            "name": "limit",
            "schema": {
              "default": 20,
              "type": "integer",
              "minimum": 1,
              "maximum": 50
            }
          },
          {
            "in": "header",
            "name": "If-None-Match",
            "schema": {
              "description": "A previously returned `ETag`. When it still matches, the answer is 304 with no body (and no charge for a free call).",
              "type": "string"
            },
            "description": "A previously returned `ETag`. When it still matches, the answer is 304 with no body (and no charge for a free call)."
          }
        ],
        "responses": {
          "200": {
            "description": "Ranked place suggestions",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/XRequestId"
              },
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimitPolicy"
              },
              "RateLimit": {
                "$ref": "#/components/headers/RateLimit"
              },
              "ETag": {
                "description": "Weak validator of this representation; send it back as `If-None-Match`.",
                "schema": {
                  "type": "string",
                  "example": "W/\"4f2a9c1b7d3e8a05\""
                }
              },
              "Cache-Control": {
                "description": "`private, max-age=3600`: cacheable by the client for an hour.",
                "schema": {
                  "type": "string",
                  "example": "private, max-age=3600"
                }
              }
            },
            "content": {
              "application/json": {
                "example": {
                  "data": [
                    {
                      "type": "airport",
                      "id": "arp_iwqeawwufxb4h5qa",
                      "name": "Amsterdam Airport Schiphol",
                      "iataCode": "AMS",
                      "iataCountryCode": "NL",
                      "cityId": "cit_letxal4ojx3tujmz",
                      "cityName": "Amsterdam",
                      "latitude": 52.3086,
                      "longitude": 4.7639,
                      "timeZone": "Europe/Amsterdam",
                      "distanceKm": null
                    }
                  ],
                  "meta": {
                    "requestId": "0b6f3c1e-8f0a-4a39-9a55-2d4d7f3e1c11"
                  }
                },
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Place"
                      }
                    },
                    "meta": {
                      "type": "object",
                      "properties": {
                        "requestId": {
                          "type": "string",
                          "example": "0b6f3c1e-8f0a-4a39-9a55-2d4d7f3e1c11"
                        },
                        "limit": {
                          "type": "integer",
                          "minimum": -9007199254740991,
                          "maximum": 9007199254740991,
                          "description": "The number of suggestions asked for: 1 to 50, 20 when omitted."
                        }
                      },
                      "required": [
                        "requestId",
                        "limit"
                      ]
                    }
                  },
                  "required": [
                    "data",
                    "meta"
                  ]
                }
              }
            }
          },
          "304": {
            "description": "Not modified: `If-None-Match` matched the current `ETag`. No body.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/XRequestId"
              },
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimitPolicy"
              },
              "RateLimit": {
                "$ref": "#/components/headers/RateLimit"
              },
              "ETag": {
                "description": "Weak validator of this representation; send it back as `If-None-Match`.",
                "schema": {
                  "type": "string",
                  "example": "W/\"4f2a9c1b7d3e8a05\""
                }
              },
              "Cache-Control": {
                "description": "`private, max-age=3600`: cacheable by the client for an hour.",
                "schema": {
                  "type": "string",
                  "example": "private, max-age=3600"
                }
              }
            }
          },
          "400": {
            "description": "Validation failed (`validation`)",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/XRequestId"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                },
                "examples": {
                  "invalid_request": {
                    "summary": "The request failed schema validation; see fields and formErrors.",
                    "value": {
                      "error": {
                        "category": "validation",
                        "code": "invalid_request",
                        "message": "The request failed schema validation; see fields and formErrors.",
                        "requestId": "0b6f3c1e-8f0a-4a39-9a55-2d4d7f3e1c11",
                        "fields": {
                          "limit": [
                            "Too big: expected number to be <=200"
                          ]
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Not authenticated (`unauthorized`)",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/XRequestId"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                },
                "examples": {
                  "api_key_invalid": {
                    "summary": "The API key is unknown, revoked or malformed.",
                    "value": {
                      "error": {
                        "category": "unauthorized",
                        "code": "api_key_invalid",
                        "message": "The API key is unknown, revoked or malformed.",
                        "requestId": "0b6f3c1e-8f0a-4a39-9a55-2d4d7f3e1c11"
                      }
                    }
                  }
                }
              }
            }
          },
          "402": {
            "description": "Payment required — e.g. not enough credits (`quota_exceeded`)",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/XRequestId"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                },
                "examples": {
                  "insufficient_credits": {
                    "summary": "Not enough credits for this call (balance plus credit allowance). Ask your BeMyPlan contact to top up.",
                    "value": {
                      "error": {
                        "category": "quota_exceeded",
                        "code": "insufficient_credits",
                        "message": "Not enough credits for this call (balance plus credit allowance). Ask your BeMyPlan contact to top up.",
                        "requestId": "0b6f3c1e-8f0a-4a39-9a55-2d4d7f3e1c11",
                        "details": {
                          "required": 1,
                          "available": 0,
                          "balance": -100,
                          "creditAllowance": 100
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Not allowed (`forbidden`)",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/XRequestId"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                },
                "examples": {
                  "insufficient_scope": {
                    "summary": "The API key lacks the scope this route requires.",
                    "value": {
                      "error": {
                        "category": "forbidden",
                        "code": "insufficient_scope",
                        "message": "The API key lacks the scope this route requires.",
                        "requestId": "0b6f3c1e-8f0a-4a39-9a55-2d4d7f3e1c11"
                      }
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "Rate limited or quota exhausted (`rate_limited` / `quota_exceeded`); `Retry-After` gives the wait in seconds",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/XRequestId"
              },
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfter"
              },
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimitPolicy"
              },
              "RateLimit": {
                "$ref": "#/components/headers/RateLimit"
              },
              "BMP-Rate-Limited-Reason": {
                "$ref": "#/components/headers/BmpRateLimitedReason"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                },
                "examples": {
                  "rate_limited": {
                    "summary": "Too many requests; back off and retry after Retry-After.",
                    "value": {
                      "error": {
                        "category": "rate_limited",
                        "code": "rate_limited",
                        "message": "Too many requests; back off and retry after Retry-After.",
                        "requestId": "0b6f3c1e-8f0a-4a39-9a55-2d4d7f3e1c11",
                        "details": {
                          "msBeforeNext": 12000,
                          "reason": "account-rate",
                          "policy": "account"
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "503": {
            "description": "Temporarily unavailable (`upstream_error`); a retryable outage (`auth_unavailable`, `credits_unavailable`, `entitlement_unavailable`, `refdata_unavailable`) carries `Retry-After`",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/XRequestId"
              },
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfter"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                },
                "examples": {
                  "auth_unavailable": {
                    "summary": "The session store did not answer in time; retry shortly.",
                    "value": {
                      "error": {
                        "category": "upstream_error",
                        "code": "auth_unavailable",
                        "message": "The session store did not answer in time; retry shortly.",
                        "requestId": "0b6f3c1e-8f0a-4a39-9a55-2d4d7f3e1c11"
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "ErrorCategory": {
        "type": "string",
        "enum": [
          "validation",
          "unauthorized",
          "forbidden",
          "not_found",
          "conflict",
          "rate_limited",
          "quota_exceeded",
          "upstream_error",
          "internal"
        ],
        "description": "Closed taxonomy a client maps behaviour from (retry, re-login, upgrade, …)."
      },
      "ErrorCode": {
        "type": "string",
        "enum": [
          "aircraft_not_found",
          "airline_not_found",
          "airport_not_found",
          "api_key_invalid",
          "api_key_missing",
          "api_key_restricted",
          "api_key_workspace_disabled",
          "api_key_wrong_environment",
          "api_version_retired",
          "auth_unavailable",
          "city_not_found",
          "country_not_found",
          "credit_account_frozen",
          "credits_unavailable",
          "entitlement_unavailable",
          "insufficient_credits",
          "insufficient_scope",
          "internal_error",
          "invalid_cursor",
          "invalid_json",
          "invalid_request",
          "invalid_request_body",
          "method_not_allowed",
          "payload_too_large",
          "place_query_invalid",
          "preauth_rate_limited",
          "price_unavailable",
          "rate_limited",
          "refdata_unavailable",
          "route_not_found",
          "service_not_enabled",
          "unsupported_content_encoding"
        ],
        "description": "Every code the API can answer with. `x-error-codes` gives each one its category, status and meaning.",
        "x-error-codes": {
          "aircraft_not_found": {
            "category": "not_found",
            "httpStatus": 404,
            "description": "No aircraft with that id."
          },
          "airline_not_found": {
            "category": "not_found",
            "httpStatus": 404,
            "description": "No airline with that id."
          },
          "airport_not_found": {
            "category": "not_found",
            "httpStatus": 404,
            "description": "No airport with that id."
          },
          "api_key_invalid": {
            "category": "unauthorized",
            "httpStatus": 401,
            "description": "The API key is unknown, revoked or malformed."
          },
          "api_key_missing": {
            "category": "unauthorized",
            "httpStatus": 401,
            "description": "No `Authorization: Bearer <api key>` header was sent."
          },
          "api_key_restricted": {
            "category": "forbidden",
            "httpStatus": 403,
            "description": "The API key is restricted (IP, referrer or domain) from this request."
          },
          "api_key_workspace_disabled": {
            "category": "forbidden",
            "httpStatus": 403,
            "description": "The API key belongs to a suspended workspace; contact support."
          },
          "api_key_wrong_environment": {
            "category": "unauthorized",
            "httpStatus": 401,
            "description": "This API key belongs to another environment (live vs sandbox); use a key created there."
          },
          "api_version_retired": {
            "category": "not_found",
            "httpStatus": 410,
            "description": "This API version is retired; see the migration guide in the Link header."
          },
          "auth_unavailable": {
            "category": "upstream_error",
            "httpStatus": 503,
            "description": "The session store did not answer in time; retry shortly."
          },
          "city_not_found": {
            "category": "not_found",
            "httpStatus": 404,
            "description": "No city with that id."
          },
          "country_not_found": {
            "category": "not_found",
            "httpStatus": 404,
            "description": "No country with that id."
          },
          "credit_account_frozen": {
            "category": "quota_exceeded",
            "httpStatus": 402,
            "description": "Paid calls are paused for this account; contact BeMyPlan support."
          },
          "credits_unavailable": {
            "category": "upstream_error",
            "httpStatus": 503,
            "description": "The credit ledger is unavailable; paid calls are paused. Retry shortly."
          },
          "entitlement_unavailable": {
            "category": "upstream_error",
            "httpStatus": 503,
            "description": "Could not check which services are enabled; retry shortly."
          },
          "insufficient_credits": {
            "category": "quota_exceeded",
            "httpStatus": 402,
            "description": "Not enough credits for this call (balance plus credit allowance). Ask your BeMyPlan contact to top up."
          },
          "insufficient_scope": {
            "category": "forbidden",
            "httpStatus": 403,
            "description": "The API key lacks the scope this route requires."
          },
          "internal_error": {
            "category": "internal",
            "httpStatus": 500,
            "description": "An unexpected server error; quote the requestId to support."
          },
          "invalid_cursor": {
            "category": "validation",
            "httpStatus": 400,
            "description": "The pagination cursor is malformed or was not issued by this API."
          },
          "invalid_json": {
            "category": "validation",
            "httpStatus": 400,
            "description": "The request body is not valid JSON."
          },
          "invalid_request": {
            "category": "validation",
            "httpStatus": 400,
            "description": "The request failed schema validation; see fields and formErrors."
          },
          "invalid_request_body": {
            "category": "validation",
            "httpStatus": 400,
            "description": "The request body could not be read; resend it."
          },
          "method_not_allowed": {
            "category": "validation",
            "httpStatus": 400,
            "description": "This path does not accept this method; the Allow header lists the ones it does."
          },
          "payload_too_large": {
            "category": "validation",
            "httpStatus": 413,
            "description": "The request body is larger than this API accepts."
          },
          "place_query_invalid": {
            "category": "validation",
            "httpStatus": 400,
            "description": "Send either query, or lat + lng (+ rad) — not both, not neither."
          },
          "preauth_rate_limited": {
            "category": "rate_limited",
            "httpStatus": 429,
            "description": "Too many requests from this address before authentication."
          },
          "price_unavailable": {
            "category": "upstream_error",
            "httpStatus": 503,
            "description": "No price is configured for this operation; the call was not run."
          },
          "rate_limited": {
            "category": "rate_limited",
            "httpStatus": 429,
            "description": "Too many requests; back off and retry after Retry-After."
          },
          "refdata_unavailable": {
            "category": "upstream_error",
            "httpStatus": 503,
            "description": "The reference data could not be read; retry shortly."
          },
          "route_not_found": {
            "category": "not_found",
            "httpStatus": 404,
            "description": "No route matches this method and path."
          },
          "service_not_enabled": {
            "category": "forbidden",
            "httpStatus": 403,
            "description": "This service is not enabled for your account; contact BeMyPlan."
          },
          "unsupported_content_encoding": {
            "category": "validation",
            "httpStatus": 415,
            "description": "The body charset or content encoding is not supported; send UTF-8 JSON."
          }
        }
      },
      "Aircraft": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "description": "Stable id of the aircraft type (`arc_` + 16 lower-case characters). Store it; it never changes unless the code it is derived from is reassigned."
          },
          "iataCode": {
            "type": "string",
            "description": "IATA aircraft type code, 3 characters, for example 320."
          },
          "icaoCode": {
            "description": "ICAO aircraft type designator, 2 to 4 characters, for example A320; null when there is none.",
            "type": [
              "string",
              "null"
            ]
          },
          "name": {
            "type": "string",
            "description": "Name of the aircraft type, in English."
          },
          "manufacturer": {
            "description": "Manufacturer of the aircraft type; null when unknown.",
            "type": [
              "string",
              "null"
            ]
          },
          "active": {
            "type": "boolean",
            "description": "False when the record was withdrawn. Lists return active records only; a get by id also returns an inactive one."
          }
        },
        "required": [
          "id",
          "iataCode",
          "icaoCode",
          "name",
          "manufacturer",
          "active"
        ],
        "example": {
          "id": "arc_f3nfkufdtvkmjdp5",
          "iataCode": "320",
          "icaoCode": "A320",
          "name": "Airbus A320",
          "manufacturer": "Airbus",
          "active": true
        }
      },
      "Airline": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "description": "Stable id of the airline (`arl_` + 16 lower-case characters). Store it; it never changes unless the code it is derived from is reassigned."
          },
          "iataCode": {
            "description": "IATA airline designator, 2 characters; null when the airline has none.",
            "type": [
              "string",
              "null"
            ]
          },
          "icaoCode": {
            "description": "ICAO airline designator, 3 letters; null when the airline has none.",
            "type": [
              "string",
              "null"
            ]
          },
          "name": {
            "type": "string",
            "description": "Name of the airline, in English."
          },
          "iataCountryCode": {
            "description": "ISO 3166-1 alpha-2 country code, upper case; null when unknown.",
            "type": [
              "string",
              "null"
            ]
          },
          "conditionsOfCarriageUrl": {
            "description": "The airline's conditions of carriage (https); null when unknown.",
            "type": [
              "string",
              "null"
            ]
          },
          "logoSymbolUrl": {
            "description": "Square logo symbol image (https); null when there is none.",
            "type": [
              "string",
              "null"
            ]
          },
          "logoLockupUrl": {
            "description": "Logo with the airline name (https); null when there is none.",
            "type": [
              "string",
              "null"
            ]
          },
          "alternateIataCodes": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "Other IATA codes of this same airline (a code that changed). Each one also finds this airline with the iataCode filter. Empty when there is none.",
            "example": []
          },
          "alternateIcaoCodes": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "Other ICAO codes of this same airline. Each one also finds this airline with the icaoCode filter. Empty when there is none.",
            "example": []
          },
          "historicalIataCodes": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "IATA codes this same airline used in the past and no longer uses (kept apart from the current alternateIataCodes; validity dates are in codeAliases). Each one still finds this airline with the iataCode filter. Empty when there is none.",
            "example": []
          },
          "historicalIcaoCodes": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "ICAO codes this same airline used in the past and no longer uses (kept apart from the current alternateIcaoCodes; validity dates are in codeAliases). Each one still finds this airline with the icaoCode filter. Empty when there is none.",
            "example": []
          },
          "codeAliases": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/CodeAlias"
            },
            "description": "Every other code of this same record with its kind (current or historical) and validity dates, in source order: the detail behind the alternate and historical code lists. Any of these codes finds this record with the iataCode / icaoCode filter. Empty when there is none.",
            "example": []
          },
          "active": {
            "type": "boolean",
            "description": "False when the record was withdrawn. Lists return active records only; a get by id also returns an inactive one."
          }
        },
        "required": [
          "id",
          "iataCode",
          "icaoCode",
          "name",
          "iataCountryCode",
          "conditionsOfCarriageUrl",
          "logoSymbolUrl",
          "logoLockupUrl",
          "alternateIataCodes",
          "alternateIcaoCodes",
          "historicalIataCodes",
          "historicalIcaoCodes",
          "codeAliases",
          "active"
        ],
        "example": {
          "id": "arl_rkqzjrn7vptgasb4",
          "iataCode": "KL",
          "icaoCode": "KLM",
          "name": "KLM Royal Dutch Airlines",
          "iataCountryCode": "NL",
          "conditionsOfCarriageUrl": null,
          "logoSymbolUrl": null,
          "logoLockupUrl": null,
          "alternateIataCodes": [],
          "alternateIcaoCodes": [],
          "historicalIataCodes": [],
          "historicalIcaoCodes": [],
          "codeAliases": [],
          "active": true
        }
      },
      "CodeAlias": {
        "type": "object",
        "properties": {
          "code": {
            "type": "string",
            "description": "The alias code, upper case.",
            "example": "MLH"
          },
          "system": {
            "type": "string",
            "enum": [
              "iata",
              "icao"
            ],
            "description": "The code system: `iata` or `icao`. Airports carry IATA aliases only.",
            "example": "iata"
          },
          "kind": {
            "type": "string",
            "enum": [
              "current",
              "historical"
            ],
            "description": "`current`: the code is in use today for this same record (it is also listed in `alternateIataCodes` / `alternateIcaoCodes`). `historical`: the code was used for this record in the past and is no longer (it is also listed in `historicalIataCodes` / `historicalIcaoCodes`). Either kind finds this record with the matching code filter.",
            "example": "current"
          },
          "validFrom": {
            "anyOf": [
              {
                "type": "string",
                "format": "date",
                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
              },
              {
                "type": "null"
              }
            ],
            "description": "First day the code was valid for this record (ISO date); null when unknown.",
            "example": null
          },
          "validTo": {
            "anyOf": [
              {
                "type": "string",
                "format": "date",
                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
              },
              {
                "type": "null"
              }
            ],
            "description": "Last day the code was valid for this record (ISO date); null when unknown or, for a current code, still valid.",
            "example": null
          }
        },
        "required": [
          "code",
          "system",
          "kind",
          "validFrom",
          "validTo"
        ],
        "description": "One other code of this same record, current or historical. The record's own `iataCode` / `icaoCode` is never repeated here.",
        "example": {
          "code": "MLH",
          "system": "iata",
          "kind": "current",
          "validFrom": null,
          "validTo": null
        }
      },
      "Airport": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "description": "Stable id of the airport (`arp_` + 16 lower-case characters). Store it; it never changes unless the code it is derived from is reassigned."
          },
          "iataCode": {
            "type": "string",
            "description": "IATA airport code, 3 upper-case letters."
          },
          "icaoCode": {
            "description": "ICAO airport code, 4 characters; null when the airport has none.",
            "type": [
              "string",
              "null"
            ]
          },
          "name": {
            "type": "string",
            "description": "Name of the airport, in English."
          },
          "cityId": {
            "description": "Id of the city the airport serves (`cit_…`); null when the airport has no city record.",
            "type": [
              "string",
              "null"
            ]
          },
          "iataCityCode": {
            "type": "string",
            "description": "IATA code of the city (or metropolitan area) the airport belongs to."
          },
          "iataCountryCode": {
            "type": "string",
            "description": "ISO 3166-1 alpha-2 country code, upper case."
          },
          "latitude": {
            "type": "number",
            "description": "Latitude, WGS 84 decimal degrees."
          },
          "longitude": {
            "type": "number",
            "description": "Longitude, WGS 84 decimal degrees."
          },
          "timeZone": {
            "type": "string",
            "description": "IANA time zone name, for example Europe/Amsterdam."
          },
          "type": {
            "description": "Size class: large_airport, medium_airport, small_airport or other_airport (heliports, seaplane bases and similar); null when unknown.",
            "type": [
              "string",
              "null"
            ]
          },
          "elevationFt": {
            "anyOf": [
              {
                "type": "integer",
                "minimum": -9007199254740991,
                "maximum": 9007199254740991
              },
              {
                "type": "null"
              }
            ],
            "description": "Elevation in whole feet (negative below sea level); null when unknown.",
            "example": -11
          },
          "region": {
            "description": "State or province name; null when unknown.",
            "example": "North Holland",
            "type": [
              "string",
              "null"
            ]
          },
          "website": {
            "description": "Official website (https); null when unknown.",
            "example": "https://www.schiphol.nl/",
            "type": [
              "string",
              "null"
            ]
          },
          "wikipediaUrl": {
            "description": "Wikipedia article (https); null when unknown.",
            "example": "https://en.wikipedia.org/wiki/Amsterdam_Airport_Schiphol",
            "type": [
              "string",
              "null"
            ]
          },
          "alternateIataCodes": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "Other IATA codes of this same airport (a code that changed, or an airport listed under two codes, such as Basel-Mulhouse BSL and MLH; EAP is the city code, see the cities list). Each one also finds this airport with the iataCode filter. Empty when there is none.",
            "example": []
          },
          "historicalIataCodes": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "IATA codes this same airport used in the past and no longer uses (kept apart from the current alternateIataCodes; validity dates are in codeAliases). Each one still finds this airport with the iataCode filter. Empty when there is none.",
            "example": []
          },
          "codeAliases": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/CodeAlias"
            },
            "description": "Every other code of this same record with its kind (current or historical) and validity dates, in source order: the detail behind the alternate and historical code lists. Any of these codes finds this record with the iataCode / icaoCode filter. Empty when there is none.",
            "example": []
          },
          "active": {
            "type": "boolean",
            "description": "False when the record was withdrawn. Lists return active records only; a get by id also returns an inactive one."
          }
        },
        "required": [
          "id",
          "iataCode",
          "icaoCode",
          "name",
          "cityId",
          "iataCityCode",
          "iataCountryCode",
          "latitude",
          "longitude",
          "timeZone",
          "type",
          "elevationFt",
          "region",
          "website",
          "wikipediaUrl",
          "alternateIataCodes",
          "historicalIataCodes",
          "codeAliases",
          "active"
        ],
        "example": {
          "id": "arp_iwqeawwufxb4h5qa",
          "iataCode": "AMS",
          "icaoCode": "EHAM",
          "name": "Amsterdam Airport Schiphol",
          "cityId": "cit_letxal4ojx3tujmz",
          "iataCityCode": "AMS",
          "iataCountryCode": "NL",
          "latitude": 52.3086,
          "longitude": 4.7639,
          "timeZone": "Europe/Amsterdam",
          "type": "large_airport",
          "elevationFt": -11,
          "region": "North Holland",
          "website": "https://www.schiphol.nl/",
          "wikipediaUrl": "https://en.wikipedia.org/wiki/Amsterdam_Airport_Schiphol",
          "alternateIataCodes": [],
          "historicalIataCodes": [],
          "codeAliases": [],
          "active": true
        }
      },
      "City": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "description": "Stable id of the city (`cit_` + 16 lower-case characters). Store it; it never changes unless the code it is derived from is reassigned."
          },
          "iataCode": {
            "type": "string",
            "description": "IATA city code, 3 upper-case letters. A metropolitan code (LON, PAR) groups several airports."
          },
          "name": {
            "type": "string",
            "description": "Name of the city, in English."
          },
          "iataCountryCode": {
            "type": "string",
            "description": "ISO 3166-1 alpha-2 country code, upper case."
          },
          "timeZone": {
            "type": "string",
            "description": "IANA time zone name, for example Europe/Amsterdam."
          },
          "latitude": {
            "description": "Latitude, WGS 84 decimal degrees; null when unknown. For a city this is its main airport position.",
            "type": [
              "number",
              "null"
            ]
          },
          "longitude": {
            "description": "Longitude, WGS 84 decimal degrees; null when unknown. For a city this is its main airport position.",
            "type": [
              "number",
              "null"
            ]
          },
          "active": {
            "type": "boolean",
            "description": "False when the record was withdrawn. Lists return active records only; a get by id also returns an inactive one."
          }
        },
        "required": [
          "id",
          "iataCode",
          "name",
          "iataCountryCode",
          "timeZone",
          "latitude",
          "longitude",
          "active"
        ],
        "example": {
          "id": "cit_letxal4ojx3tujmz",
          "iataCode": "AMS",
          "name": "Amsterdam",
          "iataCountryCode": "NL",
          "timeZone": "Europe/Amsterdam",
          "latitude": 52.3676,
          "longitude": 4.9041,
          "active": true
        }
      },
      "Country": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "description": "ISO 3166-1 alpha-2 code, upper case; the id of a country."
          },
          "name": {
            "type": "string",
            "description": "Name of the country, in English."
          },
          "iso3": {
            "description": "ISO 3166-1 alpha-3 code; null when unknown.",
            "type": [
              "string",
              "null"
            ]
          },
          "continent": {
            "description": "Continent code: AF (Africa), AN (Antarctica), AS (Asia), EU (Europe), NA (North America), OC (Oceania) or SA (South America); null when unknown.",
            "type": [
              "string",
              "null"
            ]
          },
          "currencyCode": {
            "description": "ISO 4217 code of the main currency; null when unknown.",
            "type": [
              "string",
              "null"
            ]
          },
          "active": {
            "type": "boolean",
            "description": "False when the record was withdrawn. Lists return active records only; a get by id also returns an inactive one."
          }
        },
        "required": [
          "id",
          "name",
          "iso3",
          "continent",
          "currencyCode",
          "active"
        ],
        "example": {
          "id": "NL",
          "name": "Netherlands",
          "iso3": "NLD",
          "continent": "EU",
          "currencyCode": "EUR",
          "active": true
        }
      },
      "Place": {
        "type": "object",
        "properties": {
          "type": {
            "type": "string",
            "enum": [
              "airport",
              "city"
            ],
            "description": "What the suggestion is: an airport or a city. (Not the size class of an airport.)"
          },
          "id": {
            "type": "string",
            "description": "Id of the airport (`arp_…`) or the city (`cit_…`)."
          },
          "name": {
            "type": "string",
            "description": "Name of the airport or city, in English."
          },
          "iataCode": {
            "type": "string",
            "description": "IATA code of the airport or the city."
          },
          "iataCountryCode": {
            "type": "string",
            "description": "ISO 3166-1 alpha-2 country code, upper case."
          },
          "cityId": {
            "description": "For an airport, the id of its city; null for a city and for an airport without a city record.",
            "type": [
              "string",
              "null"
            ]
          },
          "cityName": {
            "description": "For an airport, its city's name; for a city, its own name.",
            "type": [
              "string",
              "null"
            ]
          },
          "latitude": {
            "description": "Latitude, WGS 84 decimal degrees; null when unknown. For a city this is its main airport position.",
            "type": [
              "number",
              "null"
            ]
          },
          "longitude": {
            "description": "Longitude, WGS 84 decimal degrees; null when unknown. For a city this is its main airport position.",
            "type": [
              "number",
              "null"
            ]
          },
          "timeZone": {
            "type": "string",
            "description": "IANA time zone name, for example Europe/Amsterdam."
          },
          "distanceKm": {
            "description": "Distance in km from the searched position (position search only); null in text search.",
            "type": [
              "number",
              "null"
            ]
          }
        },
        "required": [
          "type",
          "id",
          "name",
          "iataCode",
          "iataCountryCode",
          "cityId",
          "cityName",
          "latitude",
          "longitude",
          "timeZone",
          "distanceKm"
        ],
        "example": {
          "type": "airport",
          "id": "arp_iwqeawwufxb4h5qa",
          "name": "Amsterdam Airport Schiphol",
          "iataCode": "AMS",
          "iataCountryCode": "NL",
          "cityId": "cit_letxal4ojx3tujmz",
          "cityName": "Amsterdam",
          "latitude": 52.3086,
          "longitude": 4.7639,
          "timeZone": "Europe/Amsterdam",
          "distanceKm": null
        }
      },
      "ErrorEnvelope": {
        "type": "object",
        "properties": {
          "error": {
            "type": "object",
            "properties": {
              "category": {
                "$ref": "#/components/schemas/ErrorCategory"
              },
              "code": {
                "$ref": "#/components/schemas/ErrorCode"
              },
              "message": {
                "type": "string",
                "description": "For logs only — render `code` through your own catalogue."
              },
              "requestId": {
                "type": "string"
              },
              "details": {
                "type": "object",
                "propertyNames": {
                  "type": "string"
                },
                "additionalProperties": {}
              },
              "fields": {
                "type": "object",
                "propertyNames": {
                  "type": "string"
                },
                "additionalProperties": {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                }
              },
              "formErrors": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              }
            },
            "required": [
              "category",
              "code",
              "message",
              "requestId"
            ]
          }
        },
        "required": [
          "error"
        ]
      }
    },
    "headers": {
      "XRequestId": {
        "description": "The id of this request. Quote it when you contact support; it is also in the error envelope.",
        "schema": {
          "type": "string",
          "example": "0b6f3c1e-8f0a-4a39-9a55-2d4d7f3e1c11"
        }
      },
      "RateLimitPolicy": {
        "description": "IETF `RateLimit-Policy`: the quota policies that applied, as `\"name\";q=<quota>;w=<window seconds>`.",
        "schema": {
          "type": "string",
          "example": "\"account\";q=600;w=60"
        }
      },
      "RateLimit": {
        "description": "IETF `RateLimit`: what is left per policy, as `\"name\";r=<remaining>;t=<seconds until reset>`.",
        "schema": {
          "type": "string",
          "example": "\"account\";r=599;t=60"
        }
      },
      "RetryAfter": {
        "description": "Seconds to wait before retrying.",
        "schema": {
          "type": "integer",
          "minimum": 1,
          "example": 12
        }
      },
      "BmpRateLimitedReason": {
        "description": "Which limit refused a post-authentication request: `account-rate`, `service-rate` or `endpoint-rate`.",
        "schema": {
          "type": "string",
          "enum": [
            "account-rate",
            "service-rate",
            "endpoint-rate"
          ],
          "example": "account-rate"
        }
      },
      "Deprecation": {
        "description": "RFC 9745: this API major is deprecated since the given moment (`@<unix seconds>`).",
        "schema": {
          "type": "string",
          "example": "@1798761600"
        }
      },
      "Sunset": {
        "description": "RFC 8594: the moment this API major stops answering (HTTP date). Present when a sunset day is set.",
        "schema": {
          "type": "string",
          "example": "Thu, 31 Dec 2026 00:00:00 GMT"
        }
      },
      "Link": {
        "description": "A `rel=\"deprecation\"` link to the migration guide. Present only when one is configured.",
        "schema": {
          "type": "string",
          "example": "<https://example.com/migrate>; rel=\"deprecation\"; type=\"text/html\""
        }
      },
      "IdempotentReplayed": {
        "description": "`true` when this is the stored response of an earlier request with the same `Idempotency-Key`.",
        "schema": {
          "type": "string",
          "enum": [
            "true"
          ]
        }
      }
    },
    "securitySchemes": {
      "apiKey": {
        "type": "http",
        "scheme": "bearer",
        "description": "A BeMyPlan API key: `Authorization: Bearer bmp_live_…` in production, `bmp_test_…` in sandbox."
      }
    }
  }
}
