- Fare Rules for Existing Reservation (after Booking)
Fare rules are the conditions and restrictions that apply to any booking based on its fare type. These determine the price of the fare. Generally, less expensive fares have more restrictions and more expensive fares have fewer restrictions. Fare rules can include blackout dates, advanced reservation requirements, minimum and maximum stay requirements, and cancellation and change penalties.
Send only if requesting structured fare rules. If fareRuleType=Structured and fareRuleCategories is not sent, all structured fare rules are returned. Supported values: AdvanceReservationTicketing (GDS only), MinimumStay (GDS only), MaximumStay (GDS only), Stopovers (GDS only), Penalties.
The type of fare rules requested. Supported values: ShortText, LongText (GDS only), Structured. (For NDC, structured fare rules are supported only for Penalties. A warning message returned if no penalties are applicable to the fare).
- Mock serverhttps://developer.travelport.com/_mock/apis/flights/air/farerule/farerules/fromreservation
- https://api.pp.travelport.net/11https://api.pp.travelport.net/11/air/farerule/farerules/fromreservation
- https://api.travelport.net/11https://api.travelport.net/11/air/farerule/farerules/fromreservation
curl -i -X GET \
'https://developer.travelport.com/_mock/apis/flights/air/farerule/farerules/fromreservation?reservationIdentifier=49f58f5f-c443-43b4-9f5d-be405fd00a01&offerIDs=%5B%22offer_1%22%5D&productIDs=%5B%22product_1%22%5D&flightIDs=%5B%22flight_1%22%5D&fareRuleCategories=%5B%22Penalties%22%5D&fareRuleType=Structured' \
-H 'Authorization: Bearer <YOUR_JWT_HERE>' \
-H 'TVP-PCC-Core: DU7_1G' \
-H 'TraceId: TraceID_123456789' \
-H 'XAUTH_TRAVELPORT_ACCESSGROUP: 19Y88702-C27A-4E5D-829A-89D7016688B1' \
-H 'travelportPlusSessionIdentifier: 49f58f5f-c443-43b4-9f5d-be405fd00a01'{ "FareRuleListResponse": { "@type": "FareRuleListResponse", "FareRule": [ { … } ], "transactionId": "6570ed7b-89fe-4334-9c78-af282a977ba6", "traceId": "c009a53c-48f6-4084-b7b6-3043fa9fec67", "Result": { "@type": "Result", "status": "Complete", "Error": [ … ], "Warning": [ … ] }, "Identifier": { "value": "A0656EFF-FAF4-456F-B061-0161008D7C4E", "authority": "TVPT" }, "ReferenceList": [ { … } ] } }