Search min fare
This feature allows searching for flight information and cheapest fares on a specific route and date. Partners can use it to develop a feature that displays the cheapest fares on neighboring days.
Overview
| Request URL: | https://ibe.datacom.vn/api/flight/searchminfare |
| Method: | POST |
| Data type: | JSON |
| API Specification: | See specifications |
Applicable system
| System code | System name |
|---|---|
| VN | Vietnam Airlines |
| VJ | Vietjet Air |
| QH | Bamboo Airways |
| VU | Vietravel Airlines |
| 9G | Sun Phu Quoc Airways |
| 1G | Galileo |
| 1A | Amadeus |
| 1B | Abacus |
| FO | Flyone |
| AK | AirAsia |
| TR | Scoot |
Request
{
"RequestInfo": {
"PrivateKey": "string",
"ApiAccount": "string",
"ApiPassword": "string",
"Currency": "string",
"Language": "string",
"IpAddress": "string"
},
"System": "string",
"StartPoint": "string",
"EndPoint": "string",
"DepartDate": "string"
}
Data specification
| Information field | Describe | Data type | Obligatory | For example |
|---|---|---|---|---|
| RequestInfo | Query information See description Shared properties |
object | Yes |
|
| System | Reservation system | string | Yes | VN |
| StartPoint | Airport code, departure city | string | Yes | HAN |
| EndPoint | Airport code, destination city | string | Yes | SGN |
| DepartDate | Departure date Format ddMMyyyy |
string | Yes | 12032025 |
Response
{
"StatusCode": "string",
"Success": true,
"Message": "string",
"Language": "string",
"RequestID": 0,
"MinFare": {
"System": "string",
"Airline": "string",
"StartPoint": "string",
"EndPoint": "string",
"DepartDate": "string",
"ArrivalDate": "string",
"FlightNumber": "string",
"FareClass": "string",
"FareBasis": "string",
"Currency": "string",
"Fare": 0,
"Tax": 0,
"Total": 0
}
}
Data specification
| Information field | Describe | Data type | For example |
|---|---|---|---|
| StatusCode | Status code | string | 0000 |
| Success | Return status | boolean | True/False |
| Message | Error message returned | string | |
| Language | Return language | string | Vi |
| RequestID | Request ID | string | 123456 |
| MinFare | Cheapest fare information | array | |
|
System
|
Aviation system |
string
|
VN
|
| Airline | Airlines | string | VN |
| StartPoint | Airport code, departure city | string | HAN |
| EndPoint | Airport code, destination city | string | SGN |
| DepartDate | Departure date Format ddMMyyyy |
string | 12032025 |
| ArrivalDate | Arrival Date Format ddMMyyyy |
string | 12032025 |
|
FlightNumber
|
Flight number |
string
|
205
|
| FareClass | Fare class | string | A |
| FareBasis | Fare type information | string | AAP4VNW |
| Currency | Currency | string | VND |
| Fare | Fare | double | 1000000 |
| Tax | Taxes and fees | double | 500000 |
| Total | Total | double | 1500000 |
Error code
| Error code | Interpretation |
|---|---|
| 0000 | Success |
| 0001 | System error |
| 0002 | Invalid request |