✈️ Flight-Hub Documentation
Overview
Flight-Hub provides APIs for flight booking, ticket management, and real-time flight metadata.
� Quick Start
Authenticate: Get your API token.
curl -X POST "https://id-stag.tripdata.vn/auth/token" ` -H "Content-Type: application/x-www-form-urlencoded" ` -d "client_id=YOUR_CLIENT_ID&client_secret=YOUR_SECRET&grant_type=client_credentials"
Parameter Description client_id
Partner identifier from Flight-Hub client_secret
Your secret authentication key grant_type
Fixed value: client_credentials
API Endpoint:
- URL:
https://api-stag.tripdata.vn/{path}
- Method:
POST
- Content-Type:
application/json
- URL:
Explore APIs:
🔑 Core Features
Feature | Description | Documentation |
---|---|---|
Book Flights | Reserve seats, add ancillaries | Guide |
Cancel Tickets | Flexible cancellation policies | API Reference |
Flight Metadata | Aircraft types, seat maps | Details |
🗂️ API Structure
graph TD
A[Flight-Hub] --> B(Booking)
A --> C(Manage Booking)
A --> D(Metadata)
B --> E[/POST /book📝/]
C --> F[/DELETE /cancel❌/]
D --> G[/GET /metadataℹ️/]
🌟 Use Cases
- Bundle flights with insurance, meals, or priority seating.
- Dynamically modify ancillaries post-booking.