---
updatedAt: 2025-06-02T20:54:17.000Z
agentTools:
  projectIndex: https://docs.aerocrs.com/llms.txt
---

# getFlightLoads

> 📘 Important
>
> Both parameters are mandatory

## Request parameters

| Parameter       | Type     | Description                                                                |
| :-------------- | :------- | :------------------------------------------------------------------------- |
| flightnumber    | String\* | Number of flight                                                           |
| flightdate      | Date\*   | Date of flight                                                             |
| shownonticketed | Boolean  | true/false (lowercase), will show the non ticketed bookings if set to true |

> ❗️ \* Mandatory parameters

## Response

The method will respond with all the information about loads of flights according to the legs of each flight in the requested dates.

| Parameter      | Type    | Description                                                                                                                    |
| :------------- | :------ | :----------------------------------------------------------------------------------------------------------------------------- |
| flightnumber   | String  | Flight number                                                                                                                  |
| actype         | String  | The aircraft type                                                                                                              |
| serviceloadqty | Number  | The service load quantity                                                                                                      |
| rules          | Element | Each rule of a flight will be represented in a `<rule>` element, all rules per flight are represented within `<rules>` element |
| legs           | Element | The following elements are within `<leg>` which represents a leg within `<legs>`                                               |
| leg            | Element | The following parameters are within leg                                                                                        |
| legSTD         | Time    | Departure leg                                                                                                                  |
| legSTA         | Time    | Arrival leg                                                                                                                    |
| from           | String  | Destination “from” code                                                                                                        |
| to             | String  | Destination “to” code                                                                                                          |
| classes        | Element | The following elements are within `<class>` which represents a leg within `<classes>`                                          |
| class          | Element | The following parameters are within leg                                                                                        |
| classcode      | String  | Class Code                                                                                                                     |
| paxqty         | Number  | number of passengers                                                                                                           |
| genderqty      | Element | Element containing the passenger' gender breakdown                                                                             |
| Male           | Number  | Number of male passengers                                                                                                      |
| Female         | Number  | Number of female passengers                                                                                                    |
| Child          | Number  | Number of children                                                                                                             |
| Infant         | Number  | Number of infants                                                                                                              |
| totalpaxqty    | Number  | Total number of passengers on the flight                                                                                       |
| totalgenderqty | Element | Element containing the passenger' gender breakdown, the same as for each leg                                                   |
| cabins         | Element | The following parameters are within cabins                                                                                     |
| name           | String  | Cabin name                                                                                                                     |
| code           | String  | Cabin code                                                                                                                     |
| iatacode       | String  | IATA code                                                                                                                      |
| qty            | Number  | Cabin quantity                                                                                                                 |
| childqty       | Number  | Max children                                                                                                                   |
| infqty         | Number  | Max infants                                                                                                                    |

# 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": {
    "/getFlightLoads": {
      "post": {
        "summary": "getFlightLoads",
        "description": "",
        "operationId": "getflightloads",
        "parameters": [
          {
            "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",
                "required": [
                  "Raw body"
                ],
                "properties": {
                  "Raw body": {
                    "type": "string",
                    "description": "The method accepts XML/JSON"
                  }
                }
              },
              "examples": {
                "JSON": {
                  "value": {
                    "aerocrs": {
                      "parms": {
                        "flightnumber": "M101",
                        "flightdate": "2019/04/30",
                        "shownonticketed": false
                      }
                    }
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "200",
            "content": {
              "application/json": {
                "examples": {
                  "OK - JSON": {
                    "value": "{\n\t\"aerocrs\": {\n\t\t\"success\": true,\n\t\t\"flight\": {\n\t\t\t\"flightnumber\": \"M101\",\n\t\t\t\"actype\": \"SSC\",\n\t\t\t\"serviceloadqty\": 25,\n\t\t\t\"legs\": {\n\t\t\t\t\"leg\": [{\n\t\t\t\t\t\t\"legSTD\": \"2019/04/30 05:00\",\n\t\t\t\t\t\t\"legSTA\": \"2019/04/30 08:00\",\n\t\t\t\t\t\t\"from\": \"AMS\",\n\t\t\t\t\t\t\"to\": \"MAD\",\n\t\t\t\t\t\t\"classes\": {\n\t\t\t\t\t\t\t\"class\": [{\n\t\t\t\t\t\t\t\t\t\"classcode\": \"E\",\n\t\t\t\t\t\t\t\t\t\"paxqty\": 0,\n\t\t\t\t\t\t\t\t\t\"genderqty\": {\n\t\t\t\t\t\t\t\t\t\t\"Male\": 0,\n\t\t\t\t\t\t\t\t\t\t\"Female\": 0,\n\t\t\t\t\t\t\t\t\t\t\"Child\": 0,\n\t\t\t\t\t\t\t\t\t\t\"Infant\": 0\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\"classcode\": \"Y\",\n\t\t\t\t\t\t\t\t\t\"paxqty\": 0,\n\t\t\t\t\t\t\t\t\t\"genderqty\": {\n\t\t\t\t\t\t\t\t\t\t\"Male\": 0,\n\t\t\t\t\t\t\t\t\t\t\"Female\": 0,\n\t\t\t\t\t\t\t\t\t\t\"Child\": 0,\n\t\t\t\t\t\t\t\t\t\t\"Infant\": 0\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t]\n\t\t\t\t\t\t}\n\t\t\t\t\t},\n\t\t\t\t\t{\n\t\t\t\t\t\t\"legSTD\": \"2019/04/30 05:00\",\n\t\t\t\t\t\t\"legSTA\": \"2019/04/30 10:00\",\n\t\t\t\t\t\t\"from\": \"AMS\",\n\t\t\t\t\t\t\"to\": \"BCN\",\n\t\t\t\t\t\t\"classes\": {\n\t\t\t\t\t\t\t\"class\": [{\n\t\t\t\t\t\t\t\t\t\"classcode\": \"Y\",\n\t\t\t\t\t\t\t\t\t\"paxqty\": 3,\n\t\t\t\t\t\t\t\t\t\"genderqty\": {\n\t\t\t\t\t\t\t\t\t\t\"Male\": 0,\n\t\t\t\t\t\t\t\t\t\t\"Female\": 2,\n\t\t\t\t\t\t\t\t\t\t\"Child\": 1,\n\t\t\t\t\t\t\t\t\t\t\"Infant\": 1\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\"classcode\": \"E\",\n\t\t\t\t\t\t\t\t\t\"paxqty\": 0,\n\t\t\t\t\t\t\t\t\t\"genderqty\": {\n\t\t\t\t\t\t\t\t\t\t\"Male\": 0,\n\t\t\t\t\t\t\t\t\t\t\"Female\": 0,\n\t\t\t\t\t\t\t\t\t\t\"Child\": 0,\n\t\t\t\t\t\t\t\t\t\t\"Infant\": 0\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t]\n\t\t\t\t\t\t}\n\t\t\t\t\t},\n\t\t\t\t\t{\n\t\t\t\t\t\t\"legSTD\": \"2019/04/30 08:30\",\n\t\t\t\t\t\t\"legSTA\": \"2019/04/30 10:00\",\n\t\t\t\t\t\t\"from\": \"MAD\",\n\t\t\t\t\t\t\"to\": \"BCN\",\n\t\t\t\t\t\t\"classes\": {\n\t\t\t\t\t\t\t\"class\": [{\n\t\t\t\t\t\t\t\t\t\"classcode\": \"E\",\n\t\t\t\t\t\t\t\t\t\"paxqty\": 2,\n\t\t\t\t\t\t\t\t\t\"genderqty\": {\n\t\t\t\t\t\t\t\t\t\t\"Male\": 1,\n\t\t\t\t\t\t\t\t\t\t\"Female\": 1,\n\t\t\t\t\t\t\t\t\t\t\"Child\": 0,\n\t\t\t\t\t\t\t\t\t\t\"Infant\": 0\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\"classcode\": \"Y\",\n\t\t\t\t\t\t\t\t\t\"paxqty\": 0,\n\t\t\t\t\t\t\t\t\t\"genderqty\": {\n\t\t\t\t\t\t\t\t\t\t\"Male\": 0,\n\t\t\t\t\t\t\t\t\t\t\"Female\": 0,\n\t\t\t\t\t\t\t\t\t\t\"Child\": 0,\n\t\t\t\t\t\t\t\t\t\t\"Infant\": 0\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t]\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t]\n\t\t\t},\n\t\t\t\"totalpaxqty\": 5,\n\t\t\t\"totalgenderqty\": {\n\t\t\t\t\"Male\": 1,\n\t\t\t\t\"Female\": 3,\n\t\t\t\t\"Child\": 1,\n\t\t\t\t\"Infant\": 1\n\t\t\t},\n\t\t\t\"cabins\": [{\n\t\t\t\t\t\"name\": \"Economy\",\n\t\t\t\t\t\"code\": \"ECO\",\n\t\t\t\t\t\"iatacode\": \"Y\",\n\t\t\t\t\t\"qty\": 25,\n\t\t\t\t\t\"childqty\": 10,\n\t\t\t\t\t\"infqty\": 10\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\t\"name\": \"Business\",\n\t\t\t\t\t\"code\": \"BIZ\",\n\t\t\t\t\t\"iatacode\": \"C\",\n\t\t\t\t\t\"qty\": 0,\n\t\t\t\t\t\"childqty\": 0,\n\t\t\t\t\t\"infqty\": 0\n\t\t\t\t}\n\t\t\t]\n\t\t}\n\t}\n}"
                  }
                },
                "schema": {
                  "type": "object",
                  "properties": {
                    "aerocrs": {
                      "type": "object",
                      "properties": {
                        "success": {
                          "type": "boolean",
                          "example": true,
                          "default": true
                        },
                        "flight": {
                          "type": "object",
                          "properties": {
                            "flightnumber": {
                              "type": "string",
                              "example": "M101"
                            },
                            "actype": {
                              "type": "string",
                              "example": "SSC"
                            },
                            "serviceloadqty": {
                              "type": "integer",
                              "example": 25,
                              "default": 0
                            },
                            "legs": {
                              "type": "object",
                              "properties": {
                                "leg": {
                                  "type": "array",
                                  "items": {
                                    "type": "object",
                                    "properties": {
                                      "legSTD": {
                                        "type": "string",
                                        "example": "2019/04/30 05:00"
                                      },
                                      "legSTA": {
                                        "type": "string",
                                        "example": "2019/04/30 08:00"
                                      },
                                      "from": {
                                        "type": "string",
                                        "example": "AMS"
                                      },
                                      "to": {
                                        "type": "string",
                                        "example": "MAD"
                                      },
                                      "classes": {
                                        "type": "object",
                                        "properties": {
                                          "class": {
                                            "type": "array",
                                            "items": {
                                              "type": "object",
                                              "properties": {
                                                "classcode": {
                                                  "type": "string",
                                                  "example": "E"
                                                },
                                                "paxqty": {
                                                  "type": "integer",
                                                  "example": 0,
                                                  "default": 0
                                                },
                                                "genderqty": {
                                                  "type": "object",
                                                  "properties": {
                                                    "Male": {
                                                      "type": "integer",
                                                      "example": 0,
                                                      "default": 0
                                                    },
                                                    "Female": {
                                                      "type": "integer",
                                                      "example": 0,
                                                      "default": 0
                                                    },
                                                    "Child": {
                                                      "type": "integer",
                                                      "example": 0,
                                                      "default": 0
                                                    },
                                                    "Infant": {
                                                      "type": "integer",
                                                      "example": 0,
                                                      "default": 0
                                                    }
                                                  }
                                                }
                                              }
                                            }
                                          }
                                        }
                                      }
                                    }
                                  }
                                }
                              }
                            },
                            "totalpaxqty": {
                              "type": "integer",
                              "example": 5,
                              "default": 0
                            },
                            "totalgenderqty": {
                              "type": "object",
                              "properties": {
                                "Male": {
                                  "type": "integer",
                                  "example": 1,
                                  "default": 0
                                },
                                "Female": {
                                  "type": "integer",
                                  "example": 3,
                                  "default": 0
                                },
                                "Child": {
                                  "type": "integer",
                                  "example": 1,
                                  "default": 0
                                },
                                "Infant": {
                                  "type": "integer",
                                  "example": 1,
                                  "default": 0
                                }
                              }
                            },
                            "cabins": {
                              "type": "array",
                              "items": {
                                "type": "object",
                                "properties": {
                                  "name": {
                                    "type": "string",
                                    "example": "Economy"
                                  },
                                  "code": {
                                    "type": "string",
                                    "example": "ECO"
                                  },
                                  "iatacode": {
                                    "type": "string",
                                    "example": "Y"
                                  },
                                  "qty": {
                                    "type": "integer",
                                    "example": 25,
                                    "default": 0
                                  },
                                  "childqty": {
                                    "type": "integer",
                                    "example": 10,
                                    "default": 0
                                  },
                                  "infqty": {
                                    "type": "integer",
                                    "example": 10,
                                    "default": 0
                                  }
                                }
                              }
                            }
                          }
                        }
                      }
                    }
                  }
                }
              },
              "application/xml": {
                "examples": {
                  "200 XML": {
                    "value": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<aerocrs>\n    <success>true</success>\n    <flight>\n        <flightnumber>M101</flightnumber>\n        <actype>320</actype>\n        <serviceloadqty>25</serviceloadqty>\n        <legs>\n            <leg>\n                <legSTD>2019/04/30 05:00</legSTD>\n                <legSTA>2019/04/30 08:00</legSTA>\n                <from>AMS</from>\n                <to>MAD</to>\n                <classes>\n                    <class>\n                        <classcode>E</classcode>\n                        <paxqty>0</paxqty>\n                        <genderqty>\n                            <Male>0</Male>\n                            <Female>0</Female>\n                            <Child>0</Child>\n                            <Infant>0</Infant>\n                        </genderqty>\n                    </class>\n                    <class>\n                        <classcode>Y</classcode>\n                        <paxqty>0</paxqty>\n                        <genderqty>\n                            <Male>0</Male>\n                            <Female>0</Female>\n                            <Child>0</Child>\n                            <Infant>0</Infant>\n                        </genderqty>\n                    </class>\n                </classes>\n            </leg>\n            <leg>\n                <legSTD>2019/04/30 05:00</legSTD>\n                <legSTA>2019/04/30 10:00</legSTA>\n                <from>AMS</from>\n                <to>BCN</to>\n                <classes>\n                    <class>\n                        <classcode>Y</classcode>\n                        <paxqty>0</paxqty>\n                        <genderqty>\n                            <Male>0</Male>\n                            <Female>0</Female>\n                            <Child>0</Child>\n                            <Infant>0</Infant>\n                        </genderqty>\n                    </class>\n                    <class>\n                        <classcode>E</classcode>\n                        <paxqty>0</paxqty>\n                        <genderqty>\n                            <Male>0</Male>\n                            <Female>0</Female>\n                            <Child>0</Child>\n                            <Infant>0</Infant>\n                        </genderqty>\n                    </class>\n                </classes>\n            </leg>\n            <leg>\n                <legSTD>2019/04/30 08:30</legSTD>\n                <legSTA>2019/04/30 10:00</legSTA>\n                <from>MAD</from>\n                <to>BCN</to>\n                <classes>\n                    <class>\n                        <classcode>E</classcode>\n                        <paxqty>2</paxqty>\n                        <genderqty>\n                            <Male>2</Male>\n                            <Female>0</Female>\n                            <Child>0</Child>\n                            <Infant>0</Infant>\n                        </genderqty>\n                    </class>\n                    <class>\n                        <classcode>Y</classcode>\n                        <paxqty>0</paxqty>\n                        <genderqty>\n                            <Male>0</Male>\n                            <Female>0</Female>\n                            <Child>0</Child>\n                            <Infant>0</Infant>\n                        </genderqty>\n                    </class>\n                </classes>\n            </leg>\n        </legs>\n        <totalpaxqty>2</totalpaxqty>\n        <totalgenderqty>\n            <Male>2</Male>\n            <Female>0</Female>\n            <Child>0</Child>\n            <Infant>0</Infant>\n        </totalgenderqty>\n        <cabins>\n            <name>Economy</name>\n            <code>ECO</code>\n            <iatacode>Y</iatacode>\n            <qty>25</qty>\n            <childqty>10</childqty>\n            <infqty>10</infqty>\n        </cabins>\n        <cabins>\n            <name>Business</name>\n            <code>BIZ</code>\n            <iatacode>C</iatacode>\n            <qty>0</qty>\n            <childqty>0</childqty>\n            <infqty>0</infqty>\n        </cabins>\n    </flight>\n</aerocrs>"
                  }
                }
              }
            }
          }
        },
        "deprecated": false,
        "x-readme": {
          "code-samples": [
            {
              "language": "xml",
              "code": "<aerocrs>\n\t<parms>\n\t\t<flightnumber>M101</flightnumber>\n\t\t<flightdate>2019/04/30</flightdate>\n\t</parms>\n</aerocrs>"
            }
          ],
          "samples-languages": [
            "xml"
          ]
        }
      }
    }
  },
  "x-readme": {
    "headers": [],
    "explorer-enabled": false,
    "proxy-enabled": true
  },
  "x-readme-fauxas": true
}
```