GET/v2/carriers

এয়ারলাইন

এয়ারলাইন কোড খুঁজুন। রিফান্ড ও এক্সচেঞ্জ ফ্ল্যাগ ফেরে না।

Bearer টোকেনঅথরিটি: B2C_REFERENCE_SEARCHhttps://api1.vacaychi.com/booking

এয়ারলাইন-কোড ক্যাশে পড়ে (IATA কোড থেকে নাম)। ফল কোড অনুযায়ী সাজানো, তারপর সীমিত।

cURL

bash
curl "https://api1.vacaychi.com/booking/v2/carriers?code=BG" \
  -H "Authorization: Bearer $ACCESS_TOKEN"

কোয়েরি প্যারামিটার

qstring
ঐচ্ছিক

IATA কোড বা এয়ারলাইনের নামে কেস-ইনসেনসিটিভ মিল

codestring
ঐচ্ছিক

হুবহু IATA কোড

limitnumber
ঐচ্ছিক

ডিফল্ট ৫০। সর্বোচ্চ ২০০।

রেসপন্স

200
{
  "message": "Success",
  "data": [
    { "code": "BG", "name": "Biman Bangladesh Airlines" }
  ],
  "error": null
}

রেসপন্স ফিল্ড

codestring

IATA এয়ারলাইন কোড

namestring

এয়ারলাইনের নাম

এরর

400limit must be a number / limit must be at least 1

limit ধনাত্মক সংখ্যা নয়

401 / 403UNAUTHORIZED

টোকেন নেই, অথবা টোকেনে B2C_REFERENCE_SEARCH নেই