Hotel Rule Reference
Complete hotel rule configuration options
Complete reference for hotel rule configuration.
| Field | Type | Description |
|---|
| City | String/null | City code (null = any) |
| Country | String/null | Country code (null = any) |
| Type | Priority | Fields Set |
|---|
| Specific City | 10 | city set |
| Any City in Country | 50 | country set, city null |
| All Hotels | 100 | Both null |
| Field | Type | Description |
|---|
| Max Price Per Night | Number | Maximum allowed nightly rate |
| Currency | String | Currency code (USD, EUR, IQD, etc.) |
| Code | Currency |
|---|
| USD | US Dollar |
| EUR | Euro |
| GBP | British Pound |
| IQD | Iraqi Dinar |
| SAR | Saudi Riyal |
| AED | UAE Dirham |
| Field | Type | Description |
|---|
| Allowed Star Ratings | Array | List of allowed ratings (1-5) |
| Value | Display |
|---|
| 1 | ⭐ (1 Star) |
| 2 | ⭐⭐ (2 Stars) |
| 3 | ⭐⭐⭐ (3 Stars) |
| 4 | ⭐⭐⭐⭐ (4 Stars) |
| 5 | ⭐⭐⭐⭐⭐ (5 Stars) |
Example:
{
"allowedStarRatings": [3, 4]
}
| Field | Type | Description |
|---|
| Max Nights | Number/null | Maximum stay length per booking (null = unlimited) |
| Advance Booking Days | Number/null | Minimum days before check-in (null = none) |
| 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:
- Specific City: 10
- Country: 50
- All Hotels: 100
{
"city": null,
"country": "AE",
"maxPricePerNight": 200,
"currency": "USD",
"allowedStarRatings": [4, 5],
"maxNights": 10,
"advanceBookingDays": 5,
"action": null,
"priority": 50
}
This rule:
- Applies to all hotels in UAE
- Allows up to $200 per night
- Allows 4 and 5 star hotels
- Maximum 10 night stays
- Must book 5 days in advance
- Uses policy default action