---
updatedAt: 2025-12-28T21:51:27.000Z
agentTools:
  projectIndex: https://docs.aerocrs.com/llms.txt
---

# getFlight (COPY)

The method will allow you to validate selling information about a specific flight

# OpenAPI definition

```json
{
  "openapi": "3.1.0",
  "info": {
    "title": "aerocrs-v5",
    "version": "5.0"
  },
  "servers": [
    {
      "url": "https://api.aerocrs.com/v5"
    }
  ],
  "components": {
    "securitySchemes": {
      "sec0": {
        "type": "apiKey",
        "in": "header",
        "name": "auth_id"
      },
      "sec1": {
        "type": "apiKey",
        "in": "header",
        "name": "auth_password"
      }
    }
  },
  "security": [
    {
      "sec0": [],
      "sec1": []
    }
  ],
  "paths": {
    "/getFlight (COPY)": {
      "post": {
        "summary": "getFlight (COPY)",
        "description": "The method will allow you to validate selling information about a specific flight",
        "operationId": "getflight-copy",
        "parameters": [
          {
            "name": "RAW_BODY",
            "in": "query",
            "description": "The method accepts the XML / JSON input as POST, response format will be according to the sent format. You can try JSON, put the post in the following input and click \"Try It\"",
            "required": true,
            "schema": {
              "type": "string",
              "format": "json"
            }
          },
          {
            "name": "auth_id",
            "in": "header",
            "description": "ID provided to you by AeroCRS",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "auth_password",
            "in": "header",
            "description": "Password provided to you by AeroCRS",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "RAW_BODY": {
                    "type": "string"
                  }
                }
              },
              "examples": {
                "JSON": {
                  "value": {
                    "aerocrs": {
                      "parms": {
                        "triptype": "RT",
                        "fromcode": "MAD",
                        "tocode": "BCN",
                        "adults": 1,
                        "child": 0,
                        "infant": 0,
                        "flightid1": 10953299,
                        "fareid1": 341656,
                        "flightid2": 9418519,
                        "fareid2": 281539
                      }
                    }
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "200",
            "content": {
              "application/json": {
                "examples": {
                  "JSON": {
                    "value": "{\n    \"aerocrs\": {\n        \"success\": true,\n        \"getFlight\": {\n            \"flight\": [\n                {\n                    \"airline\": \"DevSandbox\",\n                    \"airlineid\": 288,\n                    \"flightid\": 10953299,\n                    \"fromcode\": \"MAD\",\n                    \"tocode\": \"BCN\",\n                    \"from\": \"Madrid\",\n                    \"to\": \"Barcelona\",\n                    \"via\": null,\n                    \"flightdate\": \"2019/11/01\",\n                    \"depart\": \"10:30\",\n                    \"arrive\": \"12:00\",\n                    \"number\": \"M101\",\n                    \"class\": \"ECO/Y/Basic\",\n                    \"rackfare_adult\": \"187.00\",\n                    \"rackfare_child\": \"115.50\",\n                    \"rackfare_infant\": \"0.00\",\n                    \"agtfare_adult\": \"187.00\",\n                    \"agtfare_child\": \"115.50\",\n                    \"agtfare_infant\": \"0.00\",\n                    \"tax\": \"1.10\",\n                    \"net_fare\": \"187.00\",\n                    \"rack_fare\": \"187.00\",\n                    \"totaltax\": \"1.10\",\n                    \"companywebdiscount\": \"1.0000\",\n                    \"currency\": \"USD\",\n                    \"converttousd\": 1,\n                    \"terms\": \"%3Cp%3ETerms%20and%20Conditions%3C%2Fp%3E%0A%3Cp%3ERules%20if%20I%20write%20here%20different%20things%3A%3C%2Fp%3E%0A%3Cp%3E1%29%20How%20this%20will%20be%20displayed%3C%2Fp%3E%0A%3Cp%3E2%29%20Correctly%3C%2Fp%3E%0A%3Cp%3E3%29%20Incorrectly%3C%2Fp%3E\",\n                    \"services\": {\n                        \"SeatSelection\": false,\n                        \"HandBaggage\": true,\n                        \"CheckedInBaggage\": false,\n                        \"RefundableTicket\": false,\n                        \"FlexibleAmendment\": true,\n                        \"PriorityCheckIn\": false,\n                        \"FlexibleCancellation\": true,\n                        \"FoodOnBoard\": false\n                    }\n                },\n                {\n                    \"airline\": \"DevSandbox\",\n                    \"airlineid\": 288,\n                    \"flightid\": 9418519,\n                    \"fromcode\": \"BCN\",\n                    \"tocode\": \"MAD\",\n                    \"from\": \"Barcelona\",\n                    \"to\": \"Madrid\",\n                    \"via\": \"\",\n                    \"flightdate\": \"2019/11/02\",\n                    \"depart\": \"08:00\",\n                    \"arrive\": \"09:00\",\n                    \"number\": \"A100\",\n                    \"class\": \"ECO/E/Basic\",\n                    \"rackfare_adult\": \"13.00\",\n                    \"rackfare_child\": \"11.00\",\n                    \"rackfare_infant\": \"11.00\",\n                    \"agtfare_adult\": \"13.00\",\n                    \"agtfare_child\": \"11.00\",\n                    \"agtfare_infant\": \"11.00\",\n                    \"tax\": \"0.00\",\n                    \"net_fare\": \"13.00\",\n                    \"rack_fare\": \"13.00\",\n                    \"totaltax\": \"0.00\",\n                    \"companywebdiscount\": \"1.0000\",\n                    \"currency\": \"USD\",\n                    \"converttousd\": 1,\n                    \"terms\": \"%3Cp%3ETerms%20and%20Conditions%3C%2Fp%3E%0A%3Cp%3ERules%20if%20I%20write%20here%20different%20things%3A%3C%2Fp%3E%0A%3Cp%3E1%29%20How%20this%20will%20be%20displayed%3C%2Fp%3E%0A%3Cp%3E2%29%20Correctly%3C%2Fp%3E%0A%3Cp%3E3%29%20Incorrectly%3C%2Fp%3E\",\n                    \"services\": {\n                        \"SeatSelection\": false,\n                        \"HandBaggage\": true,\n                        \"CheckedInBaggage\": false,\n                        \"RefundableTicket\": false,\n                        \"FlexibleAmendment\": true,\n                        \"PriorityCheckIn\": false,\n                        \"FlexibleCancellation\": true,\n                        \"FoodOnBoard\": false\n                    }\n                }\n            ]\n        }\n    }\n}"
                  }
                },
                "schema": {
                  "type": "object",
                  "properties": {
                    "aerocrs": {
                      "type": "object",
                      "properties": {
                        "success": {
                          "type": "boolean",
                          "example": true,
                          "default": true
                        },
                        "getFlight": {
                          "type": "object",
                          "properties": {
                            "flight": {
                              "type": "array",
                              "items": {
                                "type": "object",
                                "properties": {
                                  "airline": {
                                    "type": "string",
                                    "example": "DevSandbox"
                                  },
                                  "airlineid": {
                                    "type": "integer",
                                    "example": 288,
                                    "default": 0
                                  },
                                  "flightid": {
                                    "type": "integer",
                                    "example": 10953299,
                                    "default": 0
                                  },
                                  "fromcode": {
                                    "type": "string",
                                    "example": "MAD"
                                  },
                                  "tocode": {
                                    "type": "string",
                                    "example": "BCN"
                                  },
                                  "from": {
                                    "type": "string",
                                    "example": "Madrid"
                                  },
                                  "to": {
                                    "type": "string",
                                    "example": "Barcelona"
                                  },
                                  "via": {},
                                  "flightdate": {
                                    "type": "string",
                                    "example": "2019/11/01"
                                  },
                                  "depart": {
                                    "type": "string",
                                    "example": "10:30"
                                  },
                                  "arrive": {
                                    "type": "string",
                                    "example": "12:00"
                                  },
                                  "number": {
                                    "type": "string",
                                    "example": "M101"
                                  },
                                  "class": {
                                    "type": "string",
                                    "example": "ECO/Y/Basic"
                                  },
                                  "rackfare_adult": {
                                    "type": "string",
                                    "example": "187.00"
                                  },
                                  "rackfare_child": {
                                    "type": "string",
                                    "example": "115.50"
                                  },
                                  "rackfare_infant": {
                                    "type": "string",
                                    "example": "0.00"
                                  },
                                  "agtfare_adult": {
                                    "type": "string",
                                    "example": "187.00"
                                  },
                                  "agtfare_child": {
                                    "type": "string",
                                    "example": "115.50"
                                  },
                                  "agtfare_infant": {
                                    "type": "string",
                                    "example": "0.00"
                                  },
                                  "tax": {
                                    "type": "string",
                                    "example": "1.10"
                                  },
                                  "net_fare": {
                                    "type": "string",
                                    "example": "187.00"
                                  },
                                  "rack_fare": {
                                    "type": "string",
                                    "example": "187.00"
                                  },
                                  "totaltax": {
                                    "type": "string",
                                    "example": "1.10"
                                  },
                                  "companywebdiscount": {
                                    "type": "string",
                                    "example": "1.0000"
                                  },
                                  "currency": {
                                    "type": "string",
                                    "example": "USD"
                                  },
                                  "converttousd": {
                                    "type": "integer",
                                    "example": 1,
                                    "default": 0
                                  },
                                  "terms": {
                                    "type": "string",
                                    "example": "%3Cp%3ETerms%20and%20Conditions%3C%2Fp%3E%0A%3Cp%3ERules%20if%20I%20write%20here%20different%20things%3A%3C%2Fp%3E%0A%3Cp%3E1%29%20How%20this%20will%20be%20displayed%3C%2Fp%3E%0A%3Cp%3E2%29%20Correctly%3C%2Fp%3E%0A%3Cp%3E3%29%20Incorrectly%3C%2Fp%3E"
                                  },
                                  "services": {
                                    "type": "object",
                                    "properties": {
                                      "SeatSelection": {
                                        "type": "boolean",
                                        "example": false,
                                        "default": true
                                      },
                                      "HandBaggage": {
                                        "type": "boolean",
                                        "example": true,
                                        "default": true
                                      },
                                      "CheckedInBaggage": {
                                        "type": "boolean",
                                        "example": false,
                                        "default": true
                                      },
                                      "RefundableTicket": {
                                        "type": "boolean",
                                        "example": false,
                                        "default": true
                                      },
                                      "FlexibleAmendment": {
                                        "type": "boolean",
                                        "example": true,
                                        "default": true
                                      },
                                      "PriorityCheckIn": {
                                        "type": "boolean",
                                        "example": false,
                                        "default": true
                                      },
                                      "FlexibleCancellation": {
                                        "type": "boolean",
                                        "example": true,
                                        "default": true
                                      },
                                      "FoodOnBoard": {
                                        "type": "boolean",
                                        "example": false,
                                        "default": true
                                      }
                                    }
                                  }
                                }
                              }
                            }
                          }
                        }
                      }
                    }
                  }
                }
              },
              "application/xml": {
                "examples": {
                  "XML": {
                    "value": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<aerocrs>\n    <success>true</success>\n    <getFlight>\n        <flight>\n            <airline>DevSandbox</airline>\n            <airlineid>288</airlineid>\n            <flightid>10953299</flightid>\n            <fromcode>MAD</fromcode>\n            <tocode>BCN</tocode>\n            <from>Madrid</from>\n            <to>Barcelona</to>\n            <via/>\n            <flightdate>2019/11/01</flightdate>\n            <depart>10:30</depart>\n            <arrive>12:00</arrive>\n            <number>M101</number>\n            <class>ECO/Y/Basic</class>\n            <rackfare_adult>187.00</rackfare_adult>\n            <rackfare_child>115.50</rackfare_child>\n            <rackfare_infant>0.00</rackfare_infant>\n            <agtfare_adult>187.00</agtfare_adult>\n            <agtfare_child>115.50</agtfare_child>\n            <agtfare_infant>0.00</agtfare_infant>\n            <tax>1.10</tax>\n            <net_fare>187.00</net_fare>\n            <rack_fare>187.00</rack_fare>\n            <totaltax>1.10</totaltax>\n            <companywebdiscount>1.0000</companywebdiscount>\n            <currency>USD</currency>\n            <converttousd>1</converttousd>\n            <terms>%3Cp%3ETerms%20and%20Conditions%3C%2Fp%3E%0A%3Cp%3ERules%20if%20I%20write%20here%20different%20things%3A%3C%2Fp%3E%0A%3Cp%3E1%29%20How%20this%20will%20be%20displayed%3C%2Fp%3E%0A%3Cp%3E2%29%20Correctly%3C%2Fp%3E%0A%3Cp%3E3%29%20Incorrectly%3C%2Fp%3E</terms>\n            <services>\n                <SeatSelection/>\n                <HandBaggage>1</HandBaggage>\n                <CheckedInBaggage/>\n                <RefundableTicket/>\n                <FlexibleAmendment>1</FlexibleAmendment>\n                <PriorityCheckIn/>\n                <FlexibleCancellation>1</FlexibleCancellation>\n                <FoodOnBoard/>\n            </services>\n        </flight>\n        <flight>\n            <airline>DevSandbox</airline>\n            <airlineid>288</airlineid>\n            <flightid>9418519</flightid>\n            <fromcode>BCN</fromcode>\n            <tocode>MAD</tocode>\n            <from>Barcelona</from>\n            <to>Madrid</to>\n            <via/>\n            <flightdate>2019/11/02</flightdate>\n            <depart>08:00</depart>\n            <arrive>09:00</arrive>\n            <number>A100</number>\n            <class>ECO/E/Basic</class>\n            <rackfare_adult>13.00</rackfare_adult>\n            <rackfare_child>11.00</rackfare_child>\n            <rackfare_infant>11.00</rackfare_infant>\n            <agtfare_adult>13.00</agtfare_adult>\n            <agtfare_child>11.00</agtfare_child>\n            <agtfare_infant>11.00</agtfare_infant>\n            <tax>0.00</tax>\n            <net_fare>13.00</net_fare>\n            <rack_fare>13.00</rack_fare>\n            <totaltax>0.00</totaltax>\n            <companywebdiscount>1.0000</companywebdiscount>\n            <currency>USD</currency>\n            <converttousd>1</converttousd>\n            <terms>%3Cp%3ETerms%20and%20Conditions%3C%2Fp%3E%0A%3Cp%3ERules%20if%20I%20write%20here%20different%20things%3A%3C%2Fp%3E%0A%3Cp%3E1%29%20How%20this%20will%20be%20displayed%3C%2Fp%3E%0A%3Cp%3E2%29%20Correctly%3C%2Fp%3E%0A%3Cp%3E3%29%20Incorrectly%3C%2Fp%3E</terms>\n            <services>\n                <SeatSelection/>\n                <HandBaggage>1</HandBaggage>\n                <CheckedInBaggage/>\n                <RefundableTicket/>\n                <FlexibleAmendment>1</FlexibleAmendment>\n                <PriorityCheckIn/>\n                <FlexibleCancellation>1</FlexibleCancellation>\n                <FoodOnBoard/>\n            </services>\n        </flight>\n    </getFlight>\n</aerocrs>"
                  }
                }
              }
            }
          }
        },
        "deprecated": false,
        "security": [],
        "x-readme": {
          "code-samples": [
            {
              "language": "xml",
              "code": "  <aerocrs>\n      <parms>\n         <adults>1</adults>\n         <child>0</child>\n         <fareid1>341656</fareid1>\n         <fareid2>281539</fareid2>\n         <flightid1>10953299</flightid1>\n         <flightid2>9418519</flightid2>\n         <fromcode>MAD</fromcode>\n         <infant>0</infant>\n         <tocode>BCN</tocode>\n         <triptype>RT</triptype>\n      </parms>\n   </aerocrs>"
            }
          ],
          "samples-languages": [
            "xml"
          ]
        }
      }
    }
  },
  "x-readme": {
    "headers": [],
    "explorer-enabled": false,
    "proxy-enabled": true
  },
  "x-readme-fauxas": true
}
```