ট্রাভেল API · v1
পুরো ভ্রমণের উপর গড়ে তুলুন
একটি ইন্টিগ্রেশন, দুটি পণ্য: ফ্লাইট API (ভাড়ার ক্যালেন্ডার, অনুসন্ধান, দাম, বাড়তি সেবা, অর্ডার, টিকিট, বাতিল) এবং হোটেল API (শহর বা হোটেল কোড ধরে অনুসন্ধান, কক্ষ, দর যাচাই, বুকিং, বাতিল), সঙ্গে স্ট্যাটিক কনটেন্ট। HTTPS-এর উপর পরিচ্ছন্ন JSON, স্বাক্ষরিত রিকোয়েস্ট, স্যান্ডবক্স ও প্রোডাকশনের জন্য একটিই বেস URL।
বেস URL
https://api.dubaitrip.com/v1স্যান্ডবক্স ও প্রোডাকশনের জন্য একটিই URL — কী নির্ধারণ করে: dt_sbx_ কী আমাদের সরবরাহকারীদের টেস্ট সিস্টেমে পৌঁছায়, dt_live_ কী লাইভ ইনভেন্টরিতে।
গাইড
- কুইক স্টার্টসাইন-আপ থেকে স্যান্ডবক্সে বুক করা ফ্লাইট পর্যন্ত, পাঁচটি ধাপে।
- প্রমাণীকরণপ্রমাণীকরণের দুটি উপায়, দুটিই আপনার কী আইডির সঙ্গে যুক্ত: স্বাক্ষরিত রিকোয়েস্ট (প্রস্তাবিত) অথবা OAuth 2 client-credentials বেয়ারার টোকেন।
- এনভায়রনমেন্ট, সীমা ও সংস্করণস্যান্ডবক্স ও প্রোডাকশনের জন্য একটিই বেস URL; আপনি যে কী দিয়ে স্বাক্ষর করেন সেটিই এনভায়রনমেন্ট নির্ধারণ করে।
- এররপ্রতিটি ব্যর্থতা একটি স্থিতিশীল, মেশিনে পাঠযোগ্য কোডসহ RFC 7807 সমস্যা ডকুমেন্ট।
- ফ্লাইট APIভাড়ার ক্যালেন্ডার, 900+ এয়ারলাইনে অনুসন্ধান, অফারের দাম যাচাই, বাড়তি সেবা যোগ, অর্ডার তৈরি, টিকিট ইস্যু, ফেরতের কোট ও প্রক্রিয়াকরণ।
- হোটেল APIশহরের কোড (IATA-ধাঁচের, যেমন DXB) বা আমাদের ক্যাটালগ থেকে সংরক্ষিত হোটেল কোড দিয়ে 1.5M+ প্রপার্টি খুঁজুন, বোর্ড বেসিস ও বাতিলকরণ নীতিসহ রুম-স্তরের দর দেখুন, যাচাই করে বুক করুন, আর নীতি অনুযায়ী বাতিল করুন।
- স্ট্যাটিক কনটেন্টসার্চ UI তৈরি এবং শহর অনুযায়ী আমাদের হোটেল ক্যাটালগ সংরক্ষণের জন্য রেফারেন্স লুকআপ: বিমানবন্দর, এয়ারলাইন, শহর ও হোটেল।
- চেঞ্জলগট্রাভেল API-এর প্রতিটি পরিবর্তন, নতুনটি আগে।
এন্ডপয়েন্ট
প্রমাণীকরণ
অ্যাকাউন্ট
ফ্লাইট
- get
/v1/flights/price-calendarCheapest fare per day for a route over a date window, from our price cache — instant and never a live supplier call. Draw a fare calendar before searching. Omit the return window for one-way prices. - post
/v1/flights/searchSearch flights. Returns a session to poll, or the complete result when `wait` is true. - get
/v1/flights/search/{searchId}Read the next page of a running search. `status` becomes `complete` when every supplier answered. - post
/v1/flights/offers/{offerId}/priceRe-price an offer right before booking. `priceChanged` tells you the total moved. - get
/v1/flights/offers/{offerId}/fare-rulesFare rules and conditions of an offer. - get
/v1/flights/offers/{offerId}/ancillariesChargeable extras available for an offer — today extra checked-baggage allowances, priced by the airline per passenger. Add them to the order via `ancillaries[]` on POST /v1/flights/orders. - post
/v1/flights/ordersCreate an order (hold) from an offer. Requires an `Idempotency-Key` header. - get
/v1/flights/orders/{orderId}Read an order: status, time limit, tickets. - post
/v1/flights/orders/{orderId}/issueIssue the tickets of a held order (charges your deposit balance). - get
/v1/flights/orders/{orderId}/refund-quoteWhat a cancellation would refund, before you commit. - post
/v1/flights/orders/{orderId}/cancelCancel: a held order is released; a ticketed order is voided inside the void window, else refunded. - get
/v1/flights/scheduleTimetable for a route on one day: which flights operate, with local times and equipment — no fares. Query: `origin`, `destination` (IATA), `date` (yyyy-MM-dd). - post
/v1/flights/orders/{orderId}/exchange/searchExchange step 1: search replacement itineraries for a ticketed order. Offers come back in the search shape and expire the same way. - post
/v1/flights/orders/{orderId}/exchange/quoteExchange step 2: what exchanging the listed tickets onto an offer would cost. No side effects. - post
/v1/flights/orders/{orderId}/exchangeExchange step 3: re-issue the listed tickets onto the offer (charges your deposit balance). Requires an `Idempotency-Key` header.
হোটেল
- post
/v1/hotels/searchSearch hotels by city code (IATA-style, e.g. DXB — see /v1/content/cities), by hotel codes from your stored catalogue, or by a geo circle. Returns a session to poll, or the complete result when `wait` is true. - get
/v1/hotels/search/{searchId}Read the next page of a running search. Pass the same dates and room count as the search so rate keys stay bookable. - get
/v1/hotels/{hotelCode}/roomsRoom types of a hotel. Pass any `rateKey` from the same search so the right supplier answers. - post
/v1/hotels/rates/{rateKey}/checkPre-book check: confirms the rate is still bookable and its price. - post
/v1/hotels/bookingsBook a rate. Requires an `Idempotency-Key` header. - get
/v1/hotels/bookings/{bookingId}Read a booking (voucher). - get
/v1/hotels/bookings/{bookingId}/cancellation-quoteWhat a cancellation would refund, before you commit. - post
/v1/hotels/bookings/{bookingId}/cancelCancel a booking under its cancellation policy.
কনটেন্ট
- get
/v1/content/airportsAirports (IATA), optionally filtered by a free-text term or a country. - get
/v1/content/citiesCities usable as a hotel search destination, optionally filtered by term or country. - get
/v1/content/airlinesAirlines (IATA two-letter codes). - get
/v1/content/hotelsLook up hotels by city and/or name — a lookup, not a catalogue export: a cityCode or a name of 3+ characters is required, 50 per page, 20 pages per query. Store the codes you need: availability is searched by `cityCode` or `hotelCodes`.