BRK Flight API Documentation
This document provides comprehensive documentation for the BRK Flight API, which enables partners to search flights and create bookings across multiple providers.
https://api.brk360.net/v2
Authentication
Before using the API, you need to authenticate to receive a token.
Request Body
{
"email": "testapi@brk360.net",
"password": "TEST112233$$"
}
Response
{
"token": "eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9...",
"user": {
"id": 123,
"name": "Test API User",
"email": "testapi@brk360.net",
"balance": 1000.50
}
}
For all subsequent requests, include the received token in the Authorization header:
Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9...
Flight Search
The search API queries multiple flight providers in parallel and returns unified results.
Request Body
{
"from_flight": "NJF",
"to_flight": "THR",
"date_flight": "2024-08-10",
"return_date": "2024-08-17", // Optional - include for round trips
"adult": 1,
"child": 0,
"infant": 0
}
Parameters
Parameter | Description | Required |
---|---|---|
from_flight |
Origin airport code. Use "ALL" to search all airports in a city. | Required |
to_flight |
Destination airport code. Use "ALL" to search all airports in a city. | Required |
date_flight |
Departure date in YYYY-MM-DD format. | Required |
return_date |
Return date in YYYY-MM-DD format (for round trips). | Optional |
adult |
Number of adult passengers (default: 1). | Optional |
child |
Number of child passengers (default: 0). | Optional |
infant |
Number of infant passengers (default: 0). | Optional |
Response
The response includes an array of flight options sorted by price.
[
{
"key": "brk360-68b1b54de20ac-0",
"provider": "brk",
"itineraries": [
{
"session_id": "brk360-68b1b54de20ac-0",
"combination_id": "brk360-68b1b54de20ac-0",
"recommendation_id": "brk360-68b1b54de20ac-0",
"subsystem_id": 1,
"subsystem_name": "TE"
}
],
"netprice": 7.351167512690355,
"usd": 7.351167512690355,
"originalPrice": 7.351167512690355,
"discountValue": 0,
"price": {
"total": {
"amount": 7.351167512690355,
"currency": "USD",
"base_fare": 7.738071065989848,
"tax": 0,
"commission": 0.3869035532994924,
"original_amount": 7.351167512690355,
"original_base_fare": 7.738071065989848,
"original_tax": 0,
"original_commission": 0.3869035532994924
},
"passengers": [
{
"type": "ADT",
"quantity": 1,
"price": {
"amount": 7.351167512690355,
"base_fare": 7.738071065989848,
"tax": 0,
"commission": 0.3869035532994924,
"currency": "USD",
"original_amount": 7.351167512690355,
"discount_applied": 0
}
},
{
"type": "CHD",
"quantity": 0,
"price": {
"amount": 7.738071065989848,
"base_fare": 7.738071065989848,
"tax": 0,
"commission": 0,
"currency": "USD",
"original_amount": 7.738071065989848,
"discount_applied": 0
}
},
{
"type": "INF",
"quantity": 0,
"price": {
"amount": 1.0456852791878173,
"base_fare": 1.0456852791878173,
"tax": 0,
"commission": 0,
"currency": "USD",
"original_amount": 1.0456852791878173,
"discount_applied": 0
}
}
]
},
"journeys": [
{
"type": "outbound",
"tpa": {
"remarks": "رزرو دوطرفه پرواز چارتري داراي نرخ دوطرفه با کميسيون"
},
"departure": {
"time": "2026-08-30 20:45",
"airport": {
"code": "BGW",
"name_fa": "بغداد"
}
},
"arrival": {
"time": "2026-08-30 23:15",
"airport": {
"code": "IFN",
"name_fa": "أصفهان"
}
},
"duration": {
"text": "02:00",
"minutes": 120
},
"stops": 0,
"segments": [
{
"number": "4214",
"airline": {
"code": "IF",
"name": "IF"
},
"departure": {
"time": "2026-08-30 20:45",
"date_g": "2026-08-30",
"date_j": "2026-08-30",
"airport": {
"code": "BGW",
"name": "BGW",
"name_fa": "بغداد"
}
},
"arrival": {
"time": "2026-08-30 23:15",
"date_g": "2026-08-30",
"date_j": "2026-08-30",
"airport": {
"code": "IFN",
"name": "IFN",
"name_fa": "أصفهان"
}
},
"duration": {
"text": "02:00",
"minutes": 120
},
"class": "Economy",
"fare_name": "YNJFIKA6",
"aircraft": {
"type": "321",
"tail_number": ""
},
"baggage": {
"allowance": 0,
"unit": "KG"
},
"seats_remaining": 9,
"connection_time": 0,
"remarks": "رزرو دوطرفه پرواز چارتري داراي نرخ دوطرفه با کميسيون"
}
],
"price": {
"amount": 7.351167512690355,
"currency": "USD",
"base_fare": 7.738071065989848,
"tax": 0,
"commission": 0.3869035532994924
}
}
]
},
{
"key": "brk360-68b1b54de248e-1",
"provider": "brk",
"itineraries": [
{
"session_id": "brk360-68b1b54de248e-1",
"combination_id": "brk360-68b1b54de248e-1",
"recommendation_id": "brk360-68b1b54de248e-1",
"subsystem_id": 1,
"subsystem_name": "TE"
}
],
"netprice": 14.901015228426395,
"usd": 14.901015228426395,
"originalPrice": 14.901015228426395,
"discountValue": 0,
"price": {
"total": {
"amount": 14.901015228426395,
"currency": "USD",
"base_fare": 15.685279187817258,
"tax": 0,
"commission": 0.7842639593908629,
"original_amount": 14.901015228426395,
"original_base_fare": 15.685279187817258,
"original_tax": 0,
"original_commission": 0.7842639593908629
},
"passengers": [
{
"type": "ADT",
"quantity": 1,
"price": {
"amount": 14.901015228426395,
"base_fare": 15.685279187817258,
"tax": 0,
"commission": 0.7842639593908629,
"currency": "USD",
"original_amount": 14.901015228426395,
"discount_applied": 0
}
},
{
"type": "CHD",
"quantity": 0,
"price": {
"amount": 9.411167512690355,
"base_fare": 9.411167512690355,
"tax": 0,
"commission": 0,
"currency": "USD",
"original_amount": 9.411167512690355,
"discount_applied": 0
}
},
{
"type": "INF",
"quantity": 0,
"price": {
"amount": 2.0913705583756346,
"base_fare": 2.0913705583756346,
"tax": 0,
"commission": 0,
"currency": "USD",
"original_amount": 2.0913705583756346,
"discount_applied": 0
}
}
]
},
"journeys": [
{
"type": "outbound",
"tpa": {
"remarks": "رزرو دوطرفه پرواز چارتري داراي نرخ دوطرفه با کميسيون"
},
"departure": {
"time": "2026-08-30 20:45",
"airport": {
"code": "BGW",
"name_fa": "بغداد"
}
},
"arrival": {
"time": "2026-08-30 23:15",
"airport": {
"code": "IFN",
"name_fa": "أصفهان"
}
},
"duration": {
"text": "02:00",
"minutes": 120
},
"stops": 0,
"segments": [
{
"number": "4214",
"airline": {
"code": "IF",
"name": "IF"
},
"departure": {
"time": "2026-08-30 20:45",
"date_g": "2026-08-30",
"date_j": "2026-08-30",
"airport": {
"code": "BGW",
"name": "BGW",
"name_fa": "بغداد"
}
},
"arrival": {
"time": "2026-08-30 23:15",
"date_g": "2026-08-30",
"date_j": "2026-08-30",
"airport": {
"code": "IFN",
"name": "IFN",
"name_fa": "أصفهان"
}
},
"duration": {
"text": "02:00",
"minutes": 120
},
"class": "Business",
"fare_name": "YIKA NJF20",
"aircraft": {
"type": "321",
"tail_number": ""
},
"baggage": {
"allowance": 0,
"unit": "KG"
},
"seats_remaining": 9,
"connection_time": 0,
"remarks": "رزرو دوطرفه پرواز چارتري داراي نرخ دوطرفه با کميسيون"
}
],
"price": {
"amount": 14.901015228426395,
"currency": "USD",
"base_fare": 15.685279187817258,
"tax": 0,
"commission": 0.7842639593908629
}
}
]
},
{
"key": "brk360-68b1b54de26a1-2",
"provider": "brk",
"itineraries": [
{
"session_id": "brk360-68b1b54de26a1-2",
"combination_id": "brk360-68b1b54de26a1-2",
"recommendation_id": "brk360-68b1b54de26a1-2",
"subsystem_id": 1,
"subsystem_name": "TE"
}
],
"netprice": 19.868020304568528,
"usd": 19.868020304568528,
"originalPrice": 19.868020304568528,
"discountValue": 0,
"price": {
"total": {
"amount": 19.868020304568528,
"currency": "USD",
"base_fare": 20.913705583756347,
"tax": 0,
"commission": 1.0456852791878173,
"original_amount": 19.868020304568528,
"original_base_fare": 20.913705583756347,
"original_tax": 0,
"original_commission": 1.0456852791878173
},
"passengers": [
{
"type": "ADT",
"quantity": 1,
"price": {
"amount": 19.868020304568528,
"base_fare": 20.913705583756347,
"tax": 0,
"commission": 1.0456852791878173,
"currency": "USD",
"original_amount": 19.868020304568528,
"discount_applied": 0
}
},
{
"type": "CHD",
"quantity": 0,
"price": {
"amount": 14.639593908629442,
"base_fare": 14.639593908629442,
"tax": 0,
"commission": 0,
"currency": "USD",
"original_amount": 14.639593908629442,
"discount_applied": 0
}
},
{
"type": "INF",
"quantity": 0,
"price": {
"amount": 4.182741116751269,
"base_fare": 4.182741116751269,
"tax": 0,
"commission": 0,
"currency": "USD",
"original_amount": 4.182741116751269,
"discount_applied": 0
}
}
]
},
"journeys": [
{
"type": "outbound",
"tpa": {
"remarks": "رزرو دوطرفه پرواز چارتري داراي نرخ دوطرفه با کميسيون"
},
"departure": {
"time": "2026-08-30 20:45",
"airport": {
"code": "BGW",
"name_fa": "بغداد"
}
},
"arrival": {
"time": "2026-08-30 23:15",
"airport": {
"code": "IFN",
"name_fa": "أصفهان"
}
},
"duration": {
"text": "02:00",
"minutes": 120
},
"stops": 0,
"segments": [
{
"number": "4214",
"airline": {
"code": "IF",
"name": "IF"
},
"departure": {
"time": "2026-08-30 20:45",
"date_g": "2026-08-30",
"date_j": "2026-08-30",
"airport": {
"code": "BGW",
"name": "BGW",
"name_fa": "بغداد"
}
},
"arrival": {
"time": "2026-08-30 23:15",
"date_g": "2026-08-30",
"date_j": "2026-08-30",
"airport": {
"code": "IFN",
"name": "IFN",
"name_fa": "أصفهان"
}
},
"duration": {
"text": "02:00",
"minutes": 120
},
"class": "First",
"fare_name": "DXB1",
"aircraft": {
"type": "321",
"tail_number": ""
},
"baggage": {
"allowance": 0,
"unit": "KG"
},
"seats_remaining": 9,
"connection_time": 0,
"remarks": "رزرو دوطرفه پرواز چارتري داراي نرخ دوطرفه با کميسيون"
}
],
"price": {
"amount": 19.868020304568528,
"currency": "USD",
"base_fare": 20.913705583756347,
"tax": 0,
"commission": 1.0456852791878173
}
}
]
}
]
Important Fields
key
: Contains identifier needed for booking the flight.netprice
: The final price after all adjustments and discounts.journeys
: Details of flight segments, including departure, arrival, and duration.
Booking Creation
Create a flight booking with the selected flight and passenger details.
Request Body
{
"key":"brk360-688e2ac26552a-0",
"payment_method": "balance", // or "creditCard"
"contact_email": "user@example.com",
"contact_phone": "+9647518775861",
"passengers": [
{
"type": "ADT", // ADT, CHD, INF
"first_name": "John",
"last_name": "Doe",
"birth_date": "1990-01-01",
"email": "john@example.com",
"document": {
"type": "passport", // or "passport"
"number": "1234567890",
"country": "IR", // XR for Iran, others for passport
"expiry_date": "2030-01-01" // for passport only
}
}
]
}
Response
{
"status": "success",
"BookId": "123456"
}
Booking Status
Retrieve the status of a booking.
Response
{
"status": "success",
"data": {
"booking_id": "123456",
"pnr": "ABC123",
"status": "Issued",
"origin": "NJF",
"destination": "THR",
"departure_date": "2024-08-10T10:30:00",
"arrival_date": "2024-08-10T12:45:00",
"airline": "IR",
"price": 350.75,
"baggage": "30KG",
"passengers": [
{
"name": "John Doe",
"type": "ADT",
"document_number": "A12345678",
"ticket_number": "724-1234567890"
}
]
}
}
Error Handling
The API uses standard HTTP status codes to indicate the status of requests. In case of an error, the response will include a descriptive message.
Example Error Response
{
"status": "error",
"message": "Insufficient balance"
}
Status Code | Description |
---|---|
400 |
Bad Request (invalid parameters) |
401 |
Unauthorized (authentication required) |
403 |
Forbidden (insufficient permissions) |
404 |
Not Found (resource not found) |
422 |
Validation Error (invalid data) |
500 |
Server Error |
Data Structures
Passenger Types
ADT
- AdultCHD
- ChildINF
- Infant
Payment Methods
balance
- Pay using account balancecreditCard
- Pay using credit card
Booking Statuses
Pending
- Booking created but not ticketedIssued
- Tickets issuedCancelled
- Booking cancelledPending Payment
- Awaiting payment
Postman Collection
Download and import our comprehensive Postman collection to test the BRK Flight API endpoints quickly and easily.
Download Collection
The Postman collection includes:
- Authentication: Pre-configured login with test credentials
- Flight Operations: Search, rules, booking, and status endpoints
- Test Examples: Multiple scenarios with different passenger types
- Environment Variables: Auto-token management and base URL
- Test Scripts: Automatic token saving and validation
JSON format • Ready to import
Quick Start Guide
- Download the collection file above
- Import into Postman (File → Import)
- Set Variables:
base_url
:https://api.brk360.net/v2
auth_token
: Auto-populated after login
- Run Authentication first to get your token
- Test Endpoints in any order
Collection Structure
Folder | Description | Requests |
---|---|---|
Authentication | User login and token management | Login |
Flight Operations | Core flight API functionality | Search, Rules, Book, Status |
Test Examples | Pre-configured test scenarios | Economy, Business, First Class bookings |
testapi@brk360.net
/ TEST112233$$
) for demonstration purposes.
Need Help?
For support with the Postman collection or API integration, contact our development team.
Contact Support