v1

latestOpenAPI 3.0.02026-08-061029011.1 MB
Pricing and Fare Rules

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.

get/air/farerule/farerules/fromreservation

Query parameters

reservationIdentifierstring required
Example:49f58f5f-c443-43b4-9f5d-be405fd00a01

Reservation locator code.

offerIDsstring[]

Deprecated. Not supported in rules from reservation.

[
  "[\"offer_1\"]"
]
productIDsstring[]

Deprecated. Not supported in rules from reservation.

[
  "[\"product_1\"]"
]
flightIDsstring[]

Deprecated. Not supported in rules from reservation.

[
  "[\"flight_1\"]"
]
fareRuleCategoriesstring[]

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.

[
  "[\"Penalties\"]"
]
fareRuleTypestring required
Example:Structured

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).

Headers

travelportPlusSessionIdentifierstring
Example:49f58f5f-c443-43b4-9f5d-be405fd00a01

travelportPlusSessionIdentifier used to maintain an established agency session

TraceIdstring
Example:TraceID_123456789

Identifier used to correlate Air API invocations across a multi-call business flows.

XAUTH_TRAVELPORT_ACCESSGROUPstring
Example:19Y88702-C27A-4E5D-829A-89D7016688B1

Identifies the Travelport access group with which the caller is associated

TVP-PCC-Corestring
Example:DU7_1G

Allows user to pass PCC instead of Access Group ID

Response

OK - Successful Response - 200

Example response

{
  "FareRuleListResponse": {
    "@type": "FareRuleListResponse",
    "FareRule": [
      {
        "@type": "FareRuleText",
        "Identifier": {
          "value": "A0656EFF-FAF4-456F-B061-0161008D7C4E",
          "authority": "TVPT"
        },
        "ruleNumber": "34",
        "tariffNumber": "56",
        "Flight": [
          {
            "@type": "FlightDetail",
            "id": "126",
            "FlightRef": "s1",
            "Identifier": {
              "value": "A0656EFF-FAF4-456F-B061-0161008D7C4E",
              "authority": "TVPT"
            }
          }
        ]
      }
    ],
    "transactionId": "6570ed7b-89fe-4334-9c78-af282a977ba6",
    "traceId": "c009a53c-48f6-4084-b7b6-3043fa9fec67",
    "Result": {
      "@type": "Result",
      "status": "Complete",
      "Error": [
        {
          "@type": "ErrorDetail",
          "StatusCode": 200,
          "Message": "No flights found.",
          "NameValuePair": [
            {
              "value": "Sunday",
              "id": "6",
              "name": "Day1"
            }
          ]
        }
      ],
      "Warning": [
        {
          "@type": "WarningDetail",
          "StatusCode": 200,
          "Message": "Customer Loyalty could not be applied.",
          "NameValuePair": [
            {
              "value": "Sunday",
              "id": "6",
              "name": "Day1"
            }
          ]
        }
      ]
    },
    "Identifier": {
      "value": "A0656EFF-FAF4-456F-B061-0161008D7C4E",
      "authority": "TVPT"
    },
    "ReferenceList": [
      {
        "@type": "ReferenceListFlight"
      }
    ]
  }
}