{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/awardsecrets-com/json-schema/awardsecrets-com-points-response-schema.json",
  "title": "PointsResponse",
  "x-generated": "2026-12-02",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/awardsecrets-com-openapi.yml#/components/schemas/PointsResponse",
  "type": "object",
  "properties": {
    "status": {
      "type": "string",
      "enum": [
        "ok"
      ]
    },
    "trace_id": {
      "type": "string"
    },
    "quota_remaining": {
      "type": "integer"
    },
    "operation": {
      "type": "string"
    },
    "query": {
      "type": "object"
    },
    "result": {
      "description": "best_path: BestPathResult; answer: AnswerResult; sweet_spots: SweetSpotsResult; other operations return their own result object.",
      "anyOf": [
        {
          "$ref": "#/$defs/BestPathResult"
        },
        {
          "$ref": "#/$defs/AnswerResult"
        },
        {
          "$ref": "#/$defs/SweetSpotsResult"
        },
        {
          "type": "object"
        }
      ]
    },
    "charged": {
      "type": "boolean",
      "description": "answer only: false when the query was given back (needs_clarification)."
    }
  },
  "$defs": {
    "AnswerResult": {
      "type": "object",
      "properties": {
        "answer_status": {
          "type": "string",
          "enum": [
            "ok",
            "cabin_not_priced",
            "needs_clarification",
            "off_topic"
          ],
          "description": "ok: priced in the cabin asked for. cabin_not_priced: we don't price that cabin (premium economy); options are ECONOMY, offered as an alternative. needs_clarification / off_topic: answer is a question or a one-line reply. Only ok is charged."
        },
        "answer": {
          "type": "string",
          "description": "Ready-to-show markdown."
        },
        "availability_checked": {
          "type": "boolean",
          "const": false,
          "description": "Always false: award-chart prices, not a live seat check."
        },
        "requested_cabin": {
          "type": [
            "string",
            "null"
          ]
        },
        "priced_cabin": {
          "type": [
            "string",
            "null"
          ]
        },
        "cabin_note": {
          "type": [
            "string",
            "null"
          ]
        },
        "ranking": {
          "type": "string"
        },
        "fields": {
          "type": "object",
          "description": "How the question was read (airlines, origin, destination, cabin, points_held...)."
        },
        "points_assumed": {
          "type": [
            "array",
            "null"
          ],
          "items": {
            "type": "string"
          }
        },
        "options": {
          "type": "array",
          "items": {
            "type": "object",
            "description": "The answer for one airline the traveller could fly.",
            "properties": {
              "airline": {
                "type": "string"
              },
              "airline_name": {
                "type": "string"
              },
              "origin": {
                "type": "string"
              },
              "destination": {
                "type": "string"
              },
              "cabin": {
                "type": "string",
                "description": "The cabin asked for."
              },
              "priced_cabin": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "The cabin the miles are for. Differs from cabin when we don't price the cabin asked for; null when the airline has no such cabin (Scoot has no business or first class)."
              },
              "best": {
                "oneOf": [
                  {
                    "type": "object",
                    "description": "One way to book: a loyalty programme and what it costs in its miles.",
                    "properties": {
                      "programme": {
                        "type": "string"
                      },
                      "programme_name": {
                        "type": "string"
                      },
                      "miles": {
                        "type": [
                          "integer",
                          "null"
                        ]
                      },
                      "miles_one_way": {
                        "type": [
                          "integer",
                          "null"
                        ]
                      },
                      "round_trip": {
                        "type": "boolean"
                      },
                      "price_type": {
                        "type": [
                          "string",
                          "null"
                        ]
                      },
                      "peak_miles": {
                        "type": [
                          "integer",
                          "null"
                        ]
                      },
                      "season_miles": {
                        "type": [
                          "object",
                          "null"
                        ]
                      },
                      "price_state": {
                        "type": [
                          "string",
                          "null"
                        ],
                        "enum": [
                          "fixed_chart",
                          "published_starting_price",
                          "off_peak",
                          "seasonal",
                          null
                        ],
                        "description": "What kind of number miles is. Only fixed_chart is the chart's price for any date; never present a starting or off-peak price as a quote."
                      },
                      "transfer_amounts_at": {
                        "type": [
                          "string",
                          "null"
                        ],
                        "description": "Which price the transfer amounts are worked out on, when not the only one."
                      },
                      "chart_as_of": {
                        "type": [
                          "string",
                          "null"
                        ],
                        "description": "YYYY-MM-DD: the date we hold for this programme's chart: the date it took effect, or the date we read it from the programme's own pages."
                      },
                      "surcharge_level": {
                        "type": [
                          "string",
                          "null"
                        ]
                      },
                      "surcharge_usd_approx": {
                        "type": [
                          "number",
                          "null"
                        ]
                      },
                      "pricing_model": {
                        "type": [
                          "string",
                          "null"
                        ]
                      },
                      "book_online": {
                        "type": "boolean"
                      },
                      "reachable_with_your_points": {
                        "type": "boolean"
                      },
                      "transfers": {
                        "type": "array",
                        "items": {
                          "type": "object",
                          "properties": {
                            "from": {
                              "type": "string"
                            },
                            "from_name": {
                              "type": "string"
                            },
                            "kind": {
                              "type": "string",
                              "enum": [
                                "card_transfer",
                                "own_programme",
                                "linked_account_move"
                              ],
                              "description": "linked_account_move: Avios moved between the traveller's own linked accounts (British Airways, Iberia, Aer Lingus, Qatar, Finnair); conditional, see condition."
                            },
                            "condition": {
                              "type": [
                                "string",
                                "null"
                              ],
                              "description": "When the path only works under a condition (linked accounts)."
                            },
                            "ratio": {
                              "type": [
                                "string",
                                "null"
                              ]
                            },
                            "transfer_time": {
                              "type": [
                                "string",
                                "null"
                              ]
                            },
                            "points_needed": {
                              "type": [
                                "integer",
                                "null"
                              ]
                            },
                            "bonus_pct": {
                              "type": [
                                "number",
                                "null"
                              ]
                            },
                            "bonus_ends": {
                              "type": [
                                "string",
                                "null"
                              ],
                              "description": "YYYY-MM-DD; the bonus ends then."
                            }
                          },
                          "required": [
                            "from",
                            "kind"
                          ]
                        },
                        "description": "How the traveller's own points reach it: points already in a programme first, then card transfers."
                      },
                      "how_to_reach": {
                        "type": "string"
                      },
                      "caveats": {
                        "type": "array",
                        "items": {
                          "type": "string"
                        }
                      },
                      "where_to_book": {
                        "type": [
                          "string",
                          "null"
                        ]
                      }
                    },
                    "required": [
                      "programme",
                      "programme_name"
                    ]
                  },
                  {
                    "type": "null"
                  }
                ],
                "description": "The best way: fewest points once taxes and surcharges count."
              },
              "others": {
                "type": "array",
                "items": {
                  "type": "object",
                  "description": "One way to book: a loyalty programme and what it costs in its miles.",
                  "properties": {
                    "programme": {
                      "type": "string"
                    },
                    "programme_name": {
                      "type": "string"
                    },
                    "miles": {
                      "type": [
                        "integer",
                        "null"
                      ]
                    },
                    "miles_one_way": {
                      "type": [
                        "integer",
                        "null"
                      ]
                    },
                    "round_trip": {
                      "type": "boolean"
                    },
                    "price_type": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "peak_miles": {
                      "type": [
                        "integer",
                        "null"
                      ]
                    },
                    "season_miles": {
                      "type": [
                        "object",
                        "null"
                      ]
                    },
                    "price_state": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "enum": [
                        "fixed_chart",
                        "published_starting_price",
                        "off_peak",
                        "seasonal",
                        null
                      ],
                      "description": "What kind of number miles is. Only fixed_chart is the chart's price for any date; never present a starting or off-peak price as a quote."
                    },
                    "transfer_amounts_at": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "description": "Which price the transfer amounts are worked out on, when not the only one."
                    },
                    "chart_as_of": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "description": "YYYY-MM-DD: the date we hold for this programme's chart: the date it took effect, or the date we read it from the programme's own pages."
                    },
                    "surcharge_level": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "surcharge_usd_approx": {
                      "type": [
                        "number",
                        "null"
                      ]
                    },
                    "pricing_model": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "book_online": {
                      "type": "boolean"
                    },
                    "reachable_with_your_points": {
                      "type": "boolean"
                    },
                    "transfers": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "from": {
                            "type": "string"
                          },
                          "from_name": {
                            "type": "string"
                          },
                          "kind": {
                            "type": "string",
                            "enum": [
                              "card_transfer",
                              "own_programme",
                              "linked_account_move"
                            ],
                            "description": "linked_account_move: Avios moved between the traveller's own linked accounts (British Airways, Iberia, Aer Lingus, Qatar, Finnair); conditional, see condition."
                          },
                          "condition": {
                            "type": [
                              "string",
                              "null"
                            ],
                            "description": "When the path only works under a condition (linked accounts)."
                          },
                          "ratio": {
                            "type": [
                              "string",
                              "null"
                            ]
                          },
                          "transfer_time": {
                            "type": [
                              "string",
                              "null"
                            ]
                          },
                          "points_needed": {
                            "type": [
                              "integer",
                              "null"
                            ]
                          },
                          "bonus_pct": {
                            "type": [
                              "number",
                              "null"
                            ]
                          },
                          "bonus_ends": {
                            "type": [
                              "string",
                              "null"
                            ],
                            "description": "YYYY-MM-DD; the bonus ends then."
                          }
                        },
                        "required": [
                          "from",
                          "kind"
                        ]
                      },
                      "description": "How the traveller's own points reach it: points already in a programme first, then card transfers."
                    },
                    "how_to_reach": {
                      "type": "string"
                    },
                    "caveats": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    },
                    "where_to_book": {
                      "type": [
                        "string",
                        "null"
                      ]
                    }
                  },
                  "required": [
                    "programme",
                    "programme_name"
                  ]
                }
              },
              "priced_by_date": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "programme": {
                      "type": "string"
                    },
                    "programme_name": {
                      "type": "string"
                    },
                    "where_to_book": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "note": {
                      "type": [
                        "string",
                        "null"
                      ]
                    }
                  },
                  "required": [
                    "programme"
                  ]
                },
                "description": "Programmes that price this flight by date: no fixed price."
              },
              "listed_not_ranked": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "programme": {
                      "type": "string"
                    },
                    "programme_name": {
                      "type": "string"
                    },
                    "where_to_book": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "note": {
                      "type": [
                        "string",
                        "null"
                      ]
                    }
                  },
                  "required": [
                    "programme"
                  ]
                },
                "description": "Programmes that book it but whose price we don't stand behind (e.g. British Airways Avios)."
              },
              "where_to_check": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "why_best": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "restriction_note": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "note": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "error": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "connection": {
                "type": "string",
                "enum": [
                  "one_airline",
                  "change_of_airline",
                  "by_date",
                  "separate_awards"
                ],
                "description": "Only on a trip with a connection (no airline flies the route nonstop). one_airline: one airline all the way; change_of_airline: several airlines on ONE award (best is that award); by_date: only date-priced programmes book it; separate_awards: no programme books all of them on one award, so each flight is its own award (see separate)."
              },
              "airlines": {
                "type": "array",
                "items": {
                  "type": "string"
                },
                "description": "The airline of each flight, in order (with connection)."
              },
              "via": {
                "type": "array",
                "items": {
                  "type": "string"
                },
                "description": "The connecting airport(s)."
              },
              "flights": {
                "type": "array",
                "items": {
                  "type": "object"
                },
                "description": "Each flight: from, to, airline, airline_name."
              },
              "separate": {
                "type": "array",
                "items": {
                  "type": "object"
                },
                "description": "separate_awards only: each flight (from, to, airline) and its own best way (best)."
              },
              "total_miles_one_way": {
                "type": "integer",
                "description": "separate_awards only: the flights' best ways added up."
              },
              "seasonal": {
                "type": "boolean",
                "description": "A flight of this trip is seasonal."
              },
              "route_source": {
                "type": "string",
                "description": "Where the trip's flights come from: the airports' route listings (Wikipedia, secondary)."
              }
            },
            "required": [
              "airline",
              "cabin",
              "priced_cabin"
            ]
          }
        },
        "count_priced": {
          "type": "integer"
        },
        "basis": {
          "type": "string"
        }
      },
      "required": [
        "answer_status",
        "answer",
        "availability_checked",
        "requested_cabin",
        "priced_cabin",
        "options"
      ]
    },
    "BestPathResult": {
      "type": "object",
      "description": "Result of best_path.",
      "properties": {
        "priced": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/PriceOption"
          },
          "description": "Best value first: fewest points once taxes and surcharges are counted (1.5 cents a point)."
        },
        "unpriced": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/PriceOption"
          }
        },
        "stale_count": {
          "type": "integer"
        },
        "per_flight_note": {
          "type": [
            "string",
            "null"
          ]
        },
        "as_of": {
          "type": [
            "string",
            "null"
          ]
        },
        "valuation_cpp": {
          "type": [
            "number",
            "null"
          ],
          "description": "The value per point used for ranking (see PriceOption.valuation_cpp)."
        },
        "count_unpriced_dynamic": {
          "type": "integer",
          "description": "How many unpriced options are unpriced because the programme prices dynamically."
        },
        "count_unpriced_no_data": {
          "type": "integer",
          "description": "How many unpriced options have no published price for this flight."
        }
      }
    },
    "PriceOption": {
      "type": "object",
      "description": "One programme's price for the flight. Unpriced options carry unpriced_reason instead of miles.",
      "properties": {
        "programme": {
          "type": "string",
          "description": "Stable programme code. Codes never change; display names may, and new programmes are added over time, so treat this as an open set (no enum): x-programme-codes lists the codes current at this version.",
          "x-programme-codes": [
            {
              "code": "AADVANTAGE",
              "name": "American Airlines AAdvantage"
            },
            {
              "code": "AEROPLAN",
              "name": "Air Canada Aeroplan"
            },
            {
              "code": "AER_LINGUS_AERCLUB",
              "name": "Aer Lingus AerClub (Avios)"
            },
            {
              "code": "ALASKA",
              "name": "Alaska Atmos Rewards"
            },
            {
              "code": "ANA_MILEAGE_CLUB",
              "name": "ANA Mileage Club"
            },
            {
              "code": "ASIA_MILES",
              "name": "Cathay Pacific Asia Miles"
            },
            {
              "code": "AVIOS",
              "name": "British Airways Club (Avios)"
            },
            {
              "code": "CHINA_SOUTHERN_SKY_PEARL",
              "name": "China Southern Sky Pearl Club"
            },
            {
              "code": "ETIHAD_GUEST",
              "name": "Etihad Guest"
            },
            {
              "code": "EVA_INFINITY",
              "name": "EVA Air Infinity MileageLands"
            },
            {
              "code": "FINNAIR_PLUS",
              "name": "Finnair Plus (Avios)"
            },
            {
              "code": "FLYING_BLUE",
              "name": "Air France-KLM Flying Blue"
            },
            {
              "code": "IBERIA_CLUB",
              "name": "Iberia Club (Avios)"
            },
            {
              "code": "JAL_MILEAGE_BANK",
              "name": "JAL Mileage Bank"
            },
            {
              "code": "KOREAN_SKYPASS",
              "name": "Korean Air SKYPASS"
            },
            {
              "code": "KRISFLYER",
              "name": "Singapore Airlines KrisFlyer"
            },
            {
              "code": "LIFEMILES",
              "name": "Avianca LifeMiles"
            },
            {
              "code": "MILEAGE_PLUS",
              "name": "United MileagePlus"
            },
            {
              "code": "MILES_AND_SMILES",
              "name": "Turkish Airlines Miles&Smiles"
            },
            {
              "code": "QANTAS_FF",
              "name": "Qantas Frequent Flyer"
            },
            {
              "code": "QATAR_PRIVILEGE_CLUB",
              "name": "Qatar Airways Privilege Club (Avios)"
            },
            {
              "code": "SKYMILES",
              "name": "Delta SkyMiles"
            },
            {
              "code": "SKYWARDS",
              "name": "Emirates Skywards"
            },
            {
              "code": "THAI_ROYAL_ORCHID_PLUS",
              "name": "Thai Airways Royal Orchid Plus"
            },
            {
              "code": "VELOCITY",
              "name": "Virgin Australia Velocity"
            },
            {
              "code": "VIETNAM_LOTUSMILES",
              "name": "Vietnam Airlines Lotusmiles"
            },
            {
              "code": "VIRGIN_ATLANTIC",
              "name": "Virgin Atlantic Flying Club"
            },
            {
              "code": "SOUTHWEST_RR",
              "name": "Southwest Rapid Rewards"
            },
            {
              "code": "GARUDA_MILES",
              "name": "Garuda Indonesia GarudaMiles"
            },
            {
              "code": "MABUHAY_MILES",
              "name": "Philippine Airlines Mabuhay Miles"
            },
            {
              "code": "EUROBONUS",
              "name": "SAS EuroBonus"
            },
            {
              "code": "MAHARAJA_CLUB",
              "name": "Air India Maharaja Club"
            },
            {
              "code": "SHEBAMILES",
              "name": "Ethiopian ShebaMiles"
            },
            {
              "code": "EGRET_CLUB",
              "name": "Xiamen Airlines Egret Club"
            },
            {
              "code": "NOMAD_CLUB",
              "name": "Air Astana Nomad Club"
            },
            {
              "code": "AIRASIA_REWARDS",
              "name": "AirAsia Rewards"
            },
            {
              "code": "SKYJOY",
              "name": "VietJet SkyJoy"
            },
            {
              "code": "AIR_ARABIA_REWARDS",
              "name": "Air Arabia AirRewards"
            },
            {
              "code": "ENRICH",
              "name": "Malaysia Airlines Enrich"
            },
            {
              "code": "MILES_AND_MORE",
              "name": "Lufthansa Miles & More"
            },
            {
              "code": "CONNECTMILES",
              "name": "Copa ConnectMiles"
            },
            {
              "code": "JETBLUE_TRUEBLUE",
              "name": "JetBlue TrueBlue"
            },
            {
              "code": "AEROMEXICO_REWARDS",
              "name": "Aeromexico Rewards"
            }
          ]
        },
        "programme_name": {
          "type": "string"
        },
        "miles": {
          "type": [
            "integer",
            "null"
          ],
          "description": "Points required, one way, per person. For off-peak/peak charts, the off-peak price."
        },
        "price_type": {
          "type": "string",
          "enum": [
            "fixed",
            "starting_at"
          ],
          "description": "fixed: a published chart price. starting_at: the programme publishes minimums; show as 'from', the actual price can be higher. Present on unpriced options for consistency only: meaningless there."
        },
        "pricing_basis": {
          "type": [
            "string",
            "null"
          ],
          "enum": [
            "per_trip",
            "per_flight",
            "per_flight_sum",
            "journey",
            "two_awards",
            "mixed_journey",
            "mixed_per_flight_sum",
            null
          ],
          "description": "per_trip: whole one-way trip priced once on its total distance. per_flight / per_flight_sum: each flight priced separately (see legs). journey: by region or zone, origin to destination. two_awards: the journey is priced as two separate awards (e.g. AAdvantage when it has two long-haul flights). mixed_journey / mixed_per_flight_sum: a journey on more than one partner airline, priced by region or as the sum of its flights."
        },
        "legs": {
          "type": [
            "array",
            "null"
          ],
          "items": {
            "type": "object",
            "properties": {
              "from": {
                "type": "string"
              },
              "to": {
                "type": "string"
              },
              "miles": {
                "type": "integer"
              }
            }
          },
          "description": "Per-flight prices (from, to, miles) when a connection is priced flight by flight (pricing_basis per_flight / per_flight_sum). Null for a single flight or a trip priced as a whole."
        },
        "peak_miles": {
          "type": [
            "integer",
            "null"
          ],
          "description": "Peak-date price where the programme publishes off-peak and peak prices."
        },
        "peak_note": {
          "type": [
            "string",
            "null"
          ],
          "description": "Explains peak pricing, including when a peak price is not confirmed."
        },
        "price_note": {
          "type": [
            "string",
            "null"
          ]
        },
        "stale": {
          "type": "boolean",
          "description": "True when the chart behind the price is pending re-verification."
        },
        "stale_note": {
          "type": [
            "string",
            "null"
          ]
        },
        "surcharge_level": {
          "type": "string",
          "enum": [
            "low",
            "moderate",
            "high"
          ]
        },
        "surcharge_usd_approx": {
          "type": [
            "number",
            "null"
          ],
          "description": "Rough estimate of carrier-imposed surcharges."
        },
        "bookable_online": {
          "type": "boolean"
        },
        "phone_only_note": {
          "type": [
            "string",
            "null"
          ]
        },
        "notes": {
          "type": [
            "string",
            "null"
          ],
          "description": "Programme-specific conditions."
        },
        "as_of": {
          "type": [
            "string",
            "null"
          ],
          "format": "date",
          "description": "Date of the chart the price comes from."
        },
        "reachable_from": {
          "type": "array",
          "description": "Only when currencies_held is given: the transfer paths from the currencies you hold into this programme, best ratio first.",
          "items": {
            "type": "object",
            "properties": {
              "currency": {
                "type": "string",
                "description": "Points currency code, e.g. AMEX_MR, CHASE_UR, CITI_TY, CAPITAL_ONE, BILT."
              },
              "ratio": {
                "type": "array",
                "items": {
                  "type": "integer"
                },
                "minItems": 2,
                "maxItems": 2,
                "description": "[from, to]: e.g. [1000, 800] means 1,000 points become 800 miles. A bonus, if active, is already applied."
              },
              "points_needed": {
                "type": "integer",
                "description": "Points of this currency to transfer for the award: the exact amount rounded UP to whole transfer blocks (most cards transfer in blocks of 1,000; some in 500 or 250), and at least the transfer minimum. So a 27,500-mile award at 1:1 needs 28,000."
              },
              "transfer_time": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "Typical transfer time, e.g. instant."
              },
              "bonus": {
                "type": [
                  "object",
                  "null"
                ],
                "description": "Active transfer bonus, or null."
              }
            }
          }
        },
        "unpriced_reason": {
          "type": "string",
          "enum": [
            "dynamic_pricing",
            "no_chart_entry"
          ],
          "description": "Unpriced options only. dynamic_pricing: no published chart. no_chart_entry: a chart exists, but this route or origin is not held yet. Never estimated."
        },
        "unpriced_note": {
          "type": "string"
        },
        "round_trip": {
          "type": "boolean",
          "description": "True when miles is a ROUND-TRIP price (the programme sells no one-way award on that route, e.g. ANA). Ranked at half per direction."
        },
        "season": {
          "type": [
            "string",
            "null"
          ],
          "enum": [
            "low",
            "regular",
            "high",
            null
          ],
          "description": "Seasonal charts: the season for the date given; null without a date."
        },
        "season_miles": {
          "type": [
            "object",
            "null"
          ],
          "properties": {
            "low": {
              "type": "integer"
            },
            "regular": {
              "type": "integer"
            },
            "high": {
              "type": "integer"
            }
          },
          "description": "Seasonal charts: all three season prices."
        },
        "confidence": {
          "type": "string",
          "enum": [
            "chart",
            "estimate"
          ],
          "description": "chart: miles come from a published chart or calculator; estimate: no fixed price."
        },
        "pricing_model": {
          "type": [
            "string",
            "null"
          ],
          "enum": [
            "chart",
            "hybrid",
            "dynamic",
            null
          ],
          "description": "How the programme prices awards: chart (published chart), hybrid (chart for some flights, dynamic for others), dynamic (no fixed price; such options are unpriced)."
        },
        "surcharge_confidence": {
          "type": [
            "string",
            "null"
          ],
          "description": "How sure surcharge_level / surcharge_usd_approx are; currently always estimate."
        },
        "surcharge_basis": {
          "type": [
            "string",
            "null"
          ],
          "description": "What the surcharge estimate assumes (e.g. long-haul business class); actual charges vary by routing."
        },
        "valuation_cpp": {
          "type": [
            "number",
            "null"
          ],
          "description": "Value per point (in US dollars, e.g. 0.015 = 1.5 cents) used to rank options, combining miles and surcharges. Defaults to 0.015; pass cpp to change it."
        }
      }
    },
    "SweetSpotRow": {
      "type": "object",
      "properties": {
        "airline": {
          "type": "string"
        },
        "airline_name": {
          "type": "string"
        },
        "programme": {
          "type": "string"
        },
        "programme_name": {
          "type": "string"
        },
        "price": {
          "type": "string",
          "description": "As the chart states it (e.g. '40,500 off-peak / 59,000 peak', 'from 100,000 round trip')."
        },
        "miles_per_direction": {
          "type": "integer",
          "description": "Miles per person each way (half the round trip where the chart is round trip only). The ranking key."
        },
        "notes": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "chart_as_of": {
          "type": [
            "string",
            "null"
          ],
          "description": "When we last checked the programme's chart (YYYY-MM-DD)."
        },
        "reached_with": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "Only with points_held: the codes you hold that transfer to (or are) this programme."
        }
      }
    },
    "SweetSpotsResult": {
      "type": "object",
      "description": "Result of sweet_spots (28 Nov 2026).",
      "properties": {
        "availability_checked": {
          "type": "boolean",
          "enum": [
            false
          ]
        },
        "as_of": {
          "type": [
            "string",
            "null"
          ],
          "description": "When the list was last priced."
        },
        "count": {
          "type": "integer"
        },
        "total_matching": {
          "type": "integer"
        },
        "ranking": {
          "type": "string"
        },
        "note": {
          "type": "string"
        },
        "found": {
          "type": "boolean"
        },
        "sweet_spots": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "slug": {
                "type": "string"
              },
              "title": {
                "type": "string"
              },
              "url": {
                "type": "string",
                "description": "The route's page on awardsecrets.com."
              },
              "cabin": {
                "type": "string"
              },
              "airlines": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              },
              "origins": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              },
              "destinations": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              },
              "destination_regions": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              },
              "summary": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "best": {
                "$ref": "#/$defs/SweetSpotRow"
              },
              "best_with_your_points": {
                "anyOf": [
                  {
                    "$ref": "#/$defs/SweetSpotRow"
                  },
                  {
                    "type": "null"
                  }
                ],
                "description": "Only with points_held."
              },
              "programmes": {
                "type": "array",
                "items": {
                  "$ref": "#/$defs/SweetSpotRow"
                }
              },
              "changed_at": {
                "type": [
                  "string",
                  "null"
                ]
              }
            }
          }
        }
      }
    }
  }
}