# Search API

### Get airport list API <a href="#get-airport-list-api" id="get-airport-list-api"></a>

GET: /metasrv/api/\_search/airports

Search for airports by relevant keywords or country/region codes Allows to sort the returned results

#### Parameter <a href="#parameter" id="parameter"></a>

| Parameter                  | Description                                                                                                                   |
| -------------------------- | ----------------------------------------------------------------------------------------------------------------------------- |
| query (String, Optional)   | Search keyword area / airport name (eg: SGN, Vietnam, Tokyo)                                                                  |
| country (String, Optional) | Country/Region Code (Example: VN)                                                                                             |
| page (Integer, Optional)   | Number of pages you want to get results (eg: 0)                                                                               |
| size (Integer, Optional)   | Number of results you want to get in 1 page (eg 20)                                                                           |
| sort (String, Optional)    | Sort the results by the value of the returned property ascending or descending (eg: propertiesName,desc / propertiesName,asc) |

**Example**

?query=`ha`\&country=`VN`\&page=`0`\&size=`20`\&sort=`name,desc`

#### Response <a href="#response" id="response"></a>

**Model**

| Parameter                      | Description                       |
| ------------------------------ | --------------------------------- |
| Array\[AirportDTO] (Optional)  | Return airport list information   |
| id (Long, Optional)            | Airport List Identifier           |
| code (String, Optional)        | Airport code                      |
| name (String, Optional)        | Airport name                      |
| cityCode (String, Optional)    | City symbol code                  |
| city (String, Optional)        | City name                         |
| countryCode (String, Optional) | Country symbol code               |
| country (String, Optional)     | Country name                      |
| timeZone (Integer, Optional)   | Time zone                         |
| location (String, Optional)    | Location name                     |
| name2 (String, Optional)       | English airport name (other name) |
| city2 (String, Optional)       | English city name (other name)    |

**Example**

```json
[
    {
        "id": 4,
        "code": "SGN",
        "name": "Sân bay Tân Sơn Nhất",
        "cityCode": "SGN",
        "city": "Hồ Chí Minh",
        "countryCode": "VN",
        "country": "Vietnam",
        "iata": "SGN",
        "groupName": "Popular,INT_VN,Vietnam",
        "name2": "Tansonnhat Intl",
        "city2": "Ho Chi Minh City",
        "location": "Tp. Hồ Chí Minh",
        "timezone": 7,
        "index": 2,
        "icao": null,
        "latitude": null,
        "longitude": null,
        "altitude": null,
        "dts": null,
        "tzTimezone": null,
        "updatedAt": null,
        "connectedPorts": null,
        "stateCode": null,
        "status": null,
        "keywords": null
    }
]
```

### Search flight ticket API <a href="#search-flight-ticket-api" id="search-flight-ticket-api"></a>

GET: /api/air-tickets/low-fare-search-async

Search for flights by departure and end points / by date and time

#### Parameter <a href="#parameter_1" id="parameter_1"></a>

| Parameter                             | Description                                                                                                                                                                                 |
| ------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| origin\_code (String, Required)       | <p>Departure airport code<br>Example: The airport in Ho Chi Minh has the code SGN</p>                                                                                                       |
| destination\_code (String, Required)  | <p>Destination airport code<br>Example, the airport in Hanoi has the code HAN .</p>                                                                                                         |
| departure\_date (String, Required)    | <p>Departure day<br>Format in MM-dd-YYYY<br>Example: 07-07-2021</p>                                                                                                                         |
| returnure\_date (String, Required)    | <p>Return day<br>Format in MM-dd-YYYY<br>Example: 08-20-2021</p>                                                                                                                            |
| cabin\_class (String, Required)       | <p>Ticket class<br>Pass the value as E</p>                                                                                                                                                  |
| route\_type (String, Optional)        | <p>Journey type:<br>- Oneway: One-way<br>- ROUNDTRIP: Round trip<br>If not transmitted, the value is ONEWAY .</p>                                                                           |
| aduts\_qtt (Integer, Optional)        | <p>Number of adult passengers (12 years old and above)<br>Otherwise, the default value is 1 .</p>                                                                                           |
| children\_qtt (Integer, Optional)     | <p>Number of passengers who are children (from 2 years old and under 12 years old)<br>Otherwise, the default value is 0</p>                                                                 |
| infants\_qtt (Integer, Optional)      | <p>Number of passengers who are infants (under 2 years old)<br>Otherwise, the default value is 0</p>                                                                                        |
| time (String, Optional)               | <p>API Call Time (UnixTimeStamp)<br>Example: 1625545845</p>                                                                                                                                 |
| key (String, Optional)                | Key to checksum. How to create value:MAC-SHA256(, ‘Gotadi’)                                                                                                                                 |
| skip\_filter (Boolean, Optional)      | By default, when `false`, the response will include `groupPricedItineraries`, which contains the list of itineraries returned from the search results. Otherwise, it will not be displayed. |
| include-equivfare (Boolean, Optional) | Request to pay additional ticketing fee information (EquivFare)                                                                                                                             |
| page (Integer, Optional)              | Number of pages you want to get results (eg: 0)                                                                                                                                             |
| size (Integer, Optional)              | Number of results you want to get in 1 page (eg 20)                                                                                                                                         |
| sort (String, Optional)               | Sort the results by the value of the returned property ascending or descending (eg: propertiesName,desc / propertiesName,asc)                                                               |

**Example**

```
?origin_code=SGN&destination_code=HAN&departure_date=07-21-2021&returnture_date=07-28-2021&cabin_class=E&route_type=ROUNDTRIP&aduts_qtt=1&children_qtt=0&infants_qtt=0&time=1625552814666&key=/xNr15RmY0dqSUkhvpKI1bIbKIuyZr1Q38rLi3bqxVk=&page=0&size=15
```

#### Response <a href="#response_1" id="response_1"></a>

**Model**

| Parameter                                                            | Description                                                                                                                                      |
| -------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------ |
| searchId(String, Required)                                           | The reference code to the search for air tickets, taken from the search results for air tickets                                                  |
| departureSearchId(String, Required)                                  | <p>Reference code to search for flight tickets<br>Retrieved from searchId</p>                                                                    |
| returnSearchId(String, Required)                                     | <p>Reference code to search for air tickets<br>Derived from searchID combined with -R at the end</p>                                             |
| groupPricedItineraries (Array\[GroupPricedItineraryDTO], Optional)   | Information about the list of journeys returned by search results                                                                                |
| airSupplier(String, Required)                                        | Carriers (VietnamAirline - VNA, VjetJet - VJ, BamBoo - QH, …)                                                                                    |
| aircraft (String, Optional)                                          | Type of aircraft (Airbus A330, Boeing 787, .....)                                                                                                |
| airline(String, Optional)                                            | Airlines (VJ, VNA, …)                                                                                                                            |
| airlineName(String, Optional)                                        | Name of airline (Vietjet Air, Vietnam Airlines, Bamboo, …)                                                                                       |
| arrivalDateTime(String, Required)                                    | Arrival date and time, using UTC/GMT+7 time zone                                                                                                 |
| departureDateTime (String, Required)                                 | Split flight time, using UTC/GMT+7 time zone                                                                                                     |
| destinationLocationCode (String, Optional)                           | Flight end city code                                                                                                                             |
| destinationCountry(String, Optional)                                 | The name of the country where the flight ended                                                                                                   |
| destinationCountryCode (String, Optional)                            | Flight end country code                                                                                                                          |
| destinationCity(String, Optional)                                    | The name of the city where the flight ends                                                                                                       |
| destinationLocationName (String, Optional)                           | Airport name where the flight ends                                                                                                               |
| flightNo(String, Optional)                                           | Airplane number                                                                                                                                  |
| flightNo(String, Optional)                                           | Airplane number                                                                                                                                  |
| flightType(String, Optional)                                         | <p>Type of flight domestic or international<br>DOMESTIC: domestic<br>INTERNATIONAL: international</p>                                            |
| groupId(String, Required)                                            | Journey identifier in the list of journeys returned by search results                                                                            |
| originCity(String, Optional)                                         | City name at departure point                                                                                                                     |
| originCountry(String, Optional)                                      | Country name at departure point                                                                                                                  |
| originCountryCode(String, Optional)                                  | Country code at departure point                                                                                                                  |
| originLocationCode(String, Optional)                                 | Flight departure city code                                                                                                                       |
| originLocationName(String, Optional)                                 | Airport name at departure point                                                                                                                  |
| totalPricedItinerary (Integer, Required)                             | Total number of detailed journeys                                                                                                                |
| pricedItineraries (Array\[PricedItineraries], Required)              | Itinerary details                                                                                                                                |
| airItineraryPricingInfo (AirItineraryPricingInfo, Required)          | Detailed price information of the itinerary                                                                                                      |
| adultFare (FareBreakdown, Required)                                  |                                                                                                                                                  |
| passengerFare (PassengerFare, Required)                              | Adult fare information                                                                                                                           |
| baseFare(FareInfo, required)                                         | Basic fare information                                                                                                                           |
| amount (Double, Required)                                            | Amount of money                                                                                                                                  |
| decimalPlaces(Integer, Optional)                                     | Decimal places rounded to                                                                                                                        |
| equivFare (FareInfo, Optional)                                       | <p>Similar to baseFare<br>Ticketing fee information</p>                                                                                          |
| serviceTax (FareInfo, Required)                                      | <p>Similar to baseFare<br>Service fee information</p>                                                                                            |
| totalFare (FareInfo, Required)                                       | <p>Similar to baseFare<br>Total ticket price information</p>                                                                                     |
| surcharges (Array\[Surcharge], Required)                             | Information about surcharges per booking / per segment                                                                                           |
| passengerTypeQuantities (PassengerTypeQuantities, Optional)          | Number/type of passengers                                                                                                                        |
| code(String, Required)                                               | <p>Adult/Child/Infant Identifier<br>Includes: ADT - adult / CHD - child / INF - infant</p>                                                       |
| quantity (Integer, Required)                                         | Number of adults / children / infants                                                                                                            |
| childFare(PassengerFare, Optional)                                   | <p>Child fare information<br>Similar to adult fare information</p>                                                                               |
| infantFare (PassengerFare, Optional)                                 | <p>Infant fare information<br>Similar to adult fare information</p>                                                                              |
| itinTotalFare (PassengerFare, Required)                              | <p>Total fare information of the journey<br>Similar to adult fare information</p>                                                                |
| fareSourceCode(String, Required)                                     | <p>Journey identifier information<br>Used to get ticket condition information</p>                                                                |
| allowHold (Boolean, Required)                                        | Information to allow to hold a reservation or not                                                                                                |
| cabinClassName(String, Required)                                     | <p>Seat class information:<br>ECONOMY - universal seat<br>PREMIUM - special economy seat<br>BUSINESS - business chair</p>                        |
| fightNo(String, Optional)                                            | Displays aircraft number information                                                                                                             |
| originDestinationOptions (Array(OriginDestinationOptions), Required) | Cruise’s blocking/stopping information                                                                                                           |
| flightDirection(String, Required)                                    | <p>Show flight direction information of the journey<br>D - departure direction<br>R - return direction</p>                                       |
| journeyDuration (Integer, Required)                                  | Show flight time                                                                                                                                 |
| flightSegments (Array(FlightSegments), Required)                     | Show detailed information of departure / end points in the journey                                                                               |
| page (AirPage, Required)                                             | <p>Object that describes information about pagination.<br>Sequence number of each page returned, element of each page, total number of pages</p> |
| duration(Integer, Optional),                                         |                                                                                                                                                  |
| errors (Array\[Error], Optional)                                     |                                                                                                                                                  |
| infos(Array\[Info], Optional)                                        |                                                                                                                                                  |
| success(Boolean, Optional)                                           |                                                                                                                                                  |
| textMessage(String, Optional)                                        |                                                                                                                                                  |

**Example**

```json
{
    "returnSearchId": "ATD::210706::519f4508-b6df-4d96-8d43-538c96a0d90b-R",
    "departureSearchId": "ATD::210706::519f4508-b6df-4d96-8d43-538c96a0d90b",
    "duration": 46854,
    "errors": null,
    "groupPricedItineraries": [
        {
        "airSupplier": "VJ",
        "aircraft": "Airbus A330",
        "vnaArea": null,
        "airline": "VJ",
        "airlineName": "VietJet Air",
        "arrivalDateTime": "2021-07-21T21:45:00.000Z",
        "departureDateTime": "2021-07-21T19:35:00.000Z",
        "destinationCity": "Hà Nội",
        "destinationCountry": "Vietnam",
        "destinationCountryCode": "VN",
        "destinationLocationCode": "HAN",
        "destinationLocationName": "Sân bay Nội Bài",
        "fightNo": "156",
        "flightType": "DOMESTIC",
        "groupId": "599a7a20-32b8-4e6b-b167-27feb4f324f5",
        "originCity": "Hồ Chí Minh",
        "originCountry": "Vietnam",
        "originCountryCode": "VN",
        "originLocationCode": "SGN",
        "originLocationName": "Sân bay Tân Sơn Nhất",
        "pricedItineraries": [
            {
            "airItineraryPricingInfo": {
                "adultFare": {
                "fareBasisCodes": null,
                "passengerFare": {
                    "baseFare": {
                    "amount": 399000,
                    "currencyCode": null,
                    "decimalPlaces": 2
                    },
                    "comboMarkup": null,
                    "equivFare": null,
                    "serviceTax": {
                    "amount": 258900,
                    "currencyCode": null,
                    "decimalPlaces": 2
                    },
                    "surcharges": [
                    {
                        "amount": 0,
                        "indicator": "Ticket fee per segment",
                        "type": "Ticket fee per segment"
                    }
                    ],
                    "taxes": null,
                    "totalFare": {
                    "amount": 657900,
                    "currencyCode": null,
                    "decimalPlaces": 2
                    },
                    "totalPaxFee": null
                },
                "passengerTypeQuantities": {
                    "code": "ADT",
                    "quantity": 1
                }
                },
                "childFare": null,
                "divideInPartyIndicator": false,
                "fareInfoReferences": null,
                "fareSourceCode": "dom5226c7ae-e46c-48de-ae99-a7d4e3bf0782",
                "fareType": "PUBLIC",
                "infantFare": null,
                "itinTotalFare": {
                "baseFare": {
                    "amount": 399000,
                    "currencyCode": null,
                    "decimalPlaces": 2
                },
                "comboMarkup": null,
                "equivFare": null,
                "serviceTax": {
                    "amount": 258900,
                    "currencyCode": null,
                    "decimalPlaces": 2
                },
                "totalFare": {
                    "amount": 657900,
                    "currencyCode": null,
                    "decimalPlaces": 2
                },
                "totalPaxFee": null,
                "totalTax": {
                    "amount": 0,
                    "currencyCode": null,
                    "decimalPlaces": 2
                }
                }
            },
            "allowHold": true,
            "baggageItems": [
                {
                "amount": 0,
                "code": "air-tickets.baggage-items.vietnam.vj.economy.baggage.adult.free",
                "direction": null,
                "fareCode": null,
                "id": "air-tickets.baggage-items.vietnam.vj.economy.baggage.adult.free",
                "name": "7kg xách tay",
                "serviceType": "BAGGAGE"
                }
            ],
            "cabinClassName": "ECONOMY",
            "directionInd": "DEPARTURE",
            "fightNo": "156",
            "mealItems": null,
            "onlyPayLater": false,
            "originDestinationOptions": [
                {
                "cabinClassName": "ECONOMY",
                "destinationCity": "Hà Nội",
                "destinationDateTime": "2021-07-21T21:45:00.000Z",
                "destinationLocationCode": "HAN",
                "destinationLocationName": "Sân bay Nội Bài",
                "flightDirection": "D",
                "flightSegments": [
                    {
                    "adultBaggage": null,
                    "aircraft": "Airbus A330",
                    "arrivalAirportLocationCode": "HAN",
                    "arrivalAirportLocationName": "Sân bay Nội Bài",
                    "arrivalCity": "Hà Nội",
                    "arrivalDateTime": "2021-07-21T21:45:00.000Z",
                    "cabinClassCode": "Z1_ECO",
                    "cabinClassName": "ECONOMY",
                    "cabinClassText": "Economy",
                    "childBaggage": null,
                    "departureAirportLocationCode": "SGN",
                    "departureAirportLocationName": "Sân bay Tân Sơn Nhất",
                    "departureCity": "Hồ Chí Minh",
                    "departureDateTime": "2021-07-21T19:35:00.000Z",
                    "eticket": true,
                    "fareBasicCode": null,
                    "fareCode": null,
                    "flightDirection": "D",
                    "flightNumber": "156",
                    "infantBaggage": null,
                    "journeyDuration": 130,
                    "marketingAirlineCode": "VJ",
                    "marriageGroup": null,
                    "mealCode": null,
                    "operatingAirline": {
                        "code": "VJ",
                        "equipment": null,
                        "flightNumber": "156",
                        "name": "VietJet Air"
                    },
                    "resBookDesignCode": "Z1_ECO",
                    "seatsRemaining": null,
                    "stopQuantity": 0,
                    "stopQuantityInfo": null,
                    "supplierFareKey": null,
                    "supplierJourneyKey": "qPHglSL8tSGƒ3tYhxs32unUB07y8mK5BDYQX2BnPQJuYvXBionML¥MStNiƒK98yyAOIpSQgCYƒdoFP¥a2VnwgUPQJAmkk89BX1s9VLDde6FRhlAFf34qJAHS3DNEEwbaCBRcmqPevNTjFuizmUVPBSKBj6HlNSuyrpPZEREJgN8ThsfKqQnB6zAkEhnwV0rNNPzwWYQqRMFAZYiXy5p0roZGgAxbnU6itFQzVmWzpƒƒd1GUseZ6vDwLWRqbO2lnJcw7qbRbSƒ9Lw0btZKtBHz2zAUgpGG97MNdAf1xN2g2cFSƒxTc7lrjWfIJsC53YbqXvqMhzgmUSDj¥B5dxg4bloOeLI5¥YWAlkIGawk57IcgpyzGprHK5Pn3Bv2CR4sMsg7ey0Z5eGFvalCScS72idlrgHBzOYnbwZ21mkGjsXVus¥ƒoEJSpWVB3meJug14SIGSd88mzGXtT4ƒQg1Tam4wvySRzi9gO4QGGXpcbBF4ƒs="
                    }
                ],
                "journeyDuration": 130,
                "originCity": "Hồ Chí Minh",
                "originDateTime": "2021-07-21T19:35:00.000Z",
                "originLocationCode": "SGN",
                "originLocationName": "Sân bay Tân Sơn Nhất"
                }
            ],
            "passportMandatory": true,
            "refundable": false,
            "sequenceNumber": "ibe3541984955292126",
            "ticketType": "ETICKET",
            "validReturnCabinClasses": null,
            "validatingAirlineCode": "VJ",
            "validatingAirlineName": "VietJet Air"
            }
        ],
        "requiredFields": null,
        "returnDateTime": null,
        "roundType": "ROUNDTRIP",
        "totalPricedItinerary": 3
        }
    ],
    "infos": null,
    "page": {
        "nextPageNumber": 1,
        "offset": 15,
        "pageNumber": 0,
        "previousPageNumber": -1,
        "totalElements": 57,
        "totalPage": 4
    },
    "searchId": "ATD::210706::519f4508-b6df-4d96-8d43-538c96a0d90b",
    "success": true,
    "textMessage": null
}
```

***

### Get filter list information API <a href="#get-filter-list-information-api" id="get-filter-list-information-api"></a>

POST: /api/air-tickets/filter-options

Get a list of values that can be applied on the filter on the search results

#### Request Body <a href="#request-body" id="request-body"></a>

| Parameter                                       | Description                                                                                                        |
| ----------------------------------------------- | ------------------------------------------------------------------------------------------------------------------ |
| searchId (String, Required)                     | <p>Data used to refer to search results<br>This data is taken from the return results of airline ticket search</p> |
| departureItinerary (AirItineraryInfo, Optional) | Outbound ticket information in case of getting filter-options for return ticket                                    |
| airlineCode (String, Required)                  | <p>VN: Vietnam Airlines<br>VJ: VietJet<br>QH: Bamboo<br>BL: Pacific Airlines…</p>                                  |
| groupId (String, Required)                      | Journey identifier in the list of journeys returned by search results                                              |
| fareSourceCode (String, Required)               | Journey identifier information                                                                                     |
| supplierCode (String, Required)                 | The company code is also provided                                                                                  |
| searchId (String, Required)                     | Data used to refer to search results                                                                               |

**Example**

```json
{
    "searchId": "ATD::210707::01a59301-d1f7-4302-954a-7047ee06e001-R",
    "departureItinerary": {
        "groupId": "01e650b9-2771-48cb-80fa-3004d0bd9eef",
        "airlineCode": "VN",
        "fareSourceCode": "dom5fb76509-3ac6-4c7b-baaa-b1ea844e3d7e",
        "supplierCode": "VN",
        "searchId": "ATD::210707::01a59301-d1f7-4302-954a-7047ee06e001"
    }
}
```

#### Response <a href="#response_2" id="response_2"></a>

| Parameter                                    | Description                                                                                     |
| -------------------------------------------- | ----------------------------------------------------------------------------------------------- |
| searchId(String, Required)                   | The reference code to the search for air tickets, taken from the search results for air tickets |
| itineraryFilter (ItineraryFilter, Required)  | Information representing applicable values on search filter results                             |
| airlineOptions (Array\[String], Optional)    | Information showing airlines with the lowest fares                                              |
| cabinClassOptions (Array\[String], Optional) | Information showing current seat class                                                          |
| stopOptions (Array\[String], Optional)       | Information showing current stop                                                                |
| filterToPrice (Double, Optional)             | Information showing the current highest ticket price                                            |
| filterFromPrice (Double, Optional)           | Information showing the current lowest fares                                                    |
| duration (Integer, Optional),                |                                                                                                 |
| errors (Array\[Error], Optional),            |                                                                                                 |
| infos (Array\[Info], Optional),              |                                                                                                 |
| success (Boolean, Optional),                 |                                                                                                 |
| textMessage (String, Optional)               |                                                                                                 |

**Example**

```json
{
    "isSuccess" : true,
    "duration" : 1131,
    "textMessage" : null,
    "errors" : null,
    "infos" : null,
    "searchId" : "ATD::210707::01a59301-d1f7-4302-954a-7047ee06e001-R",
    "itineraryFilter" : {
        "airlineOptions" : [ "VJ:VietJet Air:657900.0", "QH:Bamboo Airways:1461000.0", "BL:Pacific Airlines:2054000.0", "VN:Vietnam Airlines:2164000.0" ],
        "arrivalDateTimeOptions" : null,
        "arrivalDateTimeReturnOptions" : null,
        "cabinClassOptions" : [ "ECONOMY", "PREMIUM", "BUSINESS" ],
        "departureDateTimeOptions" : null,
        "departureDateTimeReturnOptions" : null,
        "flightType" : null,
        "groupId" : null,
        "loadMore" : null,
        "minPrice" : null,
        "filterToPrice" : 5202000.0,
        "filterFromPrice" : 657900.0,
        "priceItineraryId" : null,
        "step" : null,
        "stopOptions" : [ "1" ],
        "ticketPolicyOptions" : null
    },
    "success" : true
}
```

### Filter/sort flight search results API <a href="#filtersort-flight-search-results-api" id="filtersort-flight-search-results-api"></a>

POST: /api/air-tickets/filter-availability

Filter and sort flight search results

#### Paramaters <a href="#paramaters" id="paramaters"></a>

| Parameter                             | Description                                                                                                                   |
| ------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- |
| include-equivfare (Boolean, Optional) | Request to pay more ticketing fee information                                                                                 |
| page (Integer, Optional)              | Number of pages you want to get results (eg: 0)                                                                               |
| size (Integer, Optional)              | Number of results you want to get in 1 page (eg: 20)                                                                          |
| sort(String, Optional)                | Sort the results by the value of the returned property ascending or descending (eg: propertiesName,desc / propertiesName,asc) |

**Example**

?include-equivfare=`false`\&page=`0`\&size=`20`\&sort=`departureDate,asc`

#### Request Body <a href="#request-body_1" id="request-body_1"></a>

| Parameter                                               | Description                                                                                                                                                                      |
| ------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| searchId(String, Required)                              | <p>Data used to refer to search results<br>This data is taken from the return results of airline ticket search</p>                                                               |
| departureItinerary (AirItineraryInfo, Optional)         | Outbound ticket information in case of getting filter-availability for return ticket                                                                                             |
| airlineCode (String, Required)                          | <p>VN: Vietnam Airlines<br>VJ: VietJet<br>QH: Bamboo<br>BL: Pacific Airlines…</p>                                                                                                |
| groupId(String, Optional)                               | Journey identifier in the list of journeys returned by search results                                                                                                            |
| fareSourceCode(String, Required)                        | Journey identifier information                                                                                                                                                   |
| supplierCode(String, Required)                          | The company code is also provided                                                                                                                                                |
| searchId(String, Required)                              | Data used to refer to search results                                                                                                                                             |
| filter (ItineraryFilter, Required)                      | Used to input the desired filtering and sorting criteria                                                                                                                         |
| cabinClassOptions(Array\[String], Optional)             | Information about the seat class you want to filter and sort                                                                                                                     |
| step(String, Required)                                  | <p>Information used to distinguish between departure and return<br>1: Departure direction<br>2: Return direction</p>                                                             |
| flightType(String, Required)                            | <p>Flight type information<br>DOMESTIC: domestic<br>INTERNATIONAL: international</p>                                                                                             |
| stopOption(Array\[String], Optional)                    | Stop Information                                                                                                                                                                 |
| airlineOptions(Array\[String], Optional)                | Airline information                                                                                                                                                              |
| departureDateTimeOptions (Array\[String], Optional)     | <p>Information about departure time starts at around or at what time<br>Ex: departureDateTimeOptions: \[“+18”, “+12-18”]<br>+18: from 18h to 24h<br>+12-18: from 12pm to 6pm</p> |
| arrivalDateTimeReturnOptions (Array\[String], Optional) | <p>The end time information starts at what time or interval<br>Ex: arrivalDateTimeReturnOptions: \[“+18”, “+12-18”]<br>+18: from 18h to 24h<br>+12-18: from 12pm to 6pm</p>      |

**Example**

```json
    {
        "searchId": "ATD::210707::01a59301-d1f7-4302-954a-7047ee06e001",
        "filter": {
            "cabinClassOptions": [],
            "ticketPolicyOptions": [],
            "airlineOptions": [],
            "stopOptions": [],
            "step": "1",
            "flightType": "DOMESTIC",
            "departureDateTimeOptions": [],
            "arrivalDateTimeReturnOptions": [],
            "arrivalDateTimeOptions": [],
            "priceItineraryId": "",
            "loadMore": false,
            "departureDateTimeReturnOptions": []
        },
        "departureItinerary": null
    }
```

#### Response <a href="#response_3" id="response_3"></a>

#### Model <a href="#model" id="model"></a>

| Parameter                                                            | Description                                                                                                                                      |
| -------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------ |
| searchId(String, Required)                                           | The reference code to the search for air tickets, taken from the search results for air tickets                                                  |
| groupPricedItineraries (Array\[GroupPricedItineraryDTO], Optional)   | Information about the list of journeys returned by search results                                                                                |
| airSupplier(String, Required)                                        | Carriers (VietnamAirline - VNA, VjetJet - VJ, BamBoo - QH, …)                                                                                    |
| aircraft (String, Optional)                                          | Type of aircraft (Airbus A330, Boeing 787, .....)                                                                                                |
| airline (String, Optional)                                           | Airlines (VJ, VNA, …)                                                                                                                            |
| airlineName (String, Optional)                                       | Name of airline (Vietjet Air, Vietnam Airlines, Bamboo, …)                                                                                       |
| arrivalDateTime (String, Required)                                   | Arrival date and time, using UTC/GMT+7 time zone                                                                                                 |
| departureDateTime (String, Required)                                 | Split flight time, using UTC/GMT+7 time zone                                                                                                     |
| destinationLocationCode (String, Optional)                           | Flight end city code                                                                                                                             |
| destinationCountry (String, Optional)                                | The name of the country where the flight ended                                                                                                   |
| destinationCountryCode (String, Optional)                            | Flight end country code                                                                                                                          |
| destinationCity (String, Optional)                                   | The name of the city where the flight ends                                                                                                       |
| destinationLocationName (String, Optional)                           | Airport name where the flight ends                                                                                                               |
| flightNo (String, Optional)                                          | Airplane number                                                                                                                                  |
| flightNo (String, Optional)                                          | Airplane number                                                                                                                                  |
| flightType (String, Optional)                                        | <p>Type of flight domestic or international? Flight type:<br>DOMESTIC: domestic<br>INTERNATIONAL: international</p>                              |
| groupId(String, Required)                                            | Journey identifier in the list of journeys returned by search results                                                                            |
| originCity(String, Optional)                                         | City name at departure point                                                                                                                     |
| originCountry(String, Optional)                                      | Country name at departure point                                                                                                                  |
| originCountryCode(String, Optional)                                  | Country code at departure point                                                                                                                  |
| originLocationCode(String, Optional)                                 | Flight departure city code                                                                                                                       |
| originLocationName(String, Optional)                                 | Airport name at departure point                                                                                                                  |
| totalPricedItinerary (Integer, Required)                             | Total number of detailed journeys                                                                                                                |
| pricedItineraries (Array\[PricedItineraries], Required)              | Itinerary details                                                                                                                                |
| airItineraryPricingInfo (AirItineraryPricingInfo, Required)          | Detailed price information of the itinerary                                                                                                      |
| adultFare (FareBreakdown, Required)                                  |                                                                                                                                                  |
| passengerFare (PassengerFare, Required)                              | Adult fare information                                                                                                                           |
| baseFare(FareInfo, required)                                         | Basic fare information                                                                                                                           |
| amount (Double, Required)                                            | Amount of money                                                                                                                                  |
| decimalPlaces(Integer, Optional)                                     | Decimal places rounded to                                                                                                                        |
| equivFare (FareInfo, Optional)                                       | <p>Similar to baseFare<br>Ticketing fee information</p>                                                                                          |
| serviceTax (FareInfo, Required)                                      | <p>Similar to baseFare<br>Service fee information</p>                                                                                            |
| totalFare (FareInfo, Required)                                       | <p>Similar to baseFare<br>Total ticket price information</p>                                                                                     |
| surcharges (Array\[Surcharge], Required)                             | Information about surcharges per booking / per segment                                                                                           |
| passengerTypeQuantities (PassengerTypeQuantities, Optional)          | Number/type of passengers                                                                                                                        |
| code(String, Required)                                               | <p>Adult/Child/Infant Identifier<br>Includes: ADT - adult / CHD - child / INF - infant</p>                                                       |
| quantity (Integer, Required)                                         | Number of adults / children / infants                                                                                                            |
| childFare(PassengerFare, Optional)                                   | <p>Child fare information<br>Similar to adult fare information</p>                                                                               |
| infantFare (PassengerFare, Optional)                                 | <p>Infant fare information<br>Similar to adult fare information</p>                                                                              |
| itinTotalFare (PassengerFare, Required)                              | <p>Total fare information of the journey<br>Similar to adult fare information</p>                                                                |
| fareSourceCode(String, Required)                                     | <p>Journey identifier information<br>Used to get ticket condition information</p>                                                                |
| allowHold (Boolean, Required)                                        | Information to allow to hold a reservation or not                                                                                                |
| cabinClassName(String, Required)                                     | <p>Seat class information:<br>ECONOMY - universal seat<br>PREMIUM - special economy seat<br>BUSINESS - business chair</p>                        |
| fightNo(String, Optional)                                            | Displays aircraft number information                                                                                                             |
| originDestinationOptions (Array(OriginDestinationOptions), Required) | Cruise’s blocking/stopping information                                                                                                           |
| flightDirection(String, Required)                                    | <p>Show flight direction information of the journey<br>D - departure direction<br>R - return direction</p>                                       |
| journeyDuration (Integer, Required)                                  | Show flight time                                                                                                                                 |
| flightSegments (Array(FlightSegments), Required)                     | Show detailed information of departure / end points in the journey                                                                               |
| page (AirPage, Required)                                             | <p>Object that describes information about pagination.<br>Sequence number of each page returned, element of each page, total number of pages</p> |
| duration(Integer, Optional),                                         |                                                                                                                                                  |
| errors (Array\[Error], Optional)                                     |                                                                                                                                                  |
| infos(Array\[Info], Optional)                                        |                                                                                                                                                  |
| success(Boolean, Optional)                                           |                                                                                                                                                  |
| textMessage(String, Optional)                                        |                                                                                                                                                  |

**Example**

```
{
    "searchId": "ATD::210707::1f5e34da-24d5-46bf-993e-8cda8d716d15",
    "duration": 1034,
    "errors": null,
    "groupPricedItineraries": [
        {
        "airSupplier": "VN",
        "aircraft": "Airbus A321",
        "vnaArea": "NorthTrip",
        "airline": "VN",
        "airlineName": "Vietnam Airlines",
        "arrivalDateTime": "2021-07-23T07:15:00.000Z",
        "departureDateTime": "2021-07-23T05:00:00.000Z",
        "destinationCity": "Hồ Chí Minh",
        "destinationCountry": "Vietnam",
        "destinationCountryCode": "VN",
        "destinationLocationCode": "SGN",
        "destinationLocationName": "Sân bay Tân Sơn Nhất",
        "fightNo": "205",
        "flightType": "DOMESTIC",
        "groupId": "8527f1e5-5291-42cf-8b76-c6874889b6c6",
        "originCity": "Hà Nội",
        "originCountry": "Vietnam",
        "originCountryCode": "VN",
        "originLocationCode": "HAN",
        "originLocationName": "Sân bay Nội Bài",
        "pricedItineraries": [
            {
            "airItineraryPricingInfo": {
                "adultFare": {
                "fareBasisCodes": null,
                "passengerFare": {
                    "baseFare": {
                    "amount": 2739000,
                    "currencyCode": null,
                    "decimalPlaces": 2
                    },
                    "comboMarkup": null,
                    "equivFare": null,
                    "serviceTax": {
                    "amount": 844000,
                    "currencyCode": null,
                    "decimalPlaces": 2
                    },
                    "surcharges": [
                    {
                        "amount": 0,
                        "indicator": "Ticket fee per segment",
                        "type": "Ticket fee per segment"
                    }
                    ],
                    "taxes": null,
                    "totalFare": {
                    "amount": 3583000,
                    "currencyCode": null,
                    "decimalPlaces": 2
                    },
                    "totalPaxFee": null
                },
                "passengerTypeQuantities": {
                    "code": "ADT",
                    "quantity": 1
                }
                },
                "childFare": null,
                "divideInPartyIndicator": false,
                "fareInfoReferences": null,
                "fareSourceCode": "dom2ac8e775-85a1-4a3a-a945-7c2e8eee905e",
                "fareType": "PUBLIC",
                "infantFare": null,
                "itinTotalFare": {
                "baseFare": {
                    "amount": 2739000,
                    "currencyCode": null,
                    "decimalPlaces": 2
                },
                "comboMarkup": null,
                "equivFare": null,
                "serviceTax": {
                    "amount": 844000,
                    "currencyCode": null,
                    "decimalPlaces": 2
                },
                "totalFare": {
                    "amount": 3583000,
                    "currencyCode": null,
                    "decimalPlaces": 2
                },
                "totalPaxFee": null,
                "totalTax": {
                    "amount": 0,
                    "currencyCode": null,
                    "decimalPlaces": 2
                }
                }
            },
            "allowHold": true,
            "baggageItems": [
                {
                "amount": 0,
                "code": "air-tickets.baggage-items.vn.adult-child.12kg-1x23kg.free",
                "direction": null,
                "fareCode": null,
                "id": "air-tickets.baggage-items.vn.adult-child.12kg-1x23kg.free",
                "name": "Xách tay 12kg + Ký gửi 1x23kg",
                "serviceType": "BAGGAGE"
                }
            ],
            "cabinClassName": "ECONOMY",
            "directionInd": "DEPARTURE",
            "fightNo": "205",
            "mealItems": null,
            "onlyPayLater": false,
            "originDestinationOptions": [
                {
                "cabinClassName": "ECONOMY",
                "destinationCity": "Hồ Chí Minh",
                "destinationDateTime": "2021-07-23T07:15:00.000Z",
                "destinationLocationCode": "SGN",
                "destinationLocationName": "Sân bay Tân Sơn Nhất",
                "flightDirection": "D",
                "flightSegments": [
                    {
                    "adultBaggage": null,
                    "aircraft": "Airbus A321",
                    "arrivalAirportLocationCode": "SGN",
                    "arrivalAirportLocationName": "Sân bay Tân Sơn Nhất",
                    "arrivalCity": "Hồ Chí Minh",
                    "arrivalDateTime": "2021-07-23T07:15:00.000Z",
                    "cabinClassCode": "M",
                    "cabinClassName": "ECONOMY",
                    "cabinClassText": "Economy Flex",
                    "childBaggage": null,
                    "departureAirportLocationCode": "HAN",
                    "departureAirportLocationName": "Sân bay Nội Bài",
                    "departureCity": "Hà Nội",
                    "departureDateTime": "2021-07-23T05:00:00.000Z",
                    "eticket": true,
                    "fareBasicCode": null,
                    "fareCode": null,
                    "flightDirection": "D",
                    "flightNumber": "205",
                    "infantBaggage": null,
                    "journeyDuration": 135,
                    "marketingAirlineCode": "VN",
                    "marriageGroup": null,
                    "mealCode": null,
                    "operatingAirline": {
                        "code": "VN",
                        "equipment": null,
                        "flightNumber": "205",
                        "name": "Vietnam Airlines"
                    },
                    "resBookDesignCode": "M",
                    "seatsRemaining": null,
                    "stopQuantity": 0,
                    "stopQuantityInfo": null,
                    "supplierFareKey": null,
                    "supplierJourneyKey": "b+T7Lz8Bk6JHev8ZaYn6JdksP71z9ZD2metfP5B9ooYsM9jko+XIuxjgA14ghnjgUaj450N5VDUtJjP9AGhuOW+4XTufOS5VZDXm0TvXcwMXZzjJrTD4yzKE2HcSkpV2GU4fA4JI8HBo2DdLJAOlMuSGTpcN0/ylBtnM8MWr9faFvtwUUNLcIEma87mvAT2djGS7D2B65bkfIudjgUgMzxbClvY862C1Fkqt6J1iU8QvNRJygV+tIM581jkWISXEqEBWynub65QcCSh37U/HZ7vCCNWM0CbjqbnEJDbIFDJMWEPs/reBsAdLJ1oQVj/XMMOfVyWYykSzqBjrSxEbjlC2kfUf/qcH2a+VjzSftFZ4xgxv9BVcyjEvt6nfFl9eNxB0u2sH6O6Jr+V4yhqo8MHUvHs61leE3ihqaZr2WOW0tagXPQjFe/IRySSO/gsZvNE8SnbYsjkmvY0YDSdfgzGbkxJQVHTcIztxg1JG5c0MlwrGdbVINsLXyL9s5TOANlBpNtr9ArzEcr2/M7lZy4PjAlRZqPhyAl6dK4cR1gZaz/P+LivHga86vjAGHUcMqbZsicH4D44YFGqjeYKbhTmudhnn5KWfWJcR+ES9bumTSt+dw5VYbIybf83v3nGVuiAe30K2Jmuc58pHcTlxSbUMaevMbegAHSVUreKGVI9Rzh69kmTuVo3uFsEeAgMKIGPXSuHX0T6SY0wFXhEPk9xpFbMEs3fHicGr5KwZGGQHXZyCzD2BcWJhFCfWvTBwzL517DWLdUl7I4ac9b9DrGu1hUkt0Tr1999yumGvley4csmh5p/BiJJryCF7/igdMlBV8oXwHiWF8zfscyHfodL4xYL+jWseqE00zGfgKUvRY8kMyOtxfR0yEWP3sJjQ9AXfMjpTdCCIpulJfwAkY9pgvipjnwN4P2URX7Vfk+dvm0lAOo8QtEqupcQNeUaNv/H0jO1OHwpdUFRzUzALfJycZXI0aq0gBPNrz+4VWUF4EXXss1DJRVLBO4Z1SLNW+yxrB3uK3g9QDbkKfcsmvdGd/5LA9NuSSqXqzD5O92kn0TtDH5Ne4IuN2B8/6UqJWz5VNUVeT+ph1k24Uv9/iotAuUYfvsqosCb2BvokHpa4rIvDLTLAsmC5f1WeMsY8Ydnwf2e0cmZLXPVwQcKDE3zP8PnI91Fd+oL5Zx7+sdGa4QFs8dtV9y2hgYarchiugXf5tcIzDdDOm7FnBj8/Y64D7ZuSZCu16w7VvBEjHcuJwIf/Z/OhKKTv50JKU8a5RNcD3/7CCCrIvtxOK8F57arqMPJHtOXkD7dtns4NpRaghfCGX6OphkRNdJxzzx2KQzo39Lj4xEaWqwYD/3FRJiRap+5WGLonTpOIlN5ryMLLyL59lXSa7ZvfuAipLvm5TrmBlVt7FHvVj/BZ/PmpLUSTNg25tw+hJVpXCGOn+4EI7AH0Ph0SuVGKv8dnEM0P/mFWnSjpKNUb6mmm3ippgIjQwonVKbnhO3eDF9F7Ll0="
                    }
                ],
                "journeyDuration": 135,
                "originCity": "Hà Nội",
                "originDateTime": "2021-07-23T05:00:00.000Z",
                "originLocationCode": "HAN",
                "originLocationName": "Sân bay Nội Bài"
                }
            ],
            "passportMandatory": true,
            "refundable": false,
            "sequenceNumber": "ibe3638861560249232",
            "ticketType": "ETICKET",
            "validReturnCabinClasses": null,
            "validatingAirlineCode": "VN",
            "validatingAirlineName": "Vietnam Airlines"
            }
        ],
        "requiredFields": null,
        "returnDateTime": null,
        "roundType": "ROUNDTRIP",
        "totalPricedItinerary": 1
        }
    ],
    "infos": null,
    "page": {
        "nextPageNumber": 1,
        "offset": 15,
        "pageNumber": 0,
        "previousPageNumber": -1,
        "totalElements": 67,
        "totalPage": 5
    },
    "success": true,
    "textMessage": null
}
```

***

### Get the list of tickets open for sale on a flight API <a href="#get-the-list-of-tickets-open-for-sale-on-a-flight-api" id="get-the-list-of-tickets-open-for-sale-on-a-flight-api"></a>

POST: /api/air-tickets/group-itinerary/{id}

Get a list of tickets available for sale on a specific flight

#### Paramaters <a href="#paramaters_1" id="paramaters_1"></a>

| Parameter                             | Description                                                                                                                   |
| ------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- |
| id path (String, Required)            | Used to refer to the list of tickets available for sale on a flight                                                           |
| include-equivfare (Boolean, Optional) | Request to pay more ticketing fee information                                                                                 |
| page (Integer, Optional)              | Number of pages you want to get results (eg: 0)                                                                               |
| size (Integer, Optional)              | Number of results you want to get in 1 page (eg 20)                                                                           |
| sort (String, Optional)               | Sort the results by the value of the returned property ascending or descending (eg: propertiesName,desc / propertiesName,asc) |

**Example**

```
052a9f35-12eb-430b-baa0-7ea85a98e8b3?include-equivfare=false&page=0&size=20&sort=departureDate,asc
```

#### Request Body <a href="#request-body_2" id="request-body_2"></a>

#### Parameter <a href="#parameter_2" id="parameter_2"></a>

| Parameter                                               | Description                                                                                                                                                                      |
| ------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| searchId(String, Required)                              | <p>Data used to refer to search results<br>This data is taken from the return results of airline ticket search</p>                                                               |
| departureItinerary (AirItineraryInfo, Optional)         | Outbound ticket information in case of getting filter-availability for return ticket                                                                                             |
| airlineCode(String, Required)                           | <p>VN: Vietnam Airlines<br>VJ: VietJet<br>QH: Bamboo<br>BL: Pacific Airlines…</p>                                                                                                |
| groupId(String, Optional)                               | Journey identifier in the list of journeys returned by search results                                                                                                            |
| fareSourceCode(String, Required)                        | Journey identifier information                                                                                                                                                   |
| supplierCode(String, Required)                          | The company code is also provided                                                                                                                                                |
| searchId(String, Required)                              | Data used to refer to search results                                                                                                                                             |
| filter (ItineraryFilter, Required)                      | Used to input the desired filtering and sorting criteria                                                                                                                         |
| cabinClassOptions(Array\[String], Optional)             | Information about the seat class you want to filter and sort                                                                                                                     |
| step(String, Required)                                  | <p>Information used to distinguish between departure and return<br>1: Departure direction<br>2: Return direction</p>                                                             |
| flightType(String, Required)                            | <p>Flight type information<br>DOMESTIC: domestic<br>INTERNATIONAL: international</p>                                                                                             |
| stopOption(Array\[String], Optional)                    | Stop Information                                                                                                                                                                 |
| airlineOptions(Array\[String], Optional)                | Airline information                                                                                                                                                              |
| departureDateTimeOptions (Array\[String], Optional)     | <p>Information about departure time starts at around or at what time<br>Ex: departureDateTimeOptions: \[“+18”, “+12-18”]<br>+18: from 18h to 24h<br>+12-18: from 12pm to 6pm</p> |
| arrivalDateTimeReturnOptions (Array\[String], Optional) | <p>The end time information starts at what time or interval<br>Ex: arrivalDateTimeReturnOptions: \[“+18”, “+12-18”]<br>+18: from 18h to 24h<br>+12-18: from 12pm to 6pm</p>      |
| groupId(String, Required)                               | Itinerary identifier in the itinerary list retrieved from the search results                                                                                                     |

**Example**

```json
    {
        "searchId": "ATD::210707::66c84a6f-fa81-4526-a2d9-2f7b7975214b",
        "departureItinerary": null,
        "filter": {
            "stopOptions": [],
            "airlineOptions": [],
            "cabinClassOptions": [],
            "ticketPolicyOptions": [],
            "departureDateTimeOptions": [],
            "arrivalDateTimeOptions": [],
            "departureDateTimeReturnOptions": [],
            "arrivalDateTimeReturnOptions": [],
            "flightType": "DOMESTIC",
            "groupId": "052a9f35-12eb-430b-baa0-7ea85a98e8b3",
            "loadMore": true,
            "step": "1"
        }
    }
```

#### Response <a href="#response_4" id="response_4"></a>

| Parameter                                                            | Description                                                                                                                                      |
| -------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------ |
| searchId(String, Required)                                           | The reference code to the search for air tickets, taken from the search results for air tickets                                                  |
| groupPricedItineraries (Array\[GroupPricedItineraryDTO], Optional)   | Information about the list of journeys returned by search results                                                                                |
| airSupplier(String, Required)                                        | Carriers (VietnamAirline - VNA, VjetJet - VJ, BamBoo - QH, …)                                                                                    |
| aircraft (String, Optional)                                          | Type of aircraft (Airbus A330, Boeing 787, .....)                                                                                                |
| airline(String, Optional)                                            | Airlines (VJ, VNA, …)                                                                                                                            |
| airlineName(String, Optional)                                        | Name of airline (Vietjet Air, Vietnam Airlines, Bamboo, …)                                                                                       |
| arrivalDateTime(String, Required)                                    | Arrival date and time, using UTC/GMT+7 time zone                                                                                                 |
| departureDateTime (String, Required)                                 | Split flight time, using UTC/GMT+7 time zone                                                                                                     |
| destinationLocationCode (String, Optional)                           | Flight end city code                                                                                                                             |
| destinationCountry(String, Optional)                                 | The name of the country where the flight ended                                                                                                   |
| destinationCountryCode (String, Optional)                            | Flight end country code                                                                                                                          |
| destinationCity(String, Optional)                                    | The name of the city where the flight ends                                                                                                       |
| destinationLocationName (String, Optional)                           | Airport name where the flight ends                                                                                                               |
| flightNo(String, Optional)                                           | Airplane number                                                                                                                                  |
| flightNo(String, Optional)                                           | Airplane number                                                                                                                                  |
| flightType(String, Optional)                                         | <p>Type of flight domestic or international? Flight type:<br>DOMESTIC: domestic<br>INTERNATIONAL: international</p>                              |
| groupId(String, Required)                                            | Journey identifier in the list of journeys returned by search results                                                                            |
| originCity(String, Optional)                                         | City name at departure point                                                                                                                     |
| originCountry(String, Optional)                                      | Country name at departure point                                                                                                                  |
| originCountryCode(String, Optional)                                  | Country code at departure point                                                                                                                  |
| originLocationCode(String, Optional)                                 | Flight departure city code                                                                                                                       |
| originLocationName(String, Optional)                                 | Airport name at departure point                                                                                                                  |
| totalPricedItinerary (Integer, Required)                             | Total number of detailed journeys                                                                                                                |
| pricedItineraries (Array\[PricedItineraries], Required)              | Itinerary details                                                                                                                                |
| airItineraryPricingInfo (AirItineraryPricingInfo, Required)          | Detailed price information of the itinerary                                                                                                      |
| adultFare (FareBreakdown, Required)                                  |                                                                                                                                                  |
| passengerFare (PassengerFare, Required)                              | Adult fare information                                                                                                                           |
| baseFare(FareInfo, required)                                         | Basic fare information                                                                                                                           |
| amount (Double, Required)                                            | Amount of money                                                                                                                                  |
| decimalPlaces(Integer, Optional)                                     | Decimal places rounded to                                                                                                                        |
| equivFare (FareInfo, Optional)                                       | <p>Similar to baseFare<br>Ticketing fee information</p>                                                                                          |
| serviceTax (FareInfo, Required)                                      | <p>Similar to baseFare<br>Service fee information</p>                                                                                            |
| totalFare (FareInfo, Required)                                       | <p>Similar to baseFare<br>Total ticket price information</p>                                                                                     |
| surcharges (Array\[Surcharge], Required)                             | Information about surcharges per booking / per segment                                                                                           |
| passengerTypeQuantities (PassengerTypeQuantities, Optional)          | Number/type of passengers                                                                                                                        |
| code(String, Required)                                               | <p>Adult/Child/Infant Identifier<br>Includes: ADT - adult / CHD - child / INF - infant</p>                                                       |
| quantity (Integer, Required)                                         | Number of adults / children / infants                                                                                                            |
| childFare(PassengerFare, Optional)                                   | <p>Child fare information<br>Similar to adult fare information</p>                                                                               |
| infantFare (PassengerFare, Optional)                                 | <p>Infant fare information<br>Similar to adult fare information</p>                                                                              |
| itinTotalFare (PassengerFare, Required)                              | <p>Total fare information of the journey<br>Similar to adult fare information</p>                                                                |
| fareSourceCode(String, Required)                                     | <p>Journey identifier information<br>Used to get ticket condition information</p>                                                                |
| allowHold (Boolean, Required)                                        | Information to allow to hold a reservation or not                                                                                                |
| cabinClassName(String, Required)                                     | <p>Seat class information:<br>ECONOMY - universal seat<br>PREMIUM - special economy seat<br>BUSINESS - business chair</p>                        |
| fightNo(String, Optional)                                            | Displays aircraft number information                                                                                                             |
| originDestinationOptions (Array(OriginDestinationOptions), Required) | Cruise’s blocking/stopping information                                                                                                           |
| flightDirection(String, Required)                                    | <p>Show flight direction information of the journey<br>D - departure direction<br>R - return direction</p>                                       |
| journeyDuration (Integer, Required)                                  | Show flight time                                                                                                                                 |
| flightSegments (Array(FlightSegments), Required)                     | Show detailed information of departure / end points in the journey                                                                               |
| page (AirPage, Required)                                             | <p>Object that describes information about pagination.<br>Sequence number of each page returned, element of each page, total number of pages</p> |
| duration(Integer, Optional),                                         |                                                                                                                                                  |
| errors (Array\[Error], Optional)                                     |                                                                                                                                                  |
| infos(Array\[Info], Optional)                                        |                                                                                                                                                  |
| success(Boolean, Optional)                                           |                                                                                                                                                  |
| textMessage(String, Optional)                                        |                                                                                                                                                  |

**Example**

```json
{
    "duration" : 1025,
    "errors" : null,
    "groupPricedItinerary" : {
        "airSupplier" : "VJ",
        "aircraft" : "Airbus A321",
        "vnaArea" : null,
        "airline" : "VJ",
        "airlineName" : "VietJet Air",
        "arrivalDateTime" : "2021-07-23T07:20:00.000Z",
        "departureDateTime" : "2021-07-23T05:10:00.000Z",
        "destinationCity" : "Hồ Chí Minh",
        "destinationCountry" : "Vietnam",
        "destinationCountryCode" : "VN",
        "destinationLocationCode" : "SGN",
        "destinationLocationName" : "Sân bay Tân Sơn Nhất",
        "fightNo" : "135",
        "flightType" : "DOMESTIC",
        "groupId" : "052a9f35-12eb-430b-baa0-7ea85a98e8b3",
        "originCity" : "Hà Nội",
        "originCountry" : "Vietnam",
        "originCountryCode" : "VN",
        "originLocationCode" : "HAN",
        "originLocationName" : "Sân bay Nội Bài",
        "pricedItineraries" : [ {
        "airItineraryPricingInfo" : {
            "adultFare" : {
            "fareBasisCodes" : null,
            "passengerFare" : {
                "baseFare" : {
                "amount" : 1319000.0,
                "currencyCode" : null,
                "decimalPlaces" : 2
                },
                "comboMarkup" : null,
                "equivFare" : null,
                "serviceTax" : {
                "amount" : 350900.0,
                "currencyCode" : null,
                "decimalPlaces" : 2
                },
                "surcharges" : [ {
                "amount" : 0.0,
                "indicator" : "Ticket fee per segment",
                "type" : "Ticket fee per segment"
                } ],
                "taxes" : null,
                "totalFare" : {
                "amount" : 1669900.0,
                "currencyCode" : null,
                "decimalPlaces" : 2
                },
                "totalPaxFee" : null
            },
            "passengerTypeQuantities" : {
                "code" : "ADT",
                "quantity" : 1
            }
            },
            "childFare" : null,
            "divideInPartyIndicator" : false,
            "fareInfoReferences" : null,
            "fareSourceCode" : "dom95053f40-3fd0-4f62-a96c-d4afa489c283",
            "fareType" : "PUBLIC",
            "infantFare" : null,
            "itinTotalFare" : {
            "baseFare" : {
                "amount" : 1319000.0,
                "currencyCode" : null,
                "decimalPlaces" : 2
            },
            "comboMarkup" : null,
            "equivFare" : null,
            "serviceTax" : {
                "amount" : 350900.0,
                "currencyCode" : null,
                "decimalPlaces" : 2
            },
            "totalFare" : {
                "amount" : 1669900.0,
                "currencyCode" : null,
                "decimalPlaces" : 2
            },
            "totalPaxFee" : null,
            "totalTax" : {
                "amount" : 0.0,
                "currencyCode" : null,
                "decimalPlaces" : 2
            }
            }
        },
        "allowHold" : true,
        "baggageItems" : [ {
            "amount" : 0.0,
            "code" : "air-tickets.baggage-items.vietnam.vj.economy.baggage.adult.free",
            "direction" : null,
            "fareCode" : null,
            "id" : "air-tickets.baggage-items.vietnam.vj.economy.baggage.adult.free",
            "name" : "7kg xách tay",
            "serviceType" : "BAGGAGE"
        } ],
        "cabinClassName" : "ECONOMY",
        "directionInd" : "DEPARTURE",
        "fightNo" : "135",
        "mealItems" : null,
        "onlyPayLater" : false,
        "originDestinationOptions" : [ {
            "cabinClassName" : "ECONOMY",
            "destinationCity" : "Hồ Chí Minh",
            "destinationDateTime" : "2021-07-23T07:20:00.000Z",
            "destinationLocationCode" : "SGN",
            "destinationLocationName" : "Sân bay Tân Sơn Nhất",
            "flightDirection" : "D",
            "flightSegments" : [ {
            "adultBaggage" : null,
            "aircraft" : "Airbus A321",
            "arrivalAirportLocationCode" : "SGN",
            "arrivalAirportLocationName" : "Sân bay Tân Sơn Nhất",
            "arrivalCity" : "Hồ Chí Minh",
            "arrivalDateTime" : "2021-07-23T07:20:00.000Z",
            "cabinClassCode" : "L1_ECO",
            "cabinClassName" : "ECONOMY",
            "cabinClassText" : "Economy",
            "childBaggage" : null,
            "departureAirportLocationCode" : "HAN",
            "departureAirportLocationName" : "Sân bay Nội Bài",
            "departureCity" : "Hà Nội",
            "departureDateTime" : "2021-07-23T05:10:00.000Z",
            "eticket" : true,
            "fareBasicCode" : null,
            "fareCode" : null,
            "flightDirection" : "D",
            "flightNumber" : "135",
            "infantBaggage" : null,
            "journeyDuration" : 130,
            "marketingAirlineCode" : "VJ",
            "marriageGroup" : null,
            "mealCode" : null,
            "operatingAirline" : {
                "code" : "VJ",
                "equipment" : null,
                "flightNumber" : "135",
                "name" : "VietJet Air"
            },
            "resBookDesignCode" : "L1_ECO",
            "seatsRemaining" : null,
            "stopQuantity" : 0,
            "stopQuantityInfo" : null,
            "supplierFareKey" : null,
            "supplierJourneyKey" : "FE1G3mI6J96guNcAzJB8yTeBzLZRAYEOnwn9YGOFJJztƒS7kLTBSBi25njFnV5B0HNFbXtvvIQiUDfNE¥Pqx3WSriPxr9IlTddLHufsqIM0oNnapPeNa1YAcBL4BUZyzjPyb¥0vzaCP¥5Bk9LpFxJTyFThaƒJiL7Tkƒhz4a¥FVSƒXfpqmsCaQWijrGgcOExEM7¥YXajB5L1W9SjqIYUUSewƒSb7BuyBX9sYii0QbSnQ8BdSvR4f2sq3pzUPx3AdCb2hZzEbIfpSEF8q5JAvRjuANKRqQhVei1eyTI72ZPbI0lKƒvrLemkP6OyE88rTƒuvxxHDe¥6K9dKwVV4GtkXj3J3lQOMsH2HKNOmpwG5TR4L1RiOI75PJ4YkC62AHux5vvTƒ¥R8vac6V9lKlMeMFra27Bv3qYhfwSWCgGNOcFsrs2yO1W¥WWXNMvWA2jNKUJl1H65iX18UHyzANy9Vrcthtjjr6PXKZHhQPnLP¥flZA="
            } ],
            "journeyDuration" : 130,
            "originCity" : "Hà Nội",
            "originDateTime" : "2021-07-23T05:10:00.000Z",
            "originLocationCode" : "HAN",
            "originLocationName" : "Sân bay Nội Bài"
        } ],
        "passportMandatory" : true,
        "refundable" : false,
        "sequenceNumber" : "ibe3640395997485504",
        "ticketType" : "ETICKET",
        "validReturnCabinClasses" : null,
        "validatingAirlineCode" : "VJ",
        "validatingAirlineName" : "VietJet Air"
        }, {
        "airItineraryPricingInfo" : {
            "adultFare" : {
            "fareBasisCodes" : null,
            "passengerFare" : {
                "baseFare" : {
                "amount" : 1499000.0,
                "currencyCode" : null,
                "decimalPlaces" : 2
                },
                "comboMarkup" : null,
                "equivFare" : null,
                "serviceTax" : {
                "amount" : 368900.0,
                "currencyCode" : null,
                "decimalPlaces" : 2
                },
                "surcharges" : [ {
                "amount" : 0.0,
                "indicator" : "Ticket fee per segment",
                "type" : "Ticket fee per segment"
                } ],
                "taxes" : null,
                "totalFare" : {
                "amount" : 1867900.0,
                "currencyCode" : null,
                "decimalPlaces" : 2
                },
                "totalPaxFee" : null
            },
            "passengerTypeQuantities" : {
                "code" : "ADT",
                "quantity" : 1
            }
            },
            "childFare" : null,
            "divideInPartyIndicator" : false,
            "fareInfoReferences" : null,
            "fareSourceCode" : "domb8304899-04b8-4ff4-9262-9ad713608507",
            "fareType" : "PUBLIC",
            "infantFare" : null,
            "itinTotalFare" : {
            "baseFare" : {
                "amount" : 1499000.0,
                "currencyCode" : null,
                "decimalPlaces" : 2
            },
            "comboMarkup" : null,
            "equivFare" : null,
            "serviceTax" : {
                "amount" : 368900.0,
                "currencyCode" : null,
                "decimalPlaces" : 2
            },
            "totalFare" : {
                "amount" : 1867900.0,
                "currencyCode" : null,
                "decimalPlaces" : 2
            },
            "totalPaxFee" : null,
            "totalTax" : {
                "amount" : 0.0,
                "currencyCode" : null,
                "decimalPlaces" : 2
            }
            }
        },
        "allowHold" : true,
        "baggageItems" : [ {
            "amount" : 0.0,
            "code" : "air-tickets.baggage-items.vietnam.vj.premium.baggage.adult.free",
            "direction" : null,
            "fareCode" : null,
            "id" : "air-tickets.baggage-items.vietnam.vj.premium.baggage.adult.free",
            "name" : "7kg xách tay + 20kg ký gửi",
            "serviceType" : "BAGGAGE"
        } ],
        "cabinClassName" : "PREMIUM",
        "directionInd" : "DEPARTURE",
        "fightNo" : "135",
        "mealItems" : null,
        "onlyPayLater" : false,
        "originDestinationOptions" : [ {
            "cabinClassName" : "PREMIUM",
            "destinationCity" : "Hồ Chí Minh",
            "destinationDateTime" : "2021-07-23T07:20:00.000Z",
            "destinationLocationCode" : "SGN",
            "destinationLocationName" : "Sân bay Tân Sơn Nhất",
            "flightDirection" : "D",
            "flightSegments" : [ {
            "adultBaggage" : null,
            "aircraft" : "Airbus A321",
            "arrivalAirportLocationCode" : "SGN",
            "arrivalAirportLocationName" : "Sân bay Tân Sơn Nhất",
            "arrivalCity" : "Hồ Chí Minh",
            "arrivalDateTime" : "2021-07-23T07:20:00.000Z",
            "cabinClassCode" : "B1_DLX",
            "cabinClassName" : "PREMIUM",
            "cabinClassText" : "Premium",
            "childBaggage" : null,
            "departureAirportLocationCode" : "HAN",
            "departureAirportLocationName" : "Sân bay Nội Bài",
            "departureCity" : "Hà Nội",
            "departureDateTime" : "2021-07-23T05:10:00.000Z",
            "eticket" : true,
            "fareBasicCode" : null,
            "fareCode" : null,
            "flightDirection" : "D",
            "flightNumber" : "135",
            "infantBaggage" : null,
            "journeyDuration" : 130,
            "marketingAirlineCode" : "VJ",
            "marriageGroup" : null,
            "mealCode" : null,
            "operatingAirline" : {
                "code" : "VJ",
                "equipment" : null,
                "flightNumber" : "135",
                "name" : "VietJet Air"
            },
            "resBookDesignCode" : "B1_DLX",
            "seatsRemaining" : null,
            "stopQuantity" : 0,
            "stopQuantityInfo" : null,
            "supplierFareKey" : null,
            "supplierJourneyKey" : "FE1G3mI6J96guNcAzJB8ySG7yJpj7V0vJxur9hB00jyNcwƒ20DdiB6fj9ƒvf9GgUPS3rI8a¥ƒYn83OMqVXPoZwCp649T3OB0aQ7ItYXABxYRfM6ZiDbfC62m¥¥yAZf5jf7NBG6IJSBVQnsJZWUMvrv6CtZ9j1N5OQ5sUtFN37WkEjJEfSORxmB2ZQdKamFtKHi¥dgP¥7EYIHXmy1f6hdavIhehIqx9Kl¥0gPaxg2ycItGrM0ZkRcUFypKbAlYoUw8DaNiLc3Q3XcNkHy0LJlg4QzLcoWk6uwDkBMr3KUnCxyBR1beBxMhopJovzMvnRZWaWuTMfz¥7dhh32SnQ9OzYwz0uZ¥FreZDsZLp1kzrXPZDcmzsxpvfVaclBhMlJPxz¥ByUpAMUKCQyhfbDINrCiqXDKG5aFEXYs5AFl2SyTl12¥ghZJ8nfkZve9QoEA0EEfsSomUdKcaNƒrCH1H1Esj8jVUthM3fCppoSJPGjOjI="
            } ],
            "journeyDuration" : 130,
            "originCity" : "Hà Nội",
            "originDateTime" : "2021-07-23T05:10:00.000Z",
            "originLocationCode" : "HAN",
            "originLocationName" : "Sân bay Nội Bài"
        } ],
        "passportMandatory" : true,
        "refundable" : false,
        "sequenceNumber" : "ibe3640395997554532",
        "ticketType" : "ETICKET",
        "validReturnCabinClasses" : null,
        "validatingAirlineCode" : "VJ",
        "validatingAirlineName" : "VietJet Air"
        }, {
        "airItineraryPricingInfo" : {
            "adultFare" : {
            "fareBasisCodes" : null,
            "passengerFare" : {
                "baseFare" : {
                "amount" : 3200000.0,
                "currencyCode" : null,
                "decimalPlaces" : 2
                },
                "comboMarkup" : null,
                "equivFare" : null,
                "serviceTax" : {
                "amount" : 539000.0,
                "currencyCode" : null,
                "decimalPlaces" : 2
                },
                "surcharges" : [ {
                "amount" : 0.0,
                "indicator" : "Ticket fee per segment",
                "type" : "Ticket fee per segment"
                } ],
                "taxes" : null,
                "totalFare" : {
                "amount" : 3739000.0,
                "currencyCode" : null,
                "decimalPlaces" : 2
                },
                "totalPaxFee" : null
            },
            "passengerTypeQuantities" : {
                "code" : "ADT",
                "quantity" : 1
            }
            },
            "childFare" : null,
            "divideInPartyIndicator" : false,
            "fareInfoReferences" : null,
            "fareSourceCode" : "dom1c7a82fb-83f9-4fe0-9451-bb023179deaa",
            "fareType" : "PUBLIC",
            "infantFare" : null,
            "itinTotalFare" : {
            "baseFare" : {
                "amount" : 3200000.0,
                "currencyCode" : null,
                "decimalPlaces" : 2
            },
            "comboMarkup" : null,
            "equivFare" : null,
            "serviceTax" : {
                "amount" : 539000.0,
                "currencyCode" : null,
                "decimalPlaces" : 2
            },
            "totalFare" : {
                "amount" : 3739000.0,
                "currencyCode" : null,
                "decimalPlaces" : 2
            },
            "totalPaxFee" : null,
            "totalTax" : {
                "amount" : 0.0,
                "currencyCode" : null,
                "decimalPlaces" : 2
            }
            }
        },
        "allowHold" : true,
        "baggageItems" : [ {
            "amount" : 0.0,
            "code" : "air-tickets.baggage-items.vietnam.vj.business.baggage.adult.free",
            "direction" : null,
            "fareCode" : null,
            "id" : "air-tickets.baggage-items.vietnam.vj.business.baggage.adult.free",
            "name" : "10kg xách tay + 30kg ký gửi",
            "serviceType" : "BAGGAGE"
        } ],
        "cabinClassName" : "BUSINESS",
        "directionInd" : "DEPARTURE",
        "fightNo" : "135",
        "mealItems" : null,
        "onlyPayLater" : false,
        "originDestinationOptions" : [ {
            "cabinClassName" : "BUSINESS",
            "destinationCity" : "Hồ Chí Minh",
            "destinationDateTime" : "2021-07-23T07:20:00.000Z",
            "destinationLocationCode" : "SGN",
            "destinationLocationName" : "Sân bay Tân Sơn Nhất",
            "flightDirection" : "D",
            "flightSegments" : [ {
            "adultBaggage" : null,
            "aircraft" : "Airbus A321",
            "arrivalAirportLocationCode" : "SGN",
            "arrivalAirportLocationName" : "Sân bay Tân Sơn Nhất",
            "arrivalCity" : "Hồ Chí Minh",
            "arrivalDateTime" : "2021-07-23T07:20:00.000Z",
            "cabinClassCode" : "V_SBoss",
            "cabinClassName" : "BUSINESS",
            "cabinClassText" : "SkyBoss",
            "childBaggage" : null,
            "departureAirportLocationCode" : "HAN",
            "departureAirportLocationName" : "Sân bay Nội Bài",
            "departureCity" : "Hà Nội",
            "departureDateTime" : "2021-07-23T05:10:00.000Z",
            "eticket" : true,
            "fareBasicCode" : null,
            "fareCode" : null,
            "flightDirection" : "D",
            "flightNumber" : "135",
            "infantBaggage" : null,
            "journeyDuration" : 130,
            "marketingAirlineCode" : "VJ",
            "marriageGroup" : null,
            "mealCode" : null,
            "operatingAirline" : {
                "code" : "VJ",
                "equipment" : null,
                "flightNumber" : "135",
                "name" : "VietJet Air"
            },
            "resBookDesignCode" : "V_SBoss",
            "seatsRemaining" : null,
            "stopQuantity" : 0,
            "stopQuantityInfo" : null,
            "supplierFareKey" : null,
            "supplierJourneyKey" : "FE1G3mI6J96guNcAzJB8yZ¥FGw7p5Weqh1jFldOtANHbBsM1ZM4xm9eJCMdqbmYTODQA1GPi0yHK6bYrz1U6SPAnrzCjhNqS6fuU9vMGIlpY3BwX937d9zbpx5aotYD2Hkad7SVACsbXLfkhQm2Bu0X¥k9ƒAQbtCjpXj6rFƒKBXVZSRY4hOF8GQQZ2IFqdegJGFHN6kEeNGHYeJt39SUgpDDRMq0OtLvm0iic¥1YGj1AJVIaj6FUƒxPo4OkVIUB83axadxG7pbDxZCn28¥85bUM50I2Bcp4yxrKnHC7YkXWAKN5JhIQzRHTrt1HbQzF9MP3FP7PWoNvG0BHUndiYelƒ653zOv0dSzƒSX2Tzomz11Rf2fHWHPXwigUvBA74Zsy5vKwDNZxYYv9aJC3c33pEƒ6LsD5NDmdiSRtXzrl8tzStLzyjYapGU0fDSh9bThcZCxpeejWyEVyjHdgqV4e77ncQTeUWUKNa1ggƒrerpRc="
            } ],
            "journeyDuration" : 130,
            "originCity" : "Hà Nội",
            "originDateTime" : "2021-07-23T05:10:00.000Z",
            "originLocationCode" : "HAN",
            "originLocationName" : "Sân bay Nội Bài"
        } ],
        "passportMandatory" : true,
        "refundable" : false,
        "sequenceNumber" : "ibe3640395997606506",
        "ticketType" : "ETICKET",
        "validReturnCabinClasses" : null,
        "validatingAirlineCode" : "VJ",
        "validatingAirlineName" : "VietJet Air"
        } ],
        "requiredFields" : null,
        "returnDateTime" : null,
        "roundType" : "ROUNDTRIP",
        "totalPricedItinerary" : 3
    },
    "infos" : null,
    "searchId" : "ATD::210707::66c84a6f-fa81-4526-a2d9-2f7b7975214b",
    "success" : true,
    "textMessage" : null
}
```

***

### Get flight ticket condition API <a href="#get-flight-ticket-condition-api" id="get-flight-ticket-condition-api"></a>

POST: /api/air-tickets/farerules

Get the ticket conditions of the flight

#### Paramaters <a href="#paramaters_2" id="paramaters_2"></a>

| Parameter                   | Description                  |
| --------------------------- | ---------------------------- |
| language (String, Optional) | The language you want to get |

Example

`?language=vi`

#### Request Body <a href="#request-body_3" id="request-body_3"></a>

| Parameter                        | Description                                                                                                        |
| -------------------------------- | ------------------------------------------------------------------------------------------------------------------ |
| searchId(String, Required)       | <p>Data used to refer to search results<br>This data is taken from the return results of airline ticket search</p> |
| groupId(String, Required)        | Journey identifier in the list of journeys returned by search results                                              |
| fareSourceCode(String, Required) | Journey identifier information                                                                                     |

Example

```
    {
        "fareSourceCode": "dom07b2da7b-3232-4294-9278-b35fb6307714",
        "groupId": "27b091a7-62b8-4ce2-b45b-eda3340d7673",
        "searchId": "ATD::210720::dc96e1a9-c39e-4f48-974e-e0be6abb45c7"
    }
```

#### Response <a href="#response_5" id="response_5"></a>

| Parameter                                       | Description                                                                                |
| ----------------------------------------------- | ------------------------------------------------------------------------------------------ |
| fareRules(Array\[FareRules], Required)          | Return ticket conditions list                                                              |
| arrivalAirportLocationCode (String, Required)   | Destination location code                                                                  |
| departureAirportLocationCode (String, Required) | Departure location code                                                                    |
| departureDateTime(String, Required)             | <p>Departure time<br>Identified by yyyy-MM-dd’T’Z’</p>                                     |
| arrivalDateTime(String, Required)               | <p>Arrival time<br>Format in yyyy-MM-dd’T’HHon’</p>                                        |
| fareRuleItems (Array\[FareRuleItem], Required)  | Detailed list of ticket conditions                                                         |
| detail(String, Required)                        | <p>Detailed information about ticket conditions<br>HTML format</p>                         |
| title(String, Required)                         | Information about the conditions of the return ticket / the condition of the return ticket |
| duration(Integer, Optional),                    |                                                                                            |
| errors (Array\[Error], Optional),               |                                                                                            |
| infos(Array\[Info], Optional),                  |                                                                                            |
| success(Boolean, Optional),                     |                                                                                            |
| textMessage(String, Optional)                   |                                                                                            |

Example

```json
{
    "duration": 1444,
    "errors": null,
    "fareRules": [
        {
        "arrivalAirportLocationCode": "SGN",
        "arrivalAirportLocationName": null,
        "arrivalCity": null,
        "arrivalDateTime": "2021-08-16T07:55:00.000Z",
        "departureAirportLocationCode": "HAN",
        "departureAirportLocationName": null,
        "departureCity": null,
        "departureDateTime": "2021-08-16T05:45:00.000Z",
        "fareRuleItems": [
            {
            "detail": "\n            \n            <br /><strong>- Hạng đặt chỗ:</strong> Economy Saver\n            <br /><strong>- Thay đổi:</strong>  Trước 3h tính từ giờ khởi hành từng chặng bay : 270.000 VND . Trong/sau 3h tính từ giờ khởi hành từng chặng bay: Không áp dụng\n            <br /><strong>- Hoàn/hủy vé:</strong> Không áp dụng\n            <br /><strong>- Đổi tên:</strong> Chỉ áp dụng đối với vé chưa sử dụng. Thay đổi trước giờ khởi hành 3h của chuyến bay đầu tiên và phải đổi tên cho cả hành trình, thu phí thay đổi tên 350.000 VND\n            <br /><strong>- Hành lý:</strong> Xách tay 7kg + Ký gửi 20kg\n            <br /><strong>- Suất ăn:</strong> Đã bao gồm\n            <br /><strong>- Hệ số cộng điểm Bamboo Club:</strong> 0.25\n\t        <br /><strong>- Ghi chú:</strong> Mọi thay đổi trên vé phải thực hiện trước 3h so với giờ khởi hành hoặc theo quy định của từng loại vé. Tất cả phí áp dụng chưa bao gồm VAT và được tính cho từng khách/chặng + chênh lệch vé (nếu có). Tết Nguyên Đán 2022: 17/01/2022 – 16/02/2022\n\t\t    <br /><strong>- Ghi chú Covid-19:</strong> HÀNH KHÁCH KHI ĐẶT CHỖ MUA VÉ CẦN THỰC HIỆN KHAI BÁO Y TẾ ĐIỆN TỬ BẮT BUỘC TRƯỚC KHI TỚI SÂN BAY\n            <br /><br/><strong> Tham khảo thêm <a href='https://www.bambooairways.com/vn-vi/thong-tin-dat-ve/dat-chuyen-bay/cac-hang-ve-gia-ve/' target='_blank'>Điều kiện giá vé áp dụng cho các vé xuất và khởi hành từ ngày 01/03/2021</a>\n\t\t\t\n        ",
            "title": "Điều kiện chiều đi"
            }
        ],
        "operatingAirline": {
            "code": "VN",
            "equipment": null,
            "flightNumber": null,
            "name": null
        }
        }
    ],
    "fareSourceCode": null,
    "groupId": null,
    "infos": null,
    "searchId": null,
    "success": true,
    "textMessage": null
}
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://developer.gotadi.com/english/b2b2c-partner/api-method/flight/search-api.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
