GET
/v2/carriersCarriers
Search airline codes. Refund and exchange flags are not returned.
Bearer tokenAuthority: B2C_REFERENCE_SEARCHhttps://api1.vacaychi.com/booking
Reads the airline-code cache (IATA code to name). Results are sorted by code, then limited.
cURL
bash
curl "https://api1.vacaychi.com/booking/v2/carriers?code=BG" \
-H "Authorization: Bearer $ACCESS_TOKEN"Query parameters
qstringoptional
Case-insensitive match on IATA code or airline name
codestringoptional
Exact IATA code
limitnumberoptional
Default 50. Maximum 200.
qstring optional | Case-insensitive match on IATA code or airline name |
codestring optional | Exact IATA code |
limitnumber optional | Default 50. Maximum 200. |
Response
200
{
"message": "Success",
"data": [
{ "code": "BG", "name": "Biman Bangladesh Airlines" }
],
"error": null
}Response fields
codestringIATA airline code
namestringAirline name
codestring | IATA airline code |
namestring | Airline name |
Errors
400limit must be a number / limit must be at least 1
limit is not a positive number
401 / 403UNAUTHORIZED
Missing token, or the token lacks B2C_REFERENCE_SEARCH
| HTTP | message | When |
|---|---|---|
| 400 | limit must be a number / limit must be at least 1 | limit is not a positive number |
| 401 / 403 | UNAUTHORIZED | Missing token, or the token lacks B2C_REFERENCE_SEARCH |
