Flight Rule Reference
Complete flight rule configuration options
Complete reference for flight rule configuration.
| Field | Type | Description |
|---|
| Origin City | String/null | Origin city code (null = any) |
| Origin Country | String/null | Origin country code (null = any) |
| Destination City | String/null | Destination city code (null = any) |
| Destination Country | String/null | Destination country code (null = any) |
| Is International | Boolean/null | International flights only (null = any) |
| Type | Priority | Fields Set |
|---|
| City to City | 10 | originCity, destinationCity |
| Country to Country | 20 | originCountry, destinationCountry |
| Domestic in Country | 50 | originCountry = destinationCountry, isInternational = false |
| International | 75 | isInternational = true |
| All Flights | 100 | All fields null |
| Field | Type | Description |
|---|
| Max Price Per Person | Number | Maximum allowed price per passenger |
| Currency | String | Currency code (USD, EUR, IQD, etc.) |
| Duration Budget Tiers | Array | Optional duration-based budget overrides |
| Field | Type | Description |
|---|
| Min Hours | Number | Minimum flight duration (inclusive) |
| Max Hours | Number/null | Maximum flight duration (null = unlimited) |
| Max Price Per Person | Number | Budget for this duration range |
Example:
[
{ "minHours": 0, "maxHours": 3, "maxPricePerPerson": 450 },
{ "minHours": 3, "maxHours": 7, "maxPricePerPerson": 650 },
{ "minHours": 7, "maxHours": null, "maxPricePerPerson": 1000 }
]
| Field | Type | Description |
|---|
| Allowed Cabin Classes | Array | List of allowed cabin class codes |
| Duration Cabin Tiers | Array | Optional duration-based cabin overrides |
| Code | Name |
|---|
ECONOMY | Economy |
PREMIUM_ECONOMY | Premium Economy |
BUSINESS | Business Class |
FIRST | First Class |
| Field | Type | Description |
|---|
| Min Hours | Number | Minimum flight duration (inclusive) |
| Max Hours | Number/null | Maximum flight duration (null = unlimited) |
| Allowed Cabin Classes | Array | Classes allowed for this duration |
Example:
[
{ "minHours": 0, "maxHours": 5, "allowedCabinClasses": ["ECONOMY"] },
{ "minHours": 5, "maxHours": 8, "allowedCabinClasses": ["ECONOMY", "PREMIUM_ECONOMY"] },
{ "minHours": 8, "maxHours": null, "allowedCabinClasses": ["ECONOMY", "PREMIUM_ECONOMY", "BUSINESS"] }
]
| Field | Type | Description |
|---|
| Max Stops | Number/null | Maximum connections allowed (null = unlimited) |
| Advance Booking Days | Number/null | Minimum days before departure (null = none) |
| Value | Meaning |
|---|
| null | No limit |
| 0 | Direct flights only |
| 1 | Maximum 1 stop |
| 2 | Maximum 2 stops |
| Field | Type | Description |
|---|
| Action | Enum/null | Override policy default action (null = use default) |
Possible values: ALLOW, WARN_AND_ALLOW, REQUIRE_APPROVAL, BLOCK
| Field | Type | Description |
|---|
| Priority | Number | Rule priority (lower = higher precedence) |
Default values by match type:
- City to City: 10
- Country to Country: 20
- Domestic: 50
- International: 75
- All Flights: 100