Fare Rules
Retrieve fare rules for a specific flight booking. Fare rules include information on cancellation, date change, no-show policies, and other important conditions related to the fare.
Fare Rules API Guide
Overview
The Fare Rules API provides detailed fare conditions related to a specific flight, including cancellation, rescheduling, and no-show policies.
API Request Response Structure
Request Body Structure
Field | Description |
---|---|
traceId | Unique identifier for tracking the API request. |
resultIndex | Identifier for the specific flight result for which fare rules are requested. |
Request Payload
{
"traceId": "1c29fbec-a9cc-4a06-a1ee-220d215b4ba6",
"resultIndex": "82d5246c-09ee-4ab7-b967-6a65dbbca624"
}
Response Body Structure
The response includes the following fields:
Field | Description |
---|---|
traceId | Unique identifier for tracking the API request. |
resultIndex | Identifier for the specific flight result. |
origin | Departure airport code (e.g., DEL ). |
destination | Arrival airport code (e.g., BOM ). |
fareRuleDetail | Contains the fare rules in HTML format, specifying cancellation, rescheduling, and other policies. |
Sample API Response
{
"traceId": "70d878df-2715-48eb-b014-63c40d3a3bd1",
"resultIndex": "0a37766a-55aa-4305-bdf2-34f267d2258c",
"results": [
{
"airline": "",
"origin": "DEL",
"destination": "BOM",
"fareRuleDetail": "<li><span>NO SHOW : </span></li><span>Policy Period: 8760 to 0 hours before journey</span><br><span>Policy Info : Non refundable (Only statutory taxes will be refunded)</span><br><li><span>DATECHANGE : </span></li><span>Policy Period: 8760 to 4 hours before journey</span><br><span>Amount : 3000</span><br><span>Policy Info : Changes permitted 25 Hrs before scheduled departure<br>Change Penalty : INR 3,000/- or basic fare whichever is lower + Fare Difference</span><br><li><span>CANCELLATION : </span></li><span>Policy Period: 8760 to 4 hours before journey</span><br><span>Amount : 3000</span><br><span>Policy Info : Cancellation permitted 25 Hrs before scheduled departure<br>Cancellation Penalty : INR 3,000/- or basic fare whichever is lower</span><br><li><span>SEAT_CHARGEABLE : </span></li><span>Policy Period: 8760 to 0 hours before journey</span><br>"
}
]
}
Process Fare Rules Data
Fare Rule Details inFareRules
API Response
FareRules
API ResponsefareRuleDetail
Node
fareRuleDetail
Node- The
fareRuleDetail
node in the FareRules API response contains the HTML content for the segment. - This data is always returned in HTML format.
🚀 Recommendation:
Since the API response provides HTML-formatted fare rules, the best approach is to directly render the HTML content in the frontend for a standard display.
API Reference
Updated 20 days ago