{
  "openapi": "3.0.0",
  "info": {
    "description": "\nBefore using this API, we recommend you read our **[Authorization Guide](https://developers.amadeus.com/self-service/apis-docs/guides/authorization-262)** for more information on how to generate an access token.\n\nPlease also be aware that our test environment is based on a subset of the production, to see what is included in test please refer to our **[data collection](https://github.com/amadeus4dev/data-collection)**.",
    "title": "Flight Check-in Links",
    "version": "2.1.3",
    "x-release-note": {
      "2.0": [
        "Initial Version"
      ],
      "2.1.0": [
        "Change parameter \"airline\" by \"airlineCode\"",
        "Correct example"
      ]
    },
    "x-status": "validated",
    "x-tags": [
      "#ama-for-dev"
    ],
    "x-jentic-source-url": "https://raw.githubusercontent.com/amadeus4dev/amadeus-open-api-specification/main/spec/json/FlightCheck-inLinks_v2_swagger_specification.json"
  },
  "servers": [
    {
      "url": "https://test.api.amadeus.com/v2"
    }
  ],
  "paths": {
    "/reference-data/urls/checkin-links": {
      "get": {
        "parameters": [
          {
            "description": "Airline code following IATA or ICAO standard - e.g. 1X; AF or ESY\n\n[IATA table codes](http://www.iata.org/publications/Pages/code-search.aspx)\n\n[ICAO airlines table codes](https://en.wikipedia.org/wiki/List_of_airline_codes)\n",
            "example": "BA",
            "in": "query",
            "name": "airlineCode",
            "required": true,
            "schema": {
              "pattern": "([A-Z]{3}|[A-Z]{2})|([0-9][A-Z])|([A-Z][0-9])",
              "type": "string"
            }
          },
          {
            "description": "Check-in page language with one of the following patterns 'languageCode' (e.g. EN) or 'languageCode-IATAcountryCode' (e.g. en-GB). \n\nDefault value is **en-GB** (used when required language is not available or when no value is specified).\n",
            "in": "query",
            "name": "language",
            "required": false,
            "schema": {
              "pattern": "[a-zA-Z]{2}([-][a-zA-Z]{2})?",
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "$ref": "#/components/responses/checkin-links"
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "default": {
            "$ref": "#/components/responses/500"
          }
        },
        "tags": [
          "checkin-links"
        ],
        "description": "",
        "operationId": "getCheckinURLs",
        "summary": "Lists Check-in URLs."
      }
    }
  },
  "components": {
    "responses": {
      "400": {
        "content": {
          "application/vnd.amadeus+json": {
            "schema": {
              "$ref": "#/components/schemas/Error_400"
            }
          }
        },
        "description": "code    | title                                 \n------- | ------------------------------------- \n477     | INVALID FORMAT\n572     | INVALID OPTION\n32171     | MANDATORY DATA MISSING                      \t     \n"
      },
      "500": {
        "content": {
          "application/vnd.amadeus+json": {
            "schema": {
              "$ref": "#/components/schemas/Error_500"
            }
          }
        },
        "description": "Unexpected Error"
      },
      "checkin-links": {
        "content": {
          "application/vnd.amadeus+json": {
            "schema": {
              "example": {
                "data": [
                  {
                    "channel": "Mobile",
                    "href": "https://www.britishairways.com/travel/olcilandingpageauthreq/public/en_gb/device-mobile",
                    "id": "BAEN-GBMobile",
                    "type": "checkin-link"
                  },
                  {
                    "channel": "Web",
                    "href": "https://www.britishairways.com/travel/olcilandingpageauthreq/public/en_gb",
                    "id": "BAEN-GBWeb",
                    "type": "checkin-link"
                  }
                ],
                "meta": {
                  "count": 2,
                  "links": {
                    "self": "https://test.api.amadeus.com/v2/reference-data/urls/checkin-links?airlineCode=BA&language=EN"
                  }
                }
              },
              "properties": {
                "data": {
                  "items": {
                    "$ref": "#/components/schemas/CheckinLink"
                  },
                  "type": "array"
                },
                "meta": {
                  "$ref": "#/components/schemas/Collection_Meta"
                },
                "warnings": {
                  "items": {
                    "$ref": "#/components/schemas/Issue"
                  },
                  "type": "array"
                }
              },
              "required": [
                "data"
              ],
              "title": "Success",
              "type": "object"
            }
          }
        },
        "description": "Successful Operation"
      }
    },
    "schemas": {
      "CheckinLink": {
        "properties": {
          "parameters": {
            "additionalProperties": {
              "$ref": "#/components/schemas/Parameter"
            },
            "description": "list of URL parameters with descriptive information such as description and/or type and/or format"
          },
          "channel": {
            "description": "indicates the type of channel supported by the URL",
            "enum": [
              "Mobile",
              "Web",
              "All"
            ],
            "example": "Mobile",
            "type": "string"
          },
          "href": {
            "description": "direct URL to the relevant page",
            "format": "uri",
            "type": "string"
          },
          "id": {
            "description": "identifier of the resource",
            "example": "1XEN-GBMobile",
            "type": "string"
          },
          "type": {
            "description": "the resource name",
            "example": "checkin-link",
            "type": "string"
          }
        },
        "required": [
          "type",
          "id",
          "href",
          "channel"
        ],
        "type": "object"
      },
      "Collection_Meta": {
        "properties": {
          "count": {
            "example": 1,
            "type": "integer"
          },
          "links": {
            "example": {
              "self": "https://test.api.amadeus.com/v1/area/resources?param=value"
            },
            "properties": {
              "first": {
                "example": "https://test.api.amadeus.com/v1/area/resources?...",
                "format": "uri",
                "type": "string"
              },
              "last": {
                "example": "https://test.api.amadeus.com/v1/area/resources?...",
                "format": "uri",
                "type": "string"
              },
              "next": {
                "example": "https://test.api.amadeus.com/v1/area/resources?...",
                "format": "uri",
                "type": "string"
              },
              "previous": {
                "example": "https://test.api.amadeus.com/v1/area/resources?...",
                "format": "uri",
                "type": "string"
              },
              "self": {
                "example": "https://test.api.amadeus.com/v1/area/resources?...",
                "format": "uri",
                "type": "string"
              },
              "up": {
                "example": "https://test.api.amadeus.com/v1/area/resources?...",
                "format": "uri",
                "type": "string"
              }
            },
            "title": "CollectionLinks",
            "type": "object"
          }
        },
        "title": "Collection_Meta",
        "type": "object"
      },
      "Error_400": {
        "example": {
          "errors": [
            {
              "code": 477,
              "detail": "invalid query parameter format",
              "source": {
                "example": "CDG",
                "parameter": "airport"
              },
              "status": 400,
              "title": "INVALID FORMAT"
            }
          ]
        },
        "properties": {
          "errors": {
            "items": {
              "$ref": "#/components/schemas/Issue"
            },
            "type": "array"
          }
        },
        "required": [
          "errors"
        ],
        "type": "object"
      },
      "Error_500": {
        "example": {
          "errors": [
            {
              "code": 141,
              "status": 500,
              "title": "SYSTEM ERROR HAS OCCURRED"
            }
          ]
        },
        "properties": {
          "errors": {
            "items": {
              "$ref": "#/components/schemas/Issue"
            },
            "type": "array"
          }
        },
        "required": [
          "errors"
        ],
        "type": "object"
      },
      "Issue": {
        "properties": {
          "code": {
            "description": "an application-specific error code",
            "format": "int64",
            "type": "integer"
          },
          "detail": {
            "description": "explanation of the error",
            "type": "string"
          },
          "source": {
            "description": "an object containing references to the source of the error",
            "maxProperties": 1,
            "properties": {
              "example": {
                "description": "a string indicating an example of the right value",
                "type": "string"
              },
              "parameter": {
                "description": "a string indicating which URI query parameter caused the issue",
                "type": "string"
              },
              "pointer": {
                "description": "a JSON Pointer [RFC6901] to the associated entity in the request document",
                "type": "string"
              }
            },
            "title": "Issue_Source",
            "type": "object"
          },
          "status": {
            "description": "the HTTP status code applicable to this error",
            "type": "integer"
          },
          "title": {
            "description": "a short summary of the error",
            "type": "string"
          }
        },
        "type": "object"
      },
      "Parameter": {
        "properties": {
          "description": {
            "description": "parameter descriptive information",
            "example": "Passenger last name",
            "type": "string"
          },
          "format": {
            "description": "format of the parameter",
            "example": "([a-zA-Z]|[0-9]){6}",
            "type": "string"
          },
          "type": {
            "description": "type of the parameter",
            "example": "string",
            "type": "string"
          }
        },
        "required": [
          "type"
        ],
        "type": "object"
      }
    }
  },
  "x-generatedAt": "2020-07-23T11:25:45.773Z"
}