API & Integrations (English)

Flight Booking API in Bangladesh: How It Works, Step by Step

Trip Designer 03 December 2026 API & Integrations (English) 15 reads
Back to Blogs
Flight Booking API in Bangladesh: How It Works, Step by Step

What really happens between "Search" and an e-ticket number — explained for Bangladeshi agencies and developers

If you run a travel agency in Dhaka, Chattogram or Sylhet and want to sell air tickets on your own website or app, a flight booking API is the piece that connects your screens to live airline inventory. This guide explains how a flight booking API in Bangladesh works step by step: which calls you make, what can go wrong at each stage, and what to check before you go live.

In short, a flight booking API lets your software search flights, re-check the price of the chosen fare, create a booking (PNR), issue the ticket after payment and handle changes afterwards — all through code, usually REST requests that return JSON. You build the customer experience; the API talks to the airlines and suppliers behind it.

Who needs a flight booking API?

  • Agencies with in-house developers who want a fully custom website or mobile app.
  • Startups building a niche product — student travel, Umrah groups or corporate travel tools.
  • Businesses that already run software (an ERP, a CRM, a membership app) and want flights inside it.

Without a development team, an API alone is the hard route. A ready white-label portal already has the API wired in — compare both in White-Label Travel Portal vs API-Only.

Step 1: Authentication and the sandbox

Every call carries credentials — typically an API key plus other headers or a token. Good providers also lock keys to your server's IP addresses (IP whitelisting). Keep keys on the server only, never inside a mobile app bundle or browser JavaScript, where anyone can extract them. Start in a sandbox or test mode so you can run the whole flow without real money or real tickets, and move to live credentials only after you have tested every path, including the failures.

Step 2: Search — asking for availability

A search request contains origin, destination, dates, passenger counts by type (adult, child, infant), cabin class and trip type (one-way, return, multi-city). The response lists itineraries with segments, flight numbers, times, fare brand, baggage, a price breakdown (base fare, taxes, fees) and an identifier for each offer that you pass to the next step.

Responses can be large and slow when several suppliers are queried at once. Set sensible timeouts, show results progressively if your provider supports it, and do not fire searches automatically on every keystroke — many providers enforce a search-to-book ratio or fair-use limits.

Step 3: Reprice — is the fare still there?

Search results are a snapshot. Seats in a booking class sell out and some results come from cache, so before taking passenger details you call reprice (also called fare check) on the selected offer. The answer is one of three: same price, a new price, or no longer available. If the price rose, show the new total and get the customer's agreement; never charge more silently. Also make sure the fare you book is exactly the option the customer picked — same brand, same baggage, same refund rules — not a cheaper substitute.

Step 4: Book — creating the PNR, then paying and issuing

The booking call sends passenger data: names exactly as in the passport, dates of birth, gender, passport number and expiry, nationality and contact details. The response includes a PNR (booking reference) and often a ticketing time limit.

A PNR is a reservation, not a ticket. Many full-service fares can be held until the time limit; low-cost carrier fares are often instant-ticketing only, so booking and ticketing happen together and need payment first. Show the hold status clearly so staff and customers never confuse "booked" with "ticketed".

Collect payment through your gateway or deduct it from an agent's wallet, then call issue-ticket. Success returns an e-ticket number per passenger — that number is what makes the journey valid. Most providers in Bangladesh work on a prepaid wallet or credit limit, so the ticket amount must already sit in your account with the provider. If you accept cards, use the gateway's hosted payment page so card numbers never touch your server; this keeps your PCI-DSS scope small.

The riskiest moment in the whole integration is a timeout on book or issue. The request may have succeeded at the supplier even though you got no answer. Do not retry blindly: query the booking status with your own unique reference first, then decide. This idempotent approach prevents double bookings and double charges.

Step 5: After booking — void, refund and reissue

ActionWhat it meansWhat to watch
Cancel (unticketed)Release a held PNRDo it before the time limit; abandoned holds can lead to airline penalties
VoidCancel a ticket shortly after issueOnly inside the void window; not every fare allows it
RefundReturn money per fare rulesPenalties and non-refundable taxes depend on the fare
ReissueChange date or routeChange fee plus any fare difference
Ticket detailsRetrieve the current stateSync records and catch airline schedule changes

Some of these actions are automated by API; others are handled as requests by the provider's support desk. Ask which is which before you promise customers instant refunds.

How much does a flight booking API cost?

There is no single price. Cost depends on setup or activation charges, any recurring subscription, per-ticket or per-search fees, which suppliers are included, search-to-book limits and how much working capital you must keep in the wallet. Add your own costs: developers, hosting, a payment gateway merchant account and support staff. Ask for everything in writing.

Go-live checklist

  1. Every flow tested in sandbox: one-way, return, child and infant, failed payment, price change, timeout.
  2. Keys stored server-side, IP whitelist set, logs masking passport data.
  3. Clear statuses on screen: on hold, ticketed, cancelled, refund in progress.
  4. Fare rules and baggage shown from the API, never typed by hand.
  5. A human support process for schedule changes and refund queries.
  6. Registration and trade licence in order — see how to start an OTA business in Bangladesh.

Where Trip Designer fits

Trip Designer is a Bangladesh-based travel platform that offers an API-only flight package for teams building their own front end, alongside ready B2B, B2C and combo white-label portals. The flight API returns results from multiple suppliers (GDS, NDC and consolidator sources) in one JSON format and follows the flow above: search, reprice, book, issue-ticket, cancel and ticket-details. Keys can be restricted by IP (CIDR ranges supported), there is an endpoint for live wallet balance, an OpenAPI 3.0 spec with interactive docs, and a sandbox test tab in the admin so you can try live searches before you ship.

Frequently Asked Questions

Do I need IATA accreditation to use a flight booking API?

Not when you book through a consolidator API — tickets are issued under the provider's accreditation. You still need to be a registered travel agency in Bangladesh.

What is the difference between a PNR and an e-ticket?

A PNR holds seats; an e-ticket number confirms the passenger has paid and can fly. An unticketed PNR can be cancelled by the airline once the time limit passes.

Why did the price change after I selected a flight?

Search results are a snapshot. When the booking class sells out or fares are refiled, the reprice step returns a new price or no availability.

Can I use a flight API in a Flutter or React Native app?

Yes, but the app should talk to your own backend, and your backend talks to the API. Never ship API keys inside the app.

Are webhooks available for schedule changes?

It depends on the provider. Where there are none, poll ticket details on a schedule for upcoming trips.

Final Thoughts

A flight booking API is simple to describe and demanding to run well: reprice before you book, never treat a PNR as a ticket, handle timeouts on book and issue with care, and show fare rules exactly as the supplier sends them. Get those right and your own brand can sell tickets reliably. বাংলায় পড়ুন: ফ্লাইট API কী ও কীভাবে কাজ করে. To discuss your project, contact the Trip Designer team.

Photo: Wasiul Bahar / Wikimedia Commons, CC BY-SA 4.0.

ভ্রমণ বিষয়ক যেকোনো প্রয়োজনে যোগাযোগ করুন

ট্যুর প্যাকেজের জন্য

ভিসা প্রসেসিং এর জন্য

ওমরাহ ও হজ প্যাকেজের জন্য

আমাদের সেবা

  • দেশীয় এবং আন্তর্জাতিক বিমান টিকিট
  • সারা বিশ্বে হোটেল বুকিং
  • আন্তর্জাতিক ট্যুর প্যাকেজ
  • ভারতীয় ট্রেনের টিকিট
  • ভিসা প্রসেসিং
  • ওয়ার্ক পারমিট
  • ওমরাহ ও হজ প্যাকেজ

ঠিকানা

৮ম তলা, আজহার কমফোর্ট কমপ্লেক্স, GA-130/A, প্রগতি সরণি, বাড্ডা, বাংলাদেশ

ম্যাপে দেখুন
Related Posts
Newsletter

Subscribe & Get Exclusive Deals
from Trip Designer

Get the best visa, tour & flight deals straight to your inbox.
No spam — only real offers.

Exclusive discounts Early access to deals Travel tips & guides No spam, ever

By subscribing you agree to our privacy policy. Unsubscribe anytime.