Amadeus · Schema

FareRules

FareRules schema from Flight Choice Prediction

TravelTravel TechnologyReservationsFlightsHotelsAirlinesHospitalityTours and ActivitiesCars and TransfersDestination ContentItinerary ManagementTrip PlanningArtificial IntelligenceMarket Insights

Properties

Name Type Description
currency string The currency of the penalties
rules array
View JSON Schema on GitHub

JSON Schema

flight-choice-prediction-fare-rules-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/amadeus/refs/heads/main/json-schema/flight-choice-prediction-fare-rules-schema.json",
  "title": "FareRules",
  "description": "FareRules schema from Flight Choice Prediction",
  "type": "object",
  "properties": {
    "currency": {
      "type": "string",
      "description": "The currency of the penalties",
      "example": "EUR"
    },
    "rules": {
      "type": "array",
      "minItems": 1,
      "items": {
        "properties": {
          "category": {
            "type": "string",
            "description": "This defines what type of modification is concerned in this rule.",
            "enum": [
              "REFUND",
              "EXCHANGE",
              "REVALIDATION",
              "REISSUE",
              "REBOOK",
              "CANCELLATION"
            ],
            "example": "EXCHANGE"
          },
          "circumstances": {
            "type": "string",
            "example": "string-value"
          },
          "notApplicable": {
            "type": "boolean",
            "example": true
          },
          "maxPenaltyAmount": {
            "type": "string",
            "example": "199.50"
          },
          "descriptions": {
            "type": "array",
            "items": {
              "title": "Description",
              "properties": {
                "descriptionType": {
                  "type": "string",
                  "example": "Sample description text."
                },
                "text": {
                  "type": "string",
                  "example": "string-value"
                }
              }
            }
          }
        }
      }
    }
  }
}