Create New Booking
Book your flight with TassTech Airline
API Endpoint Available
To create bookings programmatically, use: POST /api/v1/bookings
Refer to the API documentation for request format and parameters.
Available Flights (Next 7 Days)
MH370
Malaysia Airlines • B777-200
KUL
04 Feb, 08:00
LHR
04 Feb, 21:30
Available Seats
108
$1,200.00
MH001
Malaysia Airlines • A330-300
KUL
04 Feb, 08:00
SIN
04 Feb, 09:00
Available Seats
94
$150.00
MH088
Malaysia Airlines • B737-800
KUL
04 Feb, 08:00
BKK
04 Feb, 10:00
Available Seats
50
$200.00
MH017
Malaysia Airlines • A330-300
KUL
04 Feb, 08:00
SYD
04 Feb, 16:00
Available Seats
135
$800.00
MH002
Malaysia Airlines • A350-900
KUL
04 Feb, 08:00
DXB
04 Feb, 15:30
Available Seats
157
$900.00
MH192
Malaysia Airlines • A330-300
KUL
04 Feb, 08:00
HKG
04 Feb, 12:00
Available Seats
71
$500.00
MH602
Malaysia Airlines • B737-800
KUL
04 Feb, 08:00
CGK
04 Feb, 10:00
Available Seats
82
$180.00
MH148
Malaysia Airlines • A330-300
KUL
04 Feb, 08:00
ICN
04 Feb, 14:00
Available Seats
116
$700.00
MH370
Malaysia Airlines • B777-200
KUL
05 Feb, 08:00
LHR
05 Feb, 21:30
Available Seats
28
$1,200.00
MH001
Malaysia Airlines • A330-300
KUL
05 Feb, 08:00
SIN
05 Feb, 09:00
Available Seats
43
$150.00
How to Create a Booking
Via API (Recommended)
POST /api/v1/bookings
{
"flight_id": 1,
"contact_email": "customer@email.com",
"contact_phone": "+60123456789",
"passengers": [
{
"first_name": "JOHN",
"last_name": "DOE",
"date_of_birth": "1990-01-01",
"gender": "M",
"nationality": "US",
"document_type": "PASSPORT",
"document_number": "P12345678",
"document_expiry_date": "2030-12-31",
"cabin_class": "ECONOMY"
}
]
}
Using Postman
- Import the Postman collection:
TassTech-Airline-Complete.postman_collection.json - Navigate to: Booking Management → Create Booking
- Update the request body with passenger details
- Click Send to create the booking
Using cURL
curl -X POST http://localhost:8000/api/v1/bookings \
-H "Content-Type: application/json" \
-d '{"flight_id": 1, "contact_email": "test@example.com", ...}'
Tip: For complete API documentation and examples, check the FLIGHT-BOOKING-SYSTEM.md and API-ENDPOINTS.md files in your project root.