{
 "openapi": "3.1.0",
 "info": {
  "title": "Deep Almanac: Australian term deposit rates",
  "version": "1.0.0",
  "summary": "Every Australian bank's term deposit rates, normalised from each bank's own published product data and refreshed daily, with the terms that data leaves out read from the bank's own terms and pages.",
  "description": "Static JSON files regenerated once a day from every data holder's Consumer Data Right Product Reference Data API. Each record carries the bank's last-updated time and a link to a verbatim snapshot of the bank's product record it was built from; the snapshot's snapshot_at says when that version was first fetched. Only index.json carries the generation and fetch times (generated_at, fetched_at, data_as_of): every other file changes only when the underlying data changes. Human-readable pages: https://deepalmanac.com/au/finance/term-deposits/ (every rate), https://deepalmanac.com/au/finance/term-deposits/best/ (best by term), https://deepalmanac.com/au/finance/term-deposits/banks/ (best at each bank) and one page per bank at https://deepalmanac.com/au/finance/banks/<brand_slug>/ (its term deposits under #term-deposits; the slugs are listed under brands_dir in index.json). Facts the product data leaves out come from each bank's own terms and pages: the rollover grace period, notice periods, early withdrawal, where and how interest is paid, and what the bank asks for about identity, tax file numbers and non-resident withholding. Each of those carries an Evidence object giving the URL read, the HTTP status, a SHA-256 of the text read, when that exact text was first seen, and the id of the rule that matched (resolvable at https://deepalmanac.com/au/finance/term-deposits/v1/rules.json). Every such sentence is re-read against its source document on each daily run, and one no longer found there is withheld from these files rather than left in place, so a quoted fact you can see here was confirmed on the last run. A null grace_period is not an absence: grace_period_check beside it distinguishes terms that state no grace period (a finding, with the document in its evidence) from terms that could not be read. No authentication, no rate limits beyond ordinary CDN behaviour; CORS is open. Rates change without notice; this is reference data, not financial advice.",
  "termsOfService": "https://deepalmanac.com/terms",
  "contact": {
   "name": "Deep Almanac",
   "url": "https://deepalmanac.com"
  },
  "license": {
   "name": "Deep Almanac's own work CC BY 4.0; source data under its own terms, listed in licences in each index.json",
   "url": "https://deepalmanac.com/terms#data-licences"
  }
 },
 "servers": [
  {
   "url": "https://deepalmanac.com"
  }
 ],
 "security": [],
 "tags": [
  {
   "name": "term-deposits",
   "description": "Australian term deposit rates (dataset au/finance/term-deposits)."
  }
 ],
 "paths": {
  "/au/finance/term-deposits/v1/index.json": {
   "get": {
    "tags": [
     "term-deposits"
    ],
    "operationId": "getTermDepositIndex",
    "summary": "Dataset index",
    "description": "Lists the dataset files, every per-bank file with its page URL, and how the source snapshots of each bank's product records are laid out.",
    "responses": {
     "200": {
      "description": "The dataset index.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/DatasetIndex"
        }
       }
      }
     },
     "404": {
      "description": "The file has not been published yet or the path is wrong; static hosting returns the site's 404 page (HTML)."
     }
    }
   }
  },
  "/au/finance/term-deposits/v1/questions.json": {
   "get": {
    "tags": [
     "term-deposits"
    ],
    "operationId": "getTermDepositQuestions",
    "summary": "What to ask a reader before answering a rate question",
    "description": "The questions this dataset answers, and for each one the inputs to collect first. ask_the_reader_first is what selects the data: the term, the amount, who is depositing, and how the interest needs to be paid. The last is the one most often left out and the one that moves the answer most - nearly every headline rate pays all the interest at maturity, and needing it sooner costs more than the gap between the best and worst bank. also_ask is context this dataset does not hold (tax file number, residency, marginal rate, when the money is needed, whether the deposit will be watched at rollover) which changes what the reader should actually do.",
    "responses": {
     "200": {
      "description": "The question guide.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/TermDepositQuestionGuide"
        }
       }
      }
     },
     "404": {
      "description": "The file has not been published yet or the path is wrong; static hosting returns the site's 404 page (HTML)."
     }
    }
   }
  },
  "/au/finance/term-deposits/v1/answers.json": {
   "get": {
    "tags": [
     "term-deposits"
    ],
    "operationId": "getTermDepositAnswers",
    "summary": "Questions the dataset answers outright",
    "description": "Questions whose answer does not depend on the reader, answered, with the evidence behind each and the sources the rules are quoted from.",
    "responses": {
     "200": {
      "description": "The answers.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/TermDepositAnswers"
        }
       }
      }
     },
     "404": {
      "description": "The file has not been published yet or the path is wrong; static hosting returns the site's 404 page (HTML)."
     }
    }
   }
  },
  "/au/finance/term-deposits/v1/by-payment.json": {
   "get": {
    "tags": [
     "term-deposits"
    ],
    "operationId": "getRatesByPaymentFrequency",
    "summary": "The best rate at each interest payment frequency, and the single best rate per bucket",
    "description": "best.json ranks every payment frequency together and the top of almost every bucket pays at maturity, so a reader who needs the interest as income is shown a rate they cannot take. best_rate[segment][deposit][term] is the single best advertised rate, the direct answer to 'what is the best term deposit rate'. best_by_frequency[segment][deposit][term][interest_paid] is the best entry paid that way. maturity_premium measures what needing interest before maturity costs across the whole market.",
    "responses": {
     "200": {
      "description": "Best rates by payment frequency.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/RatesByPayment"
        }
       }
      }
     },
     "404": {
      "description": "The file has not been published yet or the path is wrong; static hosting returns the site's 404 page (HTML)."
     }
    }
   }
  },
  "/au/finance/term-deposits/v1/by-payment/{segment}.json": {
   "get": {
    "tags": [
     "term-deposits"
    ],
    "operationId": "getRatesByPaymentFrequencyForSegment",
    "summary": "by-payment.json cut to one segment",
    "description": "best_rate[deposit][term] and best_by_frequency[deposit][term][interest_paid] for one segment, small enough to read whole. segment is personal, smsf or business.",
    "parameters": [
     {
      "name": "segment",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "enum": [
        "personal",
        "smsf",
        "business"
       ]
      }
     }
    ],
    "responses": {
     "200": {
      "description": "One segment's best rates by payment frequency.",
      "content": {
       "application/json": {
        "schema": {
         "type": "object"
        }
       }
      }
     },
     "404": {
      "description": "The file has not been published yet or the path is wrong; static hosting returns the site's 404 page (HTML)."
     }
    }
   }
  },
  "/au/finance/term-deposits/v1/best/{segment}/{deposit}/{term}.json": {
   "get": {
    "tags": [
     "term-deposits"
    ],
    "operationId": "getBestRatesForBucket",
    "summary": "Every bank ranked for one segment, reference deposit and term",
    "description": "One slice of best.json, about 100 kB (top/ has a compact top-10 sibling), for clients that cannot hold the whole file. rates is an array of BestSliceEntry ordered by rate, one entry per bank. Identical content to best.json's rankings[segment][deposit][term], without the segment and term_months fields, which the path already gives, plus best_rate_by_interest_paid: the best rate in this bucket at each payment frequency.",
    "parameters": [
     {
      "name": "segment",
      "in": "path",
      "required": true,
      "description": "Who is depositing.",
      "schema": {
       "type": "string",
       "enum": [
        "personal",
        "smsf",
        "business"
       ]
      }
     },
     {
      "name": "deposit",
      "in": "path",
      "required": true,
      "description": "Reference deposit in AUD.",
      "schema": {
       "type": "integer",
       "enum": [
        10000,
        50000,
        250000
       ]
      }
     },
     {
      "name": "term",
      "in": "path",
      "required": true,
      "description": "Term in months.",
      "schema": {
       "type": "integer",
       "enum": [
        1,
        2,
        3,
        4,
        5,
        6,
        7,
        8,
        9,
        10,
        11,
        12,
        18,
        24,
        36,
        48,
        60
       ]
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Rankings for one segment, deposit and term.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/BestRatesSlice"
        }
       }
      }
     },
     "404": {
      "description": "No such file. Static hosting returns the site's 404 page (HTML)."
     }
    }
   }
  },
  "/au/finance/term-deposits/v1/top/{segment}/{deposit}/{term}.json": {
   "get": {
    "tags": [
     "term-deposits"
    ],
    "operationId": "getTopRatesForBucket",
    "summary": "The top 10 banks for one segment, reference deposit and term, compact",
    "description": "The compact answer file: a few kB, so a fetch tool that truncates long responses reads all of it. top holds the first 10 entries of the same bucket's best/ slice, cut to the fields needed to quote each rate; banks_ranked is how many banks the full ranking holds and full_ranking links to it. Read questions.json first for what to ask the reader.",
    "parameters": [
     {
      "name": "segment",
      "in": "path",
      "required": true,
      "description": "Who is depositing.",
      "schema": {
       "type": "string",
       "enum": [
        "personal",
        "smsf",
        "business"
       ]
      }
     },
     {
      "name": "deposit",
      "in": "path",
      "required": true,
      "description": "Reference deposit in AUD.",
      "schema": {
       "type": "integer",
       "enum": [
        10000,
        50000,
        250000
       ]
      }
     },
     {
      "name": "term",
      "in": "path",
      "required": true,
      "description": "Term in months.",
      "schema": {
       "type": "integer",
       "enum": [
        1,
        2,
        3,
        4,
        5,
        6,
        7,
        8,
        9,
        10,
        11,
        12,
        18,
        24,
        36,
        48,
        60
       ]
      }
     }
    ],
    "responses": {
     "200": {
      "description": "The top entries for one segment, deposit and term.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/TopRatesSlice"
        }
       }
      }
     },
     "404": {
      "description": "No such file. Static hosting returns the site's 404 page (HTML)."
     }
    }
   }
  },
  "/v1/compare/term-deposits": {
   "get": {
    "tags": [
     "term-deposits"
    ],
    "operationId": "compareAtAmount",
    "summary": "The best rates at the reader's exact amount, as JSON",
    "description": "Ranks every bank's fixed rates at the exact amount given, by the same rule as best.json (one rate per bank, its highest, interest at maturity first on a tie), counting only rates whose balance tier and deposit limits include the amount. Replies 200 with JSON directly, not a redirect, and echoes what was asked under query. At 10000, 50000 or 250000 it gives the same ranking as best/<segment>/<deposit>/<term>.json. HEAD is answered too.",
    "parameters": [
     {
      "name": "amount",
      "in": "query",
      "required": true,
      "description": "Dollars to deposit, e.g. 100000 (100k is read too).",
      "schema": {
       "type": "string"
      }
     },
     {
      "name": "term",
      "in": "query",
      "required": true,
      "description": "Months; a term that is not published reads the nearest one (term_note says so). term_days is read too.",
      "schema": {
       "type": "string"
      }
     },
     {
      "name": "depositor",
      "in": "query",
      "required": false,
      "description": "personal (default), smsf or business; company, trust, partnership and sole trader read business.",
      "schema": {
       "type": "string"
      }
     },
     {
      "name": "interest",
      "in": "query",
      "required": false,
      "description": "Rank only rates paid this way. Without it each bank's highest rate is ranked however it is paid.",
      "schema": {
       "type": "string",
       "enum": [
        "at_maturity",
        "monthly",
        "quarterly",
        "half_yearly",
        "annually"
       ]
      }
     },
     {
      "name": "occupation",
      "in": "query",
      "required": false,
      "description": "include ranks products open only to people in certain occupations as well.",
      "schema": {
       "type": "string",
       "enum": [
        "include"
       ]
      }
     },
     {
      "name": "limit",
      "in": "query",
      "required": false,
      "description": "How many banks to return.",
      "schema": {
       "type": "integer",
       "minimum": 1,
       "maximum": 100,
       "default": 10
      }
     }
    ],
    "responses": {
     "200": {
      "description": "The ranking at the amount.",
      "content": {
       "application/json": {
        "schema": {
         "type": "object",
         "properties": {
          "query": {
           "type": "object",
           "description": "What was asked, as read: amount, term_months, depositor, interest, occupation_only_products, limit."
          },
          "term_note": {
           "type": "string",
           "description": "Present when the term asked for is not published and the nearest one was used."
          },
          "method": {
           "type": "string",
           "description": "exact_amount."
          },
          "generated_at": {
           "type": "string",
           "description": "When the rows behind this answer last changed."
          },
          "data_as_of": {
           "type": "string",
           "description": "The latest last-updated time any bank's feed reports."
          },
          "banks_ranked": {
           "type": "integer",
           "description": "Banks with a rate that includes the amount."
          },
          "banks_excluded_by_amount": {
           "type": "integer",
           "description": "Banks with a rate for this term whose limits do not include the amount."
          },
          "banks_not_ranked": {
           "type": "object",
           "description": "How many banks not_ranked lists, by reason.",
           "additionalProperties": {
            "type": "integer"
           }
          },
          "not_ranked": {
           "type": "array",
           "description": "Every bank with a rate for this term and depositor that is not in results, by brand_label, with reason: below_minimum (minimum: the lowest deposit it takes), above_maximum (maximum: the highest), between_tiers (ranges: its balance tiers, the amount falling between them), interest_paid (offered: how it pays at this term), occupation_only (left out unless occupation=include) or age_only (left out unless age=include).",
           "items": {
            "type": "object"
           }
          },
          "same_as": {
           "type": "string",
           "description": "At a reference deposit, the best/ file holding the same ranking."
          },
          "results": {
           "type": "array",
           "description": "Highest rate first. Each has the fields of a top/ entry plus interest_estimate (the interest over the term, before tax: total, method simple or compounded, method_basis (stated, choice, single_payment, or assumed when the bank's terms do not say where interest goes), paid, payments, and where_paid, the bank's own sentence on whether interest paid before maturity is added to the deposit, paid out, not added, the depositor's choice or not stated; if_added_to_deposit where it is a choice), conditional, source_snapshot, feed (current, or last_good when the bank's latest feed read failed and its previous data is shown) and matched: for each input (depositor, amount, term, interest), why the result qualifies, as {basis, ...}. basis is stated (the bank's feed says so: quote and field for the depositor, range for the amount, value for the term and interest), within_band (one rate for a range of terms that includes the one asked for; range), inferred (worked out from elsewhere; note) or default (nothing in the feed excludes it; note). term carries a note when the band is wider than the term or the product's name states another term.",
           "items": {
            "type": "object"
           }
          }
         }
        }
       }
      }
     },
     "400": {
      "description": "A missing or unreadable parameter: the body lists every parameter and a working example.",
      "content": {
       "application/json": {
        "schema": {
         "type": "object"
        }
       }
      }
     }
    }
   }
  },
  "/au/finance/term-deposits/v1/rows/{segment}/{term}.json": {
   "get": {
    "tags": [
     "term-deposits"
    ],
    "operationId": "getRateRowsForTerm",
    "summary": "Every rate row for one segment and term, at any amount",
    "description": "What /v1/compare/term-deposits ranks; read that instead. products and conditions are stored once and each row refers to them by index (p, c). Under 200 kB.",
    "parameters": [
     {
      "name": "segment",
      "in": "path",
      "required": true,
      "description": "Who is depositing.",
      "schema": {
       "type": "string",
       "enum": [
        "personal",
        "smsf",
        "business"
       ]
      }
     },
     {
      "name": "term",
      "in": "path",
      "required": true,
      "description": "Term in months.",
      "schema": {
       "type": "integer",
       "enum": [
        1,
        2,
        3,
        4,
        5,
        6,
        7,
        8,
        9,
        10,
        11,
        12,
        18,
        24,
        36,
        48,
        60
       ]
      }
     }
    ],
    "responses": {
     "200": {
      "description": "The rows.",
      "content": {
       "application/json": {
        "schema": {
         "type": "object"
        }
       }
      }
     },
     "404": {
      "description": "No such file. Static hosting returns the site's 404 page (HTML)."
     }
    }
   }
  },
  "/au/finance/term-deposits/v1/best.json": {
   "get": {
    "tags": [
     "term-deposits"
    ],
    "operationId": "getBestRates",
    "summary": "Every bank ranked per customer segment, reference deposit and term",
    "description": "rankings[segment][deposit][term] is an array of BestEntry ordered by rate (ties prefer interest paid at maturity), one entry per bank: the bank's highest fixed rate whose balance tier covers the reference deposit and whose term band includes the term. A product counts for every segment in its segments list. Keys are strings: deposit in AUD, term in months.",
    "responses": {
     "200": {
      "description": "Rankings for every segment, reference deposit and standard term.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/BestRates"
        }
       }
      }
     },
     "404": {
      "description": "The file has not been published yet or the path is wrong; static hosting returns the site's 404 page (HTML)."
     }
    }
   }
  },
  "/au/finance/term-deposits/v1/rates.json": {
   "get": {
    "tags": [
     "term-deposits"
    ],
    "operationId": "getAllRates",
    "summary": "Every normalised rate row",
    "description": "One row per product, term band, interest payment frequency and balance tier, across all banks. Several megabytes.",
    "responses": {
     "200": {
      "description": "All rate rows.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/RatesFile"
        }
       }
      }
     },
     "404": {
      "description": "The file has not been published yet or the path is wrong; static hosting returns the site's 404 page (HTML)."
     }
    }
   }
  },
  "/au/finance/term-deposits/v1/brands.json": {
   "get": {
    "tags": [
     "term-deposits"
    ],
    "operationId": "getBrandRegister",
    "summary": "CDR Register brands read for this dataset",
    "responses": {
     "200": {
      "description": "The banking data holder brands from the CDR Register.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/BrandRegister"
        }
       }
      }
     },
     "404": {
      "description": "The file has not been published yet or the path is wrong; static hosting returns the site's 404 page (HTML)."
     }
    }
   }
  },
  "/au/finance/term-deposits/v1/brands/{brand_slug}.json": {
   "get": {
    "tags": [
     "term-deposits"
    ],
    "operationId": "getBrand",
    "summary": "One bank: its best rate per term (at_a_glance), its term deposit products and every rate row",
    "parameters": [
     {
      "name": "brand_slug",
      "in": "path",
      "required": true,
      "description": "Brand slug as listed under brands_dir.brands[].brand_slug in index.json.",
      "schema": {
       "type": "string",
       "pattern": "^[a-z0-9-]+$",
       "enum": [
        "alex-bank",
        "amp-bank-go",
        "anz",
        "arab-bank-australia-limited",
        "australian-military-bank",
        "australian-mutual-bank-ltd",
        "auswide-bank-ltd",
        "bank-australia",
        "bank-first",
        "bank-of-china",
        "bank-of-melbourne",
        "bank-of-queensland-limited",
        "bank-of-sydney",
        "bank-of-us",
        "banksa",
        "bankvic",
        "bankwaw",
        "bankwest",
        "bcu-bank",
        "bendigo-bank",
        "beyond-bank-australia",
        "bnk-bank-goldfields-money-bchl",
        "boq-specialist",
        "border-bank",
        "broken-hill-bank",
        "cairns-bank",
        "central-murray-bank",
        "central-west-cul",
        "coastline-bank",
        "commbank",
        "commfcu",
        "credit-union-sa",
        "darling-downs-bank",
        "defence-bank",
        "dnister",
        "fire-service-credit-union",
        "firefighters-mutual-bank",
        "first-option-bank",
        "gateway-bank",
        "geelong-bank",
        "gmcu",
        "great-southern-bank",
        "great-southern-bank-business",
        "greater-bank",
        "health-professionals-bank",
        "heartland",
        "horizon-bank",
        "hsbc-bank-australia-limited-wholesale-banking",
        "hume-bank",
        "imb-bank",
        "ing-bank-australia-ltd",
        "judo-bank",
        "laboratories-credit-union",
        "macquarie-bank-limited",
        "maitland-mutual-limited",
        "me-bank-me-go",
        "movebank",
        "mystate-bank",
        "national-australia-bank",
        "newcastle-permanent",
        "northern-inland-credit-union-limited",
        "orange-credit-union-ltd",
        "p-n-bank",
        "people-first-and-heritage-bank",
        "police-bank",
        "police-credit-union-ltd",
        "qbank",
        "qudos-bank",
        "queensland-country-bank",
        "rabobank",
        "racq-bank",
        "regional-australia-bank",
        "rsl-money",
        "southern-cross-credit-union",
        "st-george-bank",
        "summerland-bank",
        "suncorp-bank",
        "swsbank",
        "teachers-mutual-bank",
        "the-capricornian",
        "the-mac",
        "tmcu",
        "traditional-credit-union",
        "tyro-payments",
        "unibank",
        "unity-bank",
        "westpac",
        "woolworths-team-bank"
       ]
      }
     }
    ],
    "responses": {
     "200": {
      "description": "The bank's products and rate rows.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/BrandFile"
        }
       }
      }
     },
     "404": {
      "description": "No such file. Static hosting returns the site's 404 page (HTML)."
     }
    }
   }
  },
  "/au/finance/term-deposits/v1/source/{brand_slug}/{safe_product_id}.json": {
   "get": {
    "tags": [
     "term-deposits"
    ],
    "operationId": "getSourceSnapshot",
    "summary": "Verbatim snapshot of a product's CDR detail response",
    "description": "The exact CDR product-detail payload the rows were built from, with the live endpoint and the x-v header it needs. Every row and product links to its snapshot as source_snapshot.",
    "parameters": [
     {
      "name": "brand_slug",
      "in": "path",
      "required": true,
      "description": "Brand slug as listed under brands_dir.brands[].brand_slug in index.json.",
      "schema": {
       "type": "string",
       "pattern": "^[a-z0-9-]+$",
       "enum": [
        "alex-bank",
        "amp-bank-go",
        "anz",
        "arab-bank-australia-limited",
        "australian-military-bank",
        "australian-mutual-bank-ltd",
        "auswide-bank-ltd",
        "bank-australia",
        "bank-first",
        "bank-of-china",
        "bank-of-melbourne",
        "bank-of-queensland-limited",
        "bank-of-sydney",
        "bank-of-us",
        "banksa",
        "bankvic",
        "bankwaw",
        "bankwest",
        "bcu-bank",
        "bendigo-bank",
        "beyond-bank-australia",
        "bnk-bank-goldfields-money-bchl",
        "boq-specialist",
        "border-bank",
        "broken-hill-bank",
        "cairns-bank",
        "central-murray-bank",
        "central-west-cul",
        "coastline-bank",
        "commbank",
        "commfcu",
        "credit-union-sa",
        "darling-downs-bank",
        "defence-bank",
        "dnister",
        "fire-service-credit-union",
        "firefighters-mutual-bank",
        "first-option-bank",
        "gateway-bank",
        "geelong-bank",
        "gmcu",
        "great-southern-bank",
        "great-southern-bank-business",
        "greater-bank",
        "health-professionals-bank",
        "heartland",
        "horizon-bank",
        "hsbc-bank-australia-limited-wholesale-banking",
        "hume-bank",
        "imb-bank",
        "ing-bank-australia-ltd",
        "judo-bank",
        "laboratories-credit-union",
        "macquarie-bank-limited",
        "maitland-mutual-limited",
        "me-bank-me-go",
        "movebank",
        "mystate-bank",
        "national-australia-bank",
        "newcastle-permanent",
        "northern-inland-credit-union-limited",
        "orange-credit-union-ltd",
        "p-n-bank",
        "people-first-and-heritage-bank",
        "police-bank",
        "police-credit-union-ltd",
        "qbank",
        "qudos-bank",
        "queensland-country-bank",
        "rabobank",
        "racq-bank",
        "regional-australia-bank",
        "rsl-money",
        "southern-cross-credit-union",
        "st-george-bank",
        "summerland-bank",
        "suncorp-bank",
        "swsbank",
        "teachers-mutual-bank",
        "the-capricornian",
        "the-mac",
        "tmcu",
        "traditional-credit-union",
        "tyro-payments",
        "unibank",
        "unity-bank",
        "westpac",
        "woolworths-team-bank"
       ]
      }
     },
     {
      "name": "safe_product_id",
      "in": "path",
      "required": true,
      "description": "The bank's productId with characters outside [A-Za-z0-9._-] replaced by _ (take it from a source_snapshot path).",
      "schema": {
       "type": "string"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "The snapshot.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/SourceSnapshot"
        }
       }
      }
     },
     "404": {
      "description": "No such file. Static hosting returns the site's 404 page (HTML)."
     }
    }
   }
  }
 },
 "components": {
  "schemas": {
   "RateRow": {
    "type": "object",
    "description": "One normalised term deposit rate: one product, term band, interest payment frequency and balance tier.",
    "properties": {
     "brand": {
      "type": "string",
      "description": "Brand name exactly as in the CDR Register."
     },
     "brand_label": {
      "type": "string",
      "description": "Display name for the brand (register name tidied, e.g. 'CommFCU' -> 'Community First Bank')."
     },
     "brand_slug": {
      "type": "string",
      "description": "Stable URL slug for the brand; key for brands/{brand_slug}.json and the per-bank page."
     },
     "legal_entity_abn": {
      "type": [
       "string",
       "null"
      ],
      "description": "ABN of the data holder's legal entity."
     },
     "product_id": {
      "type": "string",
      "description": "The bank's CDR productId."
     },
     "product_name": {
      "type": "string",
      "description": "Product name exactly as published."
     },
     "product_label": {
      "type": "string",
      "description": "Harmonised display name (brand stripped, plurals and casing normalised)."
     },
     "product_url": {
      "type": [
       "string",
       "null"
      ],
      "description": "The bank's own page or application link for the product, when published.",
      "format": "uri"
     },
     "terms_url": {
      "type": [
       "string",
       "null"
      ],
      "description": "The bank's terms and conditions for the product, as linked from its product record; null when the bank publishes no terms link.",
      "format": "uri"
     },
     "apply_barriers": {
      "type": "array",
      "description": "Requirements that shut a depositor out of the product rather than describe them: membership, platform, relationship. Empty when anyone eligible for the segment can apply directly.",
      "items": {
       "type": "string",
       "enum": [
        "membership",
        "platform",
        "relationship"
       ]
      }
     },
     "restrictions": {
      "type": "array",
      "description": "occupation_membership when the product's own eligibility text says only people in certain occupations may join the bank; a condition then quotes who may join. Such products are left out of rankings (best.json), rates (best/) and top (top/), and are in rankings_all, rates_all and top_all. age_limited when the feed gives a maximum age, or a minimum age of 50 or more (youth and seniors deposits; a condition gives the age); these are left out and kept in the same way. via_third_party when the bank does not sell the product direct, only through a broker, a deposit intermediary or one named organisation (a condition says which); these stay in every ranking, marked.",
      "items": {
       "type": "string",
       "enum": [
        "age_limited",
        "existing_customers",
        "occupation_membership",
        "organisation_only",
        "pensioner",
        "region_limited",
        "staff",
        "student",
        "via_third_party"
       ]
      }
     },
     "segment": {
      "type": "string",
      "description": "Primary customer segment (the one the product is named for, else the first of segments).",
      "enum": [
       "personal",
       "smsf",
       "business",
       "other"
      ]
     },
     "segments": {
      "type": "array",
      "description": "Every customer segment the product's own feed says it is open to, in the order personal, smsf, business, other.",
      "items": {
       "type": "string",
       "enum": [
        "personal",
        "smsf",
        "business",
        "other"
       ]
      }
     },
     "segments_inferred": {
      "type": "array",
      "description": "Segments that were inferred from sibling products of the same bank rather than stated on this product; empty when none.",
      "items": {
       "type": "string"
      }
     },
     "term_raw": {
      "type": [
       "string",
       "null"
      ],
      "description": "The term as the bank published it: usually an ISO-8601 duration (P12M, P90D), a range (P6M/P8M) or text."
     },
     "term_months": {
      "type": "integer",
      "description": "Shortest whole-month term the rate applies to (equals term_min_months; kept for compatibility).",
      "minimum": 1
     },
     "term_min_months": {
      "type": "integer",
      "description": "First whole-month term in the band the rate applies to.",
      "minimum": 1
     },
     "term_max_months": {
      "type": "integer",
      "description": "Last whole-month term in the band; equal to term_min_months for a single term.",
      "minimum": 1
     },
     "term_days": {
      "type": [
       "integer",
       "null"
      ],
      "description": "Exact day count when the bank quotes a single term in days or weeks (P90D -> 90); null otherwise."
     },
     "term_days_min": {
      "type": [
       "integer",
       "null"
      ],
      "description": "Start of a day-quoted term band (90 for 90-119 days); null when the term is quoted in months."
     },
     "term_days_max": {
      "type": [
       "integer",
       "null"
      ],
      "description": "End of a day-quoted term band; equals term_days_min for a single day term."
     },
     "rate": {
      "type": "number",
      "description": "Annual interest rate as a fraction (0.055 = 5.50% p.a.).",
      "minimum": 0
     },
     "rate_pct": {
      "type": "number",
      "description": "Annual interest rate as a percentage, rounded to two decimals."
     },
     "rate_type": {
      "type": [
       "string",
       "null"
      ],
      "description": "CDR depositRateType (FIXED, BONUS, INTRODUCTORY, VARIABLE, MARKET_LINKED) or FIXED+BONUS for a base rate with a stacked add-on."
     },
     "interest_paid": {
      "type": "string",
      "description": "How often interest is paid, derived from the bank's application frequency and text.",
      "enum": [
       "at_maturity",
       "annually",
       "half_yearly",
       "quarterly",
       "monthly",
       "unknown"
      ]
     },
     "min_balance": {
      "type": [
       "number",
       "null"
      ],
      "description": "Product-level minimum (opening) balance in AUD from the CDR constraints; null when not published."
     },
     "max_balance": {
      "type": [
       "number",
       "null"
      ],
      "description": "Product-level maximum balance in AUD; null when not published."
     },
     "tier_min": {
      "type": [
       "number",
       "null"
      ],
      "description": "Lower bound in AUD of the balance tier this rate applies to; null when the rate has no tier."
     },
     "tier_max": {
      "type": [
       "number",
       "null"
      ],
      "description": "Upper bound in AUD of the balance tier; null when open-ended."
     },
     "deposit_min": {
      "type": [
       "number",
       "null"
      ],
      "description": "Smallest deposit in AUD that earns this rate: the greater of min_balance and tier_min."
     },
     "deposit_max": {
      "type": [
       "number",
       "null"
      ],
      "description": "Largest deposit in AUD that earns this rate: the lesser of max_balance and tier_max; null when unbounded."
     },
     "is_special": {
      "type": "boolean",
      "description": "True for promotional, introductory or bonus rates (by rate type or the bank's wording)."
     },
     "conditional": {
      "type": "boolean",
      "description": "True when the rate carries any condition or is a special."
     },
     "conditions": {
      "type": "array",
      "description": "Conditions in the bank's own words plus short derived labels such as 'online only' or 'new customers only'.",
      "items": {
       "type": "string"
      }
     },
     "additional_info": {
      "type": [
       "string",
       "null"
      ],
      "description": "The rate's own additionalInfo text from the feed, truncated."
     },
     "stacked_bonus": {
      "type": [
       "number",
       "null"
      ],
      "description": "For rows with rate_type FIXED+BONUS: the add-on increment (as a fraction) that was stacked onto the base rate; null otherwise."
     },
     "source_url": {
      "type": [
       "string",
       "null"
      ],
      "description": "Live CDR product-detail endpoint for this product (needs an x-v header; not browsable).",
      "format": "uri"
     },
     "source_snapshot": {
      "type": [
       "string",
       "null"
      ],
      "description": "Site-relative path of our verbatim snapshot of the CDR detail response the row was built from."
     },
     "bank_last_updated": {
      "type": [
       "string",
       "null"
      ],
      "description": "The bank's lastUpdated timestamp for the product.",
      "format": "date-time"
     }
    },
    "required": [
     "brand",
     "brand_label",
     "brand_slug",
     "legal_entity_abn",
     "product_id",
     "product_name",
     "product_label",
     "product_url",
     "terms_url",
     "apply_barriers",
     "restrictions",
     "segment",
     "segments",
     "segments_inferred",
     "term_raw",
     "term_months",
     "term_min_months",
     "term_max_months",
     "term_days",
     "term_days_min",
     "term_days_max",
     "rate",
     "rate_pct",
     "rate_type",
     "interest_paid",
     "min_balance",
     "max_balance",
     "tier_min",
     "tier_max",
     "deposit_min",
     "deposit_max",
     "is_special",
     "conditional",
     "conditions",
     "additional_info",
     "stacked_bonus",
     "source_url",
     "source_snapshot",
     "bank_last_updated"
    ]
   },
   "BestEntry": {
    "type": "object",
    "description": "A bank's best eligible rate for one customer segment, reference deposit and standard term.",
    "properties": {
     "rank": {
      "type": "integer",
      "description": "Position in this segment / deposit / term ranking (1 = highest rate).",
      "minimum": 1
     },
     "brand": {
      "type": "string",
      "description": "Brand name exactly as in the CDR Register."
     },
     "brand_label": {
      "type": "string",
      "description": "Display name for the brand (register name tidied, e.g. 'CommFCU' -> 'Community First Bank')."
     },
     "brand_slug": {
      "type": "string",
      "description": "Stable URL slug for the brand; key for brands/{brand_slug}.json and the per-bank page."
     },
     "product_name": {
      "type": "string",
      "description": "Product name exactly as published."
     },
     "product_label": {
      "type": "string",
      "description": "Harmonised display name (brand stripped, plurals and casing normalised)."
     },
     "segment": {
      "type": "string",
      "description": "Primary customer segment (the one the product is named for, else the first of segments).",
      "enum": [
       "personal",
       "smsf",
       "business",
       "other"
      ]
     },
     "segments": {
      "type": "array",
      "description": "Every customer segment the product's own feed says it is open to, in the order personal, smsf, business, other.",
      "items": {
       "type": "string",
       "enum": [
        "personal",
        "smsf",
        "business",
        "other"
       ]
      }
     },
     "rate": {
      "type": "number",
      "description": "Annual interest rate as a fraction (0.055 = 5.50% p.a.).",
      "minimum": 0
     },
     "rate_pct": {
      "type": "number",
      "description": "Annual interest rate as a percentage, rounded to two decimals."
     },
     "interest_paid": {
      "type": "string",
      "description": "How often interest is paid, derived from the bank's application frequency and text.",
      "enum": [
       "at_maturity",
       "annually",
       "half_yearly",
       "quarterly",
       "monthly",
       "unknown"
      ]
     },
     "term_raw": {
      "type": [
       "string",
       "null"
      ],
      "description": "The term as the bank published it: usually an ISO-8601 duration (P12M, P90D), a range (P6M/P8M) or text."
     },
     "term_months": {
      "type": "integer",
      "description": "Shortest whole-month term the rate applies to (equals term_min_months; kept for compatibility).",
      "minimum": 1
     },
     "term_min_months": {
      "type": "integer",
      "description": "First whole-month term in the band the rate applies to.",
      "minimum": 1
     },
     "term_max_months": {
      "type": "integer",
      "description": "Last whole-month term in the band; equal to term_min_months for a single term.",
      "minimum": 1
     },
     "term_days": {
      "type": [
       "integer",
       "null"
      ],
      "description": "Exact day count when the bank quotes a single term in days or weeks (P90D -> 90); null otherwise."
     },
     "term_days_min": {
      "type": [
       "integer",
       "null"
      ],
      "description": "Start of a day-quoted term band (90 for 90-119 days); null when the term is quoted in months."
     },
     "term_days_max": {
      "type": [
       "integer",
       "null"
      ],
      "description": "End of a day-quoted term band; equals term_days_min for a single day term."
     },
     "min_balance": {
      "type": [
       "number",
       "null"
      ],
      "description": "Product-level minimum (opening) balance in AUD from the CDR constraints; null when not published."
     },
     "max_balance": {
      "type": [
       "number",
       "null"
      ],
      "description": "Product-level maximum balance in AUD; null when not published."
     },
     "tier_min": {
      "type": [
       "number",
       "null"
      ],
      "description": "Lower bound in AUD of the balance tier this rate applies to; null when the rate has no tier."
     },
     "tier_max": {
      "type": [
       "number",
       "null"
      ],
      "description": "Upper bound in AUD of the balance tier; null when open-ended."
     },
     "deposit_min": {
      "type": [
       "number",
       "null"
      ],
      "description": "Smallest deposit in AUD that earns this rate: the greater of min_balance and tier_min."
     },
     "deposit_max": {
      "type": [
       "number",
       "null"
      ],
      "description": "Largest deposit in AUD that earns this rate: the lesser of max_balance and tier_max; null when unbounded."
     },
     "is_special": {
      "type": "boolean",
      "description": "True for promotional, introductory or bonus rates (by rate type or the bank's wording)."
     },
     "conditional": {
      "type": "boolean",
      "description": "True when the rate carries any condition or is a special."
     },
     "conditions": {
      "type": "array",
      "description": "Conditions in the bank's own words plus short derived labels such as 'online only' or 'new customers only'.",
      "items": {
       "type": "string"
      }
     },
     "stacked_bonus": {
      "type": [
       "number",
       "null"
      ],
      "description": "For rows with rate_type FIXED+BONUS: the add-on increment (as a fraction) that was stacked onto the base rate; null otherwise."
     },
     "source_url": {
      "type": [
       "string",
       "null"
      ],
      "description": "Live CDR product-detail endpoint for this product (needs an x-v header; not browsable).",
      "format": "uri"
     },
     "source_snapshot": {
      "type": [
       "string",
       "null"
      ],
      "description": "Site-relative path of our verbatim snapshot of the CDR detail response the row was built from."
     },
     "product_url": {
      "type": [
       "string",
       "null"
      ],
      "description": "The bank's own page or application link for the product, when published.",
      "format": "uri"
     },
     "terms_url": {
      "type": [
       "string",
       "null"
      ],
      "description": "The bank's terms and conditions for the product, as linked from its product record; null when the bank publishes no terms link.",
      "format": "uri"
     },
     "apply_barriers": {
      "type": "array",
      "description": "Requirements that shut a depositor out of the product rather than describe them: membership, platform, relationship. Empty when anyone eligible for the segment can apply directly.",
      "items": {
       "type": "string",
       "enum": [
        "membership",
        "platform",
        "relationship"
       ]
      }
     },
     "restrictions": {
      "type": "array",
      "description": "occupation_membership when the product's own eligibility text says only people in certain occupations may join the bank; a condition then quotes who may join. Such products are left out of rankings (best.json), rates (best/) and top (top/), and are in rankings_all, rates_all and top_all. age_limited when the feed gives a maximum age, or a minimum age of 50 or more (youth and seniors deposits; a condition gives the age); these are left out and kept in the same way. via_third_party when the bank does not sell the product direct, only through a broker, a deposit intermediary or one named organisation (a condition says which); these stay in every ranking, marked.",
      "items": {
       "type": "string",
       "enum": [
        "age_limited",
        "existing_customers",
        "occupation_membership",
        "organisation_only",
        "pensioner",
        "region_limited",
        "staff",
        "student",
        "via_third_party"
       ]
      }
     },
     "bank_last_updated": {
      "type": [
       "string",
       "null"
      ],
      "description": "The bank's lastUpdated timestamp for the product.",
      "format": "date-time"
     }
    },
    "required": [
     "rank",
     "brand",
     "brand_label",
     "brand_slug",
     "product_name",
     "product_label",
     "segment",
     "segments",
     "rate",
     "rate_pct",
     "interest_paid",
     "term_raw",
     "term_months",
     "term_min_months",
     "term_max_months",
     "term_days",
     "term_days_min",
     "term_days_max",
     "min_balance",
     "max_balance",
     "tier_min",
     "tier_max",
     "deposit_min",
     "deposit_max",
     "is_special",
     "conditional",
     "conditions",
     "stacked_bonus",
     "source_url",
     "source_snapshot",
     "product_url",
     "terms_url",
     "apply_barriers",
     "restrictions",
     "bank_last_updated"
    ]
   },
   "ProductSummary": {
    "type": "object",
    "description": "One term deposit product of a bank, with or without rate rows.",
    "properties": {
     "product_id": {
      "type": "string",
      "description": "The bank's CDR productId."
     },
     "product_name": {
      "type": "string",
      "description": "Product name exactly as published."
     },
     "product_label": {
      "type": "string",
      "description": "Harmonised display name (brand stripped, plurals and casing normalised)."
     },
     "segment": {
      "type": "string",
      "description": "Primary customer segment (the one the product is named for, else the first of segments).",
      "enum": [
       "personal",
       "smsf",
       "business",
       "other"
      ]
     },
     "segments": {
      "type": "array",
      "description": "Every customer segment the product's own feed says it is open to, in the order personal, smsf, business, other.",
      "items": {
       "type": "string",
       "enum": [
        "personal",
        "smsf",
        "business",
        "other"
       ]
      }
     },
     "segments_inferred": {
      "type": "array",
      "description": "Segments that were inferred from sibling products of the same bank rather than stated on this product; empty when none.",
      "items": {
       "type": "string"
      }
     },
     "product_url": {
      "type": [
       "string",
       "null"
      ],
      "description": "The bank's own page or application link for the product, when published.",
      "format": "uri"
     },
     "terms_url": {
      "type": [
       "string",
       "null"
      ],
      "description": "The bank's terms and conditions for the product, as linked from its product record; null when the bank publishes no terms link.",
      "format": "uri"
     },
     "terms_url_source": {
      "type": [
       "string",
       "null"
      ],
      "description": "Where terms_url came from: feed (the bank's product record), \"found by hand <date>: <kind>\" where the record links none, an index page or the wrong document and the bank's own document was found and checked, or null when there is no link."
     },
     "correction": {
      "type": [
       "object",
       "null"
      ],
      "description": "Set when the bank's own page or document was read on the date given and corrects this record (minimum or maximum deposit, age, term, segment, or rates out of date or not offered): {note, url, checked, citation}: citation is the five-field citation llms.txt describes (citations when the correction was read from several sentences). The note leads the product's conditions. It lapses when the bank republishes the record."
     },
     "application": {
      "$ref": "#/components/schemas/ApplicationRequirements"
     },
     "source_url": {
      "type": [
       "string",
       "null"
      ],
      "description": "Live CDR product-detail endpoint for this product (needs an x-v header; not browsable).",
      "format": "uri"
     },
     "source_snapshot": {
      "type": [
       "string",
       "null"
      ],
      "description": "Site-relative path of our verbatim snapshot of the CDR detail response the row was built from."
     },
     "snapshot_at": {
      "type": [
       "string",
       "null"
      ],
      "description": "When the current version of the product's CDR record (its source_snapshot) was first fetched; changes only when the bank's data changes.",
      "format": "date-time"
     },
     "description": {
      "type": [
       "string",
       "null"
      ],
      "description": "The bank's product description, truncated."
     },
     "listed_under": {
      "type": [
       "string",
       "null"
      ],
      "description": "The CDR product category the bank's feed lists the product under when it is not TERM_DEPOSITS: TRANS_AND_SAVINGS_ACCOUNTS for a term deposit the bank files among its savings and transaction accounts (Great Southern Bank Business+'s twelve Business+ Term Deposits, MoveBank's Term Deposit), read from that list because its name says term deposit; null for a product from the bank's term deposit list."
     },
     "min_balance": {
      "type": [
       "number",
       "null"
      ],
      "description": "Product-level minimum (opening) balance in AUD from the CDR constraints; null when not published."
     },
     "max_balance": {
      "type": [
       "number",
       "null"
      ],
      "description": "Product-level maximum balance in AUD; null when not published."
     },
     "conditions": {
      "type": "array",
      "description": "Product-level conditions: OTHER constraints and non-universal eligibility, in the bank's words.",
      "items": {
       "type": "string"
      }
     },
     "restrictions": {
      "type": "array",
      "description": "occupation_membership when the product's own eligibility text says only people in certain occupations may join the bank; a condition then quotes who may join. Such products are left out of rankings (best.json), rates (best/) and top (top/), and are in rankings_all, rates_all and top_all. age_limited when the feed gives a maximum age, or a minimum age of 50 or more (youth and seniors deposits; a condition gives the age); these are left out and kept in the same way. via_third_party when the bank does not sell the product direct, only through a broker, a deposit intermediary or one named organisation (a condition says which); these stay in every ranking, marked.",
      "items": {
       "type": "string",
       "enum": [
        "age_limited",
        "existing_customers",
        "occupation_membership",
        "organisation_only",
        "pensioner",
        "region_limited",
        "staff",
        "student",
        "via_third_party"
       ]
      }
     },
     "bank_last_updated": {
      "type": [
       "string",
       "null"
      ],
      "description": "The bank's lastUpdated timestamp for the product.",
      "format": "date-time"
     },
     "rate_count": {
      "type": "integer",
      "description": "Number of rows in rates.json built from this product.",
      "minimum": 0
     },
     "addons": {
      "type": "array",
      "description": "Bonus add-ons the bank publishes as increments on top of base rates (stacked into FIXED+BONUS rows).",
      "items": {
       "type": "object",
       "properties": {
        "increment": {
         "type": "number",
         "description": "Add-on as a fraction (0.001 = 0.10% p.a.)."
        },
        "increment_pct": {
         "type": "number",
         "description": "Add-on as a percentage."
        },
        "applies_min_months": {
         "type": [
          "integer",
          "null"
         ],
         "description": "First term in months the add-on applies to; null for any term."
        },
        "applies_max_months": {
         "type": [
          "integer",
          "null"
         ],
         "description": "Last term in months the add-on applies to; null for any term."
        },
        "condition": {
         "type": "string",
         "description": "Short condition label, e.g. 'online bonus: open or renew online'."
        },
        "online": {
         "type": "boolean",
         "description": "True when the add-on requires opening or renewing online."
        },
        "rate_type": {
         "type": "string",
         "description": "CDR depositRateType of the add-on row (BONUS or INTRODUCTORY)."
        },
        "term_raw": {
         "type": [
          "string",
          "null"
         ],
         "description": "The add-on row's additionalValue as published."
        },
        "text": {
         "type": [
          "string",
          "null"
         ],
         "description": "The add-on row's additionalInfo as published."
        }
       }
      }
     },
     "no_rates_reason": {
      "type": [
       "string",
       "null"
      ],
      "description": "Why the product has no rows (detail not fetched, no deposit rates published), or null."
     },
     "who_can_open": {
      "type": "object",
      "description": "Who may open the product (scripts/au_eligibility.py, the same in every banking dataset): {restricted, groups, open_note}. restricted is true when only some groups may; each group is {kind, who, level, quote, source}: kind is one of occupation, age, pension, student, staff, organisation, region, existing_customers; level is bank when the limit is on joining the bank, so every product of the bank has it (except one that says non-members may open it: open_note quotes why), or product. Restricted products are left out of rankings, best/ and top/ and kept in the _all ones; /v1/compare ranks them with include=<kinds>. open_to, when present, lists the depositors the bank's own page says may open it beyond those its feed names (au_terms_watch.widen): {segment, who, quote, url, checked, citation, how}, re-read daily; the product is ranked for that segment only while the sentence is found. how, when present, is how the bank opens it for them: on request (a general clause of its disclosure document, as Dnister's \"Trust accounts can be opened on request: ... By trustees of a superannuation fund\"), so the depositor asks and may be asked for the trust deed), in branch (Westpac's \"Term Deposits for joint account holders, trust or SMSF need to be opened in-branch\"), by enquiry (Bank of Sydney's \"please submit an online enquiry\") or by form, so it cannot be opened online.",
      "additionalProperties": true
     },
     "segment_basis": {
      "type": "object",
      "description": "Why the product counts for each segment in segments: {segment: {basis, field, quote, note}}. basis is stated (field names the part of the bank's feed, name or an eligibility, constraint or description entry, and quote gives its words, or note says the bank gave only a type), inferred (note says from what: a sibling product, or a feed that tags every term deposit business-only) or default (personal only: nothing in the feed limits the product to businesses or SMSFs). A segment the bank's own page opens a product to beyond its feed is stated with field \"the bank's own page (or document, for a PDF), read <date>\", its quote, url and citation (terms-watch.json segments_add). Empty for products with no rates.",
      "additionalProperties": {
       "type": "object"
      }
     },
     "facts": {
      "type": "object",
      "description": "Present when the bank's own terms, read by hand and re-read daily (terms-watch.json), say how interest is paid: interest_destination (where interest paid before maturity goes: added to the deposit, paid_out to another account, not_added, or the depositor's choice) and interest_over_12_months (at_least_annually or at_maturity_allowed), or which SMSF trustee structures the bank takes: smsf_trustees, whose value is {corporate_trustee, individual_trustees, corporate_max, individual_min, individual_max}, each null where the bank's sentence says nothing of it (Judo's SMSF Term Deposit: one corporate trustee or two to four individual trustees), and whose condition is in conditions too. Each is {value, quote, url, checked, note?, frequencies?, otherwise?, gone?}: frequencies limits value to those interest payment frequencies and otherwise gives the rest's; gone says the sentence was not found in the terms on the last daily read.",
      "additionalProperties": {
       "type": "object"
      }
     }
    },
    "required": [
     "product_id",
     "product_name",
     "product_label",
     "segment",
     "segments",
     "segments_inferred",
     "product_url",
     "terms_url",
     "terms_url_source",
     "correction",
     "application",
     "source_url",
     "source_snapshot",
     "snapshot_at",
     "description",
     "listed_under",
     "min_balance",
     "max_balance",
     "conditions",
     "restrictions",
     "bank_last_updated",
     "rate_count",
     "addons",
     "no_rates_reason",
     "who_can_open",
     "segment_basis",
     "facts"
    ]
   },
   "RatesFile": {
    "type": "object",
    "properties": {
     "source": {
      "type": "string",
      "description": "Data source statement."
     },
     "licence_note": {
      "type": "string",
      "description": "Terms of reuse and the not-advice note."
     },
     "row_count": {
      "type": "integer",
      "description": "Number of rows."
     },
     "rows": {
      "type": "array",
      "items": {
       "$ref": "#/components/schemas/RateRow"
      }
     }
    },
    "required": [
     "row_count",
     "rows"
    ]
   },
   "BestRates": {
    "type": "object",
    "properties": {
     "source": {
      "type": "string",
      "description": "Data source statement."
     },
     "licence_note": {
      "type": "string",
      "description": "Terms of reuse and the not-advice note."
     },
     "reference_deposits": {
      "type": "array",
      "description": "Reference deposit sizes in AUD used as ranking keys.",
      "items": {
       "type": "integer"
      }
     },
     "segments": {
      "type": "array",
      "description": "Customer segments ranked.",
      "items": {
       "type": "string"
      }
     },
     "terms": {
      "type": "array",
      "description": "Standard terms in months ranked.",
      "items": {
       "type": "integer"
      }
     },
     "rankings": {
      "type": "object",
      "description": "segment -> deposit (string) -> term in months (string) -> ranked BestEntry array. Products open only to certain occupations are left out.",
      "additionalProperties": {
       "type": "object",
       "additionalProperties": {
        "type": "object",
        "additionalProperties": {
         "type": "array",
         "items": {
          "$ref": "#/components/schemas/BestEntry"
         }
        }
       }
      }
     },
     "rankings_note": {
      "type": "string",
      "description": "How rankings and rankings_all differ."
     },
     "rankings_all": {
      "type": "object",
      "description": "As rankings, with products open only to certain occupations (restriction occupation_membership) in.",
      "additionalProperties": {
       "type": "object",
       "additionalProperties": {
        "type": "object",
        "additionalProperties": {
         "type": "array",
         "items": {
          "$ref": "#/components/schemas/BestEntry"
         }
        }
       }
      }
     },
     "brand_count": {
      "type": "integer",
      "description": "Brands in the CDR Register we read."
     },
     "brands_with_rates": {
      "type": "array",
      "description": "brand_slug of every brand with at least one rate row.",
      "items": {
       "type": "string"
      }
     },
     "guarantee_groups": {
      "type": "array",
      "description": "Brands that share one Financial Claims Scheme limit; see guarantee_groups_note.",
      "items": {
       "type": "object",
       "additionalProperties": true
      }
     },
     "guarantee_groups_note": {
      "type": "string",
      "description": "How to read guarantee_groups."
     }
    },
    "required": [
     "reference_deposits",
     "segments",
     "terms",
     "rankings"
    ]
   },
   "BestSliceEntry": {
    "type": "object",
    "description": "A ranked rate in a per-bucket slice: as BestEntry without segment and term_months, which the file's path gives.",
    "required": [
     "rank",
     "brand",
     "brand_label",
     "brand_slug",
     "product_name",
     "product_label",
     "segment",
     "segments",
     "rate",
     "rate_pct",
     "interest_paid",
     "term_raw",
     "term_months",
     "term_min_months",
     "term_max_months",
     "term_days",
     "term_days_min",
     "term_days_max",
     "min_balance",
     "max_balance",
     "tier_min",
     "tier_max",
     "deposit_min",
     "deposit_max",
     "is_special",
     "conditional",
     "conditions",
     "stacked_bonus",
     "source_url",
     "source_snapshot",
     "product_url",
     "terms_url",
     "apply_barriers",
     "restrictions",
     "bank_last_updated"
    ],
    "properties": {
     "rank": {
      "type": "integer",
      "description": "Position in this segment / deposit / term ranking (1 = highest rate).",
      "minimum": 1
     },
     "brand": {
      "type": "string",
      "description": "Brand name exactly as in the CDR Register."
     },
     "brand_label": {
      "type": "string",
      "description": "Display name for the brand (register name tidied, e.g. 'CommFCU' -> 'Community First Bank')."
     },
     "brand_slug": {
      "type": "string",
      "description": "Stable URL slug for the brand; key for brands/{brand_slug}.json and the per-bank page."
     },
     "product_name": {
      "type": "string",
      "description": "Product name exactly as published."
     },
     "product_label": {
      "type": "string",
      "description": "Harmonised display name (brand stripped, plurals and casing normalised)."
     },
     "segments": {
      "type": "array",
      "description": "Every customer segment the product's own feed says it is open to, in the order personal, smsf, business, other.",
      "items": {
       "type": "string",
       "enum": [
        "personal",
        "smsf",
        "business",
        "other"
       ]
      }
     },
     "rate": {
      "type": "number",
      "description": "Annual interest rate as a fraction (0.055 = 5.50% p.a.).",
      "minimum": 0
     },
     "rate_pct": {
      "type": "number",
      "description": "Annual interest rate as a percentage, rounded to two decimals."
     },
     "interest_paid": {
      "type": "string",
      "description": "How often interest is paid, derived from the bank's application frequency and text.",
      "enum": [
       "at_maturity",
       "annually",
       "half_yearly",
       "quarterly",
       "monthly",
       "unknown"
      ]
     },
     "term_raw": {
      "type": [
       "string",
       "null"
      ],
      "description": "The term as the bank published it: usually an ISO-8601 duration (P12M, P90D), a range (P6M/P8M) or text."
     },
     "term_min_months": {
      "type": "integer",
      "description": "First whole-month term in the band the rate applies to.",
      "minimum": 1
     },
     "term_max_months": {
      "type": "integer",
      "description": "Last whole-month term in the band; equal to term_min_months for a single term.",
      "minimum": 1
     },
     "term_days": {
      "type": [
       "integer",
       "null"
      ],
      "description": "Exact day count when the bank quotes a single term in days or weeks (P90D -> 90); null otherwise."
     },
     "term_days_min": {
      "type": [
       "integer",
       "null"
      ],
      "description": "Start of a day-quoted term band (90 for 90-119 days); null when the term is quoted in months."
     },
     "term_days_max": {
      "type": [
       "integer",
       "null"
      ],
      "description": "End of a day-quoted term band; equals term_days_min for a single day term."
     },
     "min_balance": {
      "type": [
       "number",
       "null"
      ],
      "description": "Product-level minimum (opening) balance in AUD from the CDR constraints; null when not published."
     },
     "max_balance": {
      "type": [
       "number",
       "null"
      ],
      "description": "Product-level maximum balance in AUD; null when not published."
     },
     "tier_min": {
      "type": [
       "number",
       "null"
      ],
      "description": "Lower bound in AUD of the balance tier this rate applies to; null when the rate has no tier."
     },
     "tier_max": {
      "type": [
       "number",
       "null"
      ],
      "description": "Upper bound in AUD of the balance tier; null when open-ended."
     },
     "deposit_min": {
      "type": [
       "number",
       "null"
      ],
      "description": "Smallest deposit in AUD that earns this rate: the greater of min_balance and tier_min."
     },
     "deposit_max": {
      "type": [
       "number",
       "null"
      ],
      "description": "Largest deposit in AUD that earns this rate: the lesser of max_balance and tier_max; null when unbounded."
     },
     "is_special": {
      "type": "boolean",
      "description": "True for promotional, introductory or bonus rates (by rate type or the bank's wording)."
     },
     "conditional": {
      "type": "boolean",
      "description": "True when the rate carries any condition or is a special."
     },
     "conditions": {
      "type": "array",
      "description": "Conditions in the bank's own words plus short derived labels such as 'online only' or 'new customers only'.",
      "items": {
       "type": "string"
      }
     },
     "stacked_bonus": {
      "type": [
       "number",
       "null"
      ],
      "description": "For rows with rate_type FIXED+BONUS: the add-on increment (as a fraction) that was stacked onto the base rate; null otherwise."
     },
     "source_url": {
      "type": [
       "string",
       "null"
      ],
      "description": "Live CDR product-detail endpoint for this product (needs an x-v header; not browsable).",
      "format": "uri"
     },
     "source_snapshot": {
      "type": [
       "string",
       "null"
      ],
      "description": "Site-relative path of our verbatim snapshot of the CDR detail response the row was built from."
     },
     "product_url": {
      "type": [
       "string",
       "null"
      ],
      "description": "The bank's own page or application link for the product, when published.",
      "format": "uri"
     },
     "terms_url": {
      "type": [
       "string",
       "null"
      ],
      "description": "The bank's terms and conditions for the product, as linked from its product record; null when the bank publishes no terms link.",
      "format": "uri"
     },
     "apply_barriers": {
      "type": "array",
      "description": "Requirements that shut a depositor out of the product rather than describe them: membership, platform, relationship. Empty when anyone eligible for the segment can apply directly.",
      "items": {
       "type": "string",
       "enum": [
        "membership",
        "platform",
        "relationship"
       ]
      }
     },
     "restrictions": {
      "type": "array",
      "description": "occupation_membership when the product's own eligibility text says only people in certain occupations may join the bank; a condition then quotes who may join. Such products are left out of rankings (best.json), rates (best/) and top (top/), and are in rankings_all, rates_all and top_all. age_limited when the feed gives a maximum age, or a minimum age of 50 or more (youth and seniors deposits; a condition gives the age); these are left out and kept in the same way. via_third_party when the bank does not sell the product direct, only through a broker, a deposit intermediary or one named organisation (a condition says which); these stay in every ranking, marked.",
      "items": {
       "type": "string",
       "enum": [
        "age_limited",
        "existing_customers",
        "occupation_membership",
        "organisation_only",
        "pensioner",
        "region_limited",
        "staff",
        "student",
        "via_third_party"
       ]
      }
     },
     "bank_last_updated": {
      "type": [
       "string",
       "null"
      ],
      "description": "The bank's lastUpdated timestamp for the product.",
      "format": "date-time"
     }
    }
   },
   "BestRatesSlice": {
    "type": "object",
    "properties": {
     "source": {
      "type": "string",
      "description": "Data source statement."
     },
     "licence_note": {
      "type": "string",
      "description": "Terms of reuse and the not-advice note."
     },
     "segment": {
      "type": "string",
      "description": "Who is depositing."
     },
     "deposit": {
      "type": "integer",
      "description": "Reference deposit in AUD."
     },
     "term_months": {
      "type": "integer",
      "description": "Term in months."
     },
     "note": {
      "type": "string",
      "description": "What the file holds."
     },
     "rates_are_advertised": {
      "type": "string",
      "description": "What these rates are and are not."
     },
     "before_answering": {
      "type": "string",
      "description": "Where to find what to ask a reader first."
     },
     "best_rate_by_interest_paid": {
      "type": "object",
      "description": "interest_paid -> the best rate_pct in this bucket paid that way, from every bank's rates, so it can be a rate not in `rates`, which keeps each bank's highest only.",
      "additionalProperties": {
       "type": "number"
      }
     },
     "best_by_interest_paid_note": {
      "type": "string",
      "description": "How to read best_by_interest_paid."
     },
     "best_by_interest_paid": {
      "type": "object",
      "description": "interest_paid -> the entry paying best_rate_by_interest_paid: bank, product, rate, rank in `rates` (null when not there), conditions, product_url and terms_url.",
      "additionalProperties": {
       "type": "object",
       "additionalProperties": true
      }
     },
     "whole_dataset": {
      "type": "string",
      "description": "best.json, holding every bucket.",
      "format": "uri"
     },
     "compare_payment_frequencies": {
      "type": "string",
      "description": "by-payment.json.",
      "format": "uri"
     },
     "other_terms": {
      "type": "string",
      "description": "URL template for another term at the same segment and deposit."
     },
     "count": {
      "type": "integer",
      "description": "Banks ranked in this bucket."
     },
     "rates": {
      "type": "array",
      "items": {
       "$ref": "#/components/schemas/BestSliceEntry"
      }
     },
     "rates_all_note": {
      "type": "string",
      "description": "How rates and rates_all differ."
     },
     "rates_all": {
      "type": "array",
      "items": {
       "$ref": "#/components/schemas/BestSliceEntry"
      },
      "description": "Every ranked bank, products open only to certain occupations in; filter on restrictions and renumber to rank either way."
     }
    },
    "required": [
     "segment",
     "deposit",
     "term_months",
     "rates"
    ]
   },
   "TopEntry": {
    "type": "object",
    "description": "A ranked rate cut to what it takes to quote it: a BestEntry's fields named in TOP_FIELDS.",
    "properties": {
     "rank": {
      "type": "integer",
      "description": "Position in this segment / deposit / term ranking (1 = highest rate).",
      "minimum": 1
     },
     "brand_label": {
      "type": "string",
      "description": "Display name for the brand (register name tidied, e.g. 'CommFCU' -> 'Community First Bank')."
     },
     "brand_slug": {
      "type": "string",
      "description": "Stable URL slug for the brand; key for brands/{brand_slug}.json and the per-bank page."
     },
     "product_label": {
      "type": "string",
      "description": "Harmonised display name (brand stripped, plurals and casing normalised)."
     },
     "rate_pct": {
      "type": "number",
      "description": "Annual interest rate as a percentage, rounded to two decimals."
     },
     "interest_paid": {
      "type": "string",
      "description": "How often interest is paid, derived from the bank's application frequency and text.",
      "enum": [
       "at_maturity",
       "annually",
       "half_yearly",
       "quarterly",
       "monthly",
       "unknown"
      ]
     },
     "is_special": {
      "type": "boolean",
      "description": "True for promotional, introductory or bonus rates (by rate type or the bank's wording)."
     },
     "conditions": {
      "type": "array",
      "description": "Conditions in the bank's own words plus short derived labels such as 'online only' or 'new customers only'.",
      "items": {
       "type": "string"
      }
     },
     "restrictions": {
      "type": "array",
      "description": "occupation_membership when the product's own eligibility text says only people in certain occupations may join the bank; a condition then quotes who may join. Such products are left out of rankings (best.json), rates (best/) and top (top/), and are in rankings_all, rates_all and top_all. age_limited when the feed gives a maximum age, or a minimum age of 50 or more (youth and seniors deposits; a condition gives the age); these are left out and kept in the same way. via_third_party when the bank does not sell the product direct, only through a broker, a deposit intermediary or one named organisation (a condition says which); these stay in every ranking, marked.",
      "items": {
       "type": "string",
       "enum": [
        "age_limited",
        "existing_customers",
        "occupation_membership",
        "organisation_only",
        "pensioner",
        "region_limited",
        "staff",
        "student",
        "via_third_party"
       ]
      }
     },
     "deposit_min": {
      "type": [
       "number",
       "null"
      ],
      "description": "Smallest deposit in AUD that earns this rate: the greater of min_balance and tier_min."
     },
     "deposit_max": {
      "type": [
       "number",
       "null"
      ],
      "description": "Largest deposit in AUD that earns this rate: the lesser of max_balance and tier_max; null when unbounded."
     },
     "product_url": {
      "type": [
       "string",
       "null"
      ],
      "description": "The bank's own page or application link for the product, when published.",
      "format": "uri"
     },
     "bank_last_updated": {
      "type": [
       "string",
       "null"
      ],
      "description": "The bank's lastUpdated timestamp for the product.",
      "format": "date-time"
     }
    },
    "required": [
     "rank",
     "brand_label",
     "brand_slug",
     "product_label",
     "rate_pct",
     "interest_paid",
     "is_special",
     "conditions",
     "restrictions",
     "deposit_min",
     "deposit_max",
     "product_url",
     "bank_last_updated"
    ]
   },
   "TopRatesSlice": {
    "type": "object",
    "properties": {
     "segment": {
      "type": "string",
      "description": "Who is depositing."
     },
     "deposit": {
      "type": "integer",
      "description": "Reference deposit in AUD."
     },
     "term_months": {
      "type": "integer",
      "description": "Term in months."
     },
     "generated_at": {
      "type": "string",
      "description": "When this file's contents last changed (UTC).",
      "format": "date-time"
     },
     "data_as_of": {
      "type": [
       "string",
       "null"
      ],
      "description": "The latest lastUpdated timestamp any bank gave for a term deposit product, leaving out any later than fetched_at (a bank clock or time zone error); never later than fetched_at.",
      "format": "date-time"
     },
     "note": {
      "type": "string",
      "description": "What the file holds."
     },
     "before_answering": {
      "type": "string",
      "description": "Where to find what to ask a reader first."
     },
     "full_ranking": {
      "type": "string",
      "description": "The same bucket's best/ slice, every bank ranked.",
      "format": "uri"
     },
     "banks_ranked": {
      "type": "integer",
      "description": "Banks ranked in this bucket (top holds at most 10 of them)."
     },
     "top": {
      "type": "array",
      "items": {
       "$ref": "#/components/schemas/TopEntry"
      }
     },
     "top_all_note": {
      "type": "string",
      "description": "Whether products open only to certain occupations change the top 10."
     },
     "top_all": {
      "type": [
       "array",
       "null"
      ],
      "items": {
       "$ref": "#/components/schemas/TopEntry"
      },
      "description": "The top 10 with them in; null when it equals top."
     }
    },
    "required": [
     "segment",
     "deposit",
     "term_months",
     "banks_ranked",
     "top"
    ]
   },
   "RatesByPayment": {
    "type": "object",
    "properties": {
     "source": {
      "type": "string",
      "description": "Data source statement."
     },
     "licence_note": {
      "type": "string",
      "description": "Terms of reuse and the not-advice note."
     },
     "note": {
      "type": "string",
      "description": "Why the payment frequency has to be asked about."
     },
     "method": {
      "type": "string",
      "description": "How the figures are derived."
     },
     "segments": {
      "type": "array",
      "description": "Segments covered.",
      "items": {
       "type": "string"
      }
     },
     "reference_deposits": {
      "type": "array",
      "description": "Reference deposits in AUD.",
      "items": {
       "type": "integer"
      }
     },
     "terms": {
      "type": "array",
      "description": "Terms in months.",
      "items": {
       "type": "integer"
      }
     },
     "frequencies": {
      "type": "array",
      "description": "Every interest_paid value seen in the rankings.",
      "items": {
       "type": "string"
      }
     },
     "paid_before_maturity": {
      "type": "array",
      "description": "The frequencies that pay out during the term.",
      "items": {
       "type": "string"
      }
     },
     "frequency_counts": {
      "type": "object",
      "description": "interest_paid -> ranked entries paid that way.",
      "additionalProperties": {
       "type": "integer"
      }
     },
     "maturity_premium": {
      "type": "object",
      "description": "What needing interest before maturity costs, in percentage points of rate.",
      "additionalProperties": true
     },
     "best_rate": {
      "type": "object",
      "description": "segment -> deposit -> term -> the single best entry, or null.",
      "additionalProperties": {
       "type": "object",
       "additionalProperties": {
        "type": "object",
        "additionalProperties": {
         "type": [
          "object",
          "null"
         ],
         "additionalProperties": true
        }
       }
      }
     },
     "best_rate_note": {
      "type": "string",
      "description": "What that figure is and is not."
     },
     "best_by_frequency": {
      "type": "object",
      "description": "segment -> deposit -> term -> interest_paid -> the best rate paid that way, from every bank's rates rather than the one-per-bank ranking; rank is null when the entry is not in the ranking.",
      "additionalProperties": {
       "type": "object",
       "additionalProperties": {
        "type": "object",
        "additionalProperties": {
         "type": "object",
         "additionalProperties": true
        }
       }
      }
     },
     "best_by_frequency_note": {
      "type": "string",
      "description": "How to read best_by_frequency."
     },
     "condition_sets": {
      "type": "object",
      "additionalProperties": {
       "type": "array",
       "items": {
        "type": "string"
       }
      },
      "description": "Key -> the conditions, in the bank's words, that best_by_frequency entries point to."
     },
     "product_links": {
      "type": "object",
      "additionalProperties": {
       "type": "object",
       "properties": {
        "product_url": {
         "type": [
          "string",
          "null"
         ],
         "description": "The bank's own page or application link for the product, when published.",
         "format": "uri"
        },
        "terms_url": {
         "type": [
          "string",
          "null"
         ],
         "description": "The product's terms document.",
         "format": "uri"
        }
       }
      },
      "description": "Key -> the product page and terms document that best_by_frequency entries point to with links."
     }
    },
    "required": [
     "segments",
     "best_rate",
     "best_by_frequency",
     "maturity_premium"
    ]
   },
   "TermDepositAnswers": {
    "type": "object",
    "properties": {
     "note": {
      "type": "string",
      "description": "What the answers are and how current they are."
     },
     "answers": {
      "type": "array",
      "description": "One entry per question.",
      "items": {
       "type": "object",
       "properties": {
        "question": {
         "type": "string"
        },
        "short_answer": {
         "type": "string",
         "description": "The answer in a sentence."
        },
        "answer": {
         "type": "string",
         "description": "The full answer."
        },
        "table": {
         "type": "object",
         "description": "A table that goes with the answer: columns and rows of strings.",
         "additionalProperties": true
        },
        "evidence": {
         "type": "object",
         "description": "The values from this dataset the answer is built on.",
         "additionalProperties": true
        },
        "sources": {
         "type": "array",
         "items": {
          "type": "string"
         },
         "description": "Where the rules stated in the answer are published."
        }
       },
       "required": [
        "question",
        "short_answer",
        "answer"
       ]
      }
     }
    },
    "required": [
     "answers"
    ]
   },
   "TermDepositQuestionGuide": {
    "type": "object",
    "properties": {
     "note": {
      "type": "string",
      "description": "How to use the guide."
     },
     "commentary": {
      "type": "array",
      "description": "Figures in this dataset that a client will otherwise misread. Each entry has a topic and, depending on the kind, looks_fine_but_misleads with what_it_actually_means; looks_wrong_but_is_correct with why_it_is_correct; or known_gap with what_is_going_on. All carry what_to_do. Read it before quoting a rate.",
      "items": {
       "type": "object",
       "properties": {
        "topic": {
         "type": "string"
        }
       },
       "required": [
        "topic"
       ],
       "additionalProperties": true
      }
     },
     "commentary_note": {
      "type": "string",
      "description": "What the commentary covers."
     },
     "rates_are_advertised": {
      "type": "string",
      "description": "What these rates are and are not."
     },
     "questions": {
      "type": "array",
      "description": "One entry per question readers ask.",
      "items": {
       "type": "object",
       "properties": {
        "question": {
         "type": "string"
        },
        "also_asked_as": {
         "type": "array",
         "items": {
          "type": "string"
         },
         "description": "Other wordings of the same question."
        },
        "has_no_single_answer": {
         "type": "boolean",
         "description": "True when the question cannot be answered without the inputs below."
        },
        "ask_the_reader_first": {
         "type": "array",
         "description": "Inputs that select the data; most_often_missed flags the one usually skipped.",
         "items": {
          "type": "object",
          "additionalProperties": true
         }
        },
        "also_ask": {
         "type": "array",
         "description": "Context this dataset does not hold but which changes what the reader should do; in_this_dataset names the field where the dataset holds the bank's own statement on it.",
         "items": {
          "type": "object",
          "additionalProperties": true
         }
        },
        "then_read": {
         "type": "object",
         "additionalProperties": true,
         "description": "The file and field that answer the question."
        },
        "for_the_top_ten": {
         "type": "object",
         "additionalProperties": true,
         "description": "The compact top/ file for the bucket."
        },
        "for_the_full_ranking": {
         "type": "object",
         "additionalProperties": true
        },
        "say_as_well": {
         "type": "string",
         "description": "What to tell the reader alongside the rate."
        }
       },
       "required": [
        "question"
       ]
      }
     }
    },
    "required": [
     "questions"
    ]
   },
   "BrandFile": {
    "type": "object",
    "properties": {
     "source": {
      "type": "string",
      "description": "Data source statement."
     },
     "licence_note": {
      "type": "string",
      "description": "Terms of reuse and the not-advice note."
     },
     "brand": {
      "type": "string",
      "description": "Brand name exactly as in the CDR Register."
     },
     "brand_label": {
      "type": "string",
      "description": "Display name for the brand (register name tidied, e.g. 'CommFCU' -> 'Community First Bank')."
     },
     "brand_slug": {
      "type": "string",
      "description": "Stable URL slug for the brand; key for brands/{brand_slug}.json and the per-bank page."
     },
     "legal_entity_abn": {
      "type": [
       "string",
       "null"
      ],
      "description": "ABN of the data holder's legal entity."
     },
     "logo_uri": {
      "type": [
       "string",
       "null"
      ],
      "description": "Brand logo from the CDR Register.",
      "format": "uri"
     },
     "public_base_uri": {
      "type": [
       "string",
       "null"
      ],
      "description": "The bank's CDR public base URI.",
      "format": "uri"
     },
     "bank_last_updated": {
      "type": [
       "string",
       "null"
      ],
      "description": "The bank's lastUpdated timestamp for the product.",
      "format": "date-time"
     },
     "status": {
      "type": [
       "string",
       "null"
      ],
      "description": "Fetch status for this brand (ok, no_products, error ...)."
     },
     "at_a_glance": {
      "$ref": "#/components/schemas/BrandAtAGlance"
     },
     "guarantee": {
      "type": [
       "object",
       "null"
      ],
      "additionalProperties": true,
      "description": "Other brands that are the same bank (ADI) for the Financial Claims Scheme: shares_limit_with are named on APRA's list, so deposits there and here count towards one $250,000 per account holder; may_share_limit_with share the ABN but APRA does not name them; foreign_owned_incorporated_in_australia marks a foreign-owned bank set up as an Australian company, whose deposits the scheme covers. null when there is nothing beyond the general rule."
     },
     "application_notes": {
      "oneOf": [
       {
        "$ref": "#/components/schemas/ApplicationNotes"
       },
       {
        "type": "null"
       }
      ],
      "description": "What the bank's terms say about proving who you are, your tax file number and non-resident withholding; null where the terms do not say or could not be read."
     },
     "grace_period": {
      "oneOf": [
       {
        "$ref": "#/components/schemas/GracePeriod"
       },
       {
        "type": "null"
       }
      ],
      "description": "The window after an automatic rollover in which the deposit can still be changed or closed; null when the bank's terms do not state one, or could not be read. grace_period_check says which."
     },
     "grace_period_check": {
      "oneOf": [
       {
        "$ref": "#/components/schemas/GraceCheck"
       },
       {
        "type": "null"
       }
      ],
      "description": "Whether the bank's terms were read at all, and whether they state a grace period. Read this before treating a null grace_period as an absence."
     },
     "products": {
      "type": "array",
      "items": {
       "$ref": "#/components/schemas/ProductSummary"
      }
     },
     "rows": {
      "type": "array",
      "description": "This bank's rows from rates.json.",
      "items": {
       "$ref": "#/components/schemas/RateRow"
      }
     }
    },
    "required": [
     "brand",
     "brand_slug",
     "at_a_glance",
     "products",
     "rows"
    ]
   },
   "BrandAtAGlance": {
    "type": "object",
    "description": "The bank's best rate per segment and standard term in a few kB, placed before products and rows so a client that truncates the file can still answer what the bank pays. Each line is the bank's own entry in best/{segment}/{deposit}/{term}.json for the reference_deposits listed.",
    "properties": {
     "note": {
      "type": "string",
      "description": "How to read at_a_glance."
     },
     "rates": {
      "type": "array",
      "items": {
       "type": "object",
       "properties": {
        "segments": {
         "type": "array",
         "description": "Segments the line applies to.",
         "items": {
          "type": "string",
          "enum": [
           "personal",
           "smsf",
           "business"
          ]
         }
        },
        "term_months": {
         "type": "integer",
         "description": "Standard term in months (a row for a range of terms appears at each term it covers)."
        },
        "rate_pct": {
         "type": "number",
         "description": "Annual interest rate as a percentage, rounded to two decimals."
        },
        "interest_paid": {
         "type": "string",
         "description": "How often interest is paid, derived from the bank's application frequency and text.",
         "enum": [
          "at_maturity",
          "annually",
          "half_yearly",
          "quarterly",
          "monthly",
          "unknown"
         ]
        },
        "product_label": {
         "type": "string",
         "description": "The product, as named on the bank's pages."
        },
        "deposit_min": {
         "type": [
          "number",
          "null"
         ],
         "description": "Smallest deposit in AUD across the bank's tiers giving this rate."
        },
        "deposit_max": {
         "type": [
          "number",
          "null"
         ],
         "description": "Largest deposit in AUD across those tiers; null for no maximum."
        },
        "reference_deposits": {
         "type": "array",
         "description": "The best/ bucket deposits this line is the bank's entry for.",
         "items": {
          "type": "integer"
         }
        },
        "is_special": {
         "type": "boolean",
         "description": "True for promotional, introductory or bonus rates (by rate type or the bank's wording)."
        },
        "conditions": {
         "type": [
          "string",
          "null"
         ],
         "description": "Key into condition_sets; null when the rate carries no condition."
        },
        "other_frequencies": {
         "type": "object",
         "additionalProperties": {
          "type": "string"
         },
         "description": "interest_paid -> the bank's best rate paid that way for the same bucket, e.g. \"4.8%\", with the product label when it is another product."
        },
        "via_third_party": {
         "type": "boolean",
         "description": "Present and true when this line's rate is sold only through a broker or intermediary."
        },
        "best_direct": {
         "type": [
          "string",
          "null"
         ],
         "description": "With via_third_party: the bank's best rate for the same bucket bought from the bank itself, null when it has none."
        }
       }
      }
     },
     "condition_sets": {
      "type": "object",
      "additionalProperties": {
       "type": "array",
       "items": {
        "type": "string"
       }
      },
      "description": "Key -> the conditions, in the bank's wording, that a rates line carries."
     },
     "off_standard_terms_in_rows": {
      "type": "array",
      "description": "Terms in months the bank publishes that are not standard terms; their rates are in rows.",
      "items": {
       "type": "integer"
      }
     }
    }
   },
   "ApplicationRequirements": {
    "type": "object",
    "description": "What the bank's feed says a depositor must be, hold or produce before this product is open to them, typed from its CDR eligibility and constraint entries. Wording is the bank's own.",
    "properties": {
     "opening_deposit": {
      "type": [
       "number",
       "null"
      ],
      "description": "Opening balance the bank requires in AUD, where it states one separately from min_balance."
     },
     "min_age": {
      "type": [
       "integer",
       "null"
      ],
      "description": "Youngest age the product is open to, where the bank states one."
     },
     "max_age": {
      "type": [
       "integer",
       "null"
      ],
      "description": "Oldest age the product is open to (youth accounts), where the bank states one."
     },
     "abn_required": {
      "type": "boolean",
      "description": "True where the bank requires an active ABN."
     },
     "membership_required": {
      "type": "boolean",
      "description": "True where the depositor must be, or become, a member of the mutual first."
     },
     "platform_only": {
      "type": "boolean",
      "description": "True where the product is sold only through a deposit platform or accredited intermediary, not direct."
     },
     "requirements": {
      "type": "array",
      "description": "Every stated requirement in reading order: who you must be, what you must already hold, then how to get in.",
      "items": {
       "type": "object",
       "properties": {
        "kind": {
         "type": "string",
         "description": "What sort of requirement it is.",
         "enum": [
          "entity",
          "residency",
          "age",
          "membership",
          "abn",
          "external_account",
          "relationship",
          "platform",
          "other"
         ]
        },
        "text": {
         "type": "string",
         "description": "The bank's own wording."
        }
       },
       "required": [
        "kind",
        "text"
       ]
      }
     },
     "barriers": {
      "type": "array",
      "description": "Requirements that shut a depositor out of the product rather than describe them: membership, platform, relationship. Empty when anyone eligible for the segment can apply directly.",
      "items": {
       "type": "string",
       "enum": [
        "membership",
        "platform",
        "relationship"
       ]
      }
     }
    },
    "required": [
     "requirements",
     "barriers",
     "abn_required",
     "membership_required",
     "platform_only"
    ]
   },
   "ApplicationNotes": {
    "type": "object",
    "description": "Three things the application asks for that the bank's product data never carries, each quoted from the bank's terms and conditions.",
    "properties": {
     "identity": {
      "type": "object",
      "description": "Proving who you are.",
      "properties": {
       "quote": {
        "type": "string",
        "description": "The bank's own sentence."
       },
       "evidence": {
        "$ref": "#/components/schemas/Evidence"
       }
      }
     },
     "tfn": {
      "type": "object",
      "description": "Your tax file number, and what happens without one.",
      "properties": {
       "quote": {
        "type": "string",
        "description": "The bank's own sentence."
       },
       "evidence": {
        "$ref": "#/components/schemas/Evidence"
       }
      }
     },
     "withholding": {
      "type": "object",
      "description": "Withholding on interest paid to a non-resident.",
      "properties": {
       "quote": {
        "type": "string",
        "description": "The bank's own sentence."
       },
       "non_resident_rate_pct": {
        "type": [
         "number",
         "null"
        ],
        "description": "The rate that sentence states, as a percentage."
       },
       "evidence": {
        "$ref": "#/components/schemas/Evidence"
       }
      }
     },
     "terms_url": {
      "type": [
       "string",
       "null"
      ],
      "description": "The document the quotes came from.",
      "format": "uri"
     }
    }
   },
   "GraceCheck": {
    "type": "object",
    "description": "What is actually known about this bank's grace period. `stated` means the terms state one and grace_period carries it. `not_stated` is a finding in its own right: the terms were read in full and commit to no grace period, and the evidence is the document that was read. `not_checked` means no document could be read, and nothing should be inferred from it.",
    "properties": {
     "outcome": {
      "type": "string",
      "description": "What is known.",
      "enum": [
       "stated",
       "not_stated",
       "not_checked"
      ]
     },
     "reason": {
      "type": [
       "string",
       "null"
      ],
      "description": "For not_checked, why the document could not be read; for not_stated, what was done."
     },
     "evidence": {
      "oneOf": [
       {
        "$ref": "#/components/schemas/Evidence"
       },
       {
        "type": "null"
       }
      ]
     }
    },
    "required": [
     "outcome"
    ]
   },
   "Evidence": {
    "type": "object",
    "description": "Why this fact says what it says, in a form another reader can re-check without guessing: the page that was read, what the server answered, the hash of the text that was read, when that exact text was first seen, and which rule matched. The daily build re-reads the page and confirms the quoted sentence is still in it; a fact whose sentence has gone is withheld from this file, so anything visible here verified on the last run.",
    "properties": {
     "url": {
      "type": [
       "string",
       "null"
      ],
      "description": "The document or endpoint the quote was read from.",
      "format": "uri"
     },
     "http_status": {
      "type": [
       "integer",
       "null"
      ],
      "description": "What the server answered when it was last read."
     },
     "fetched_via": {
      "type": [
       "string",
       "null"
      ],
      "description": "How it was read.",
      "enum": [
       "http",
       "browser",
       "cdr_feed"
      ]
     },
     "content_sha256": {
      "type": [
       "string",
       "null"
      ],
      "description": "SHA-256 of the extracted text that was read, so a change is detectable."
     },
     "first_seen_at": {
      "type": [
       "string",
       "null"
      ],
      "description": "When this exact text was first seen; it moves only when the document changes.",
      "format": "date-time"
     },
     "rule": {
      "type": "string",
      "description": "Which extraction rule matched, e.g. grace.terms_document or application.tfn."
     },
     "stale": {
      "type": "boolean",
      "description": "Always false here: a fact whose sentence could no longer be found is withheld."
     }
    },
    "required": [
     "url",
     "rule",
     "stale"
    ]
   },
   "GracePeriod": {
    "type": "object",
    "description": "The grace period after an automatic rollover, read out of the bank's own terms and conditions. Every field comes from the quoted sentence; nothing is inferred.",
    "properties": {
     "days": {
      "type": "integer",
      "description": "Length of the window.",
      "minimum": 1
     },
     "basis": {
      "type": "string",
      "description": "Whether the days are counted as calendar or business days.",
      "enum": [
       "calendar",
       "business"
      ]
     },
     "also_days": {
      "type": [
       "integer",
       "null"
      ],
      "description": "Second length, where the bank states the window as the longer of two."
     },
     "also_basis": {
      "type": [
       "string",
       "null"
      ],
      "description": "Counting basis of also_days.",
      "enum": [
       "calendar",
       "business"
      ]
     },
     "combine": {
      "type": [
       "string",
       "null"
      ],
      "description": "How the two lengths combine; only longer_of occurs.",
      "enum": [
       "longer_of"
      ]
     },
     "day_one": {
      "type": [
       "string",
       "null"
      ],
      "description": "maturity where the bank states the maturity date is day 1, so the window runs out a day sooner than it reads; null where the terms do not say.",
      "enum": [
       "maturity"
      ]
     },
     "end_rule": {
      "type": [
       "string",
       "null"
      ],
      "description": "preceding_business_day where the window is cut short, not extended, when it would end on a Sunday or public holiday; null where the terms do not say.",
      "enum": [
       "preceding_business_day"
      ]
     },
     "label": {
      "type": "string",
      "description": "The length in words, e.g. '7 calendar days'."
     },
     "deadline_note": {
      "type": [
       "string",
       "null"
      ],
      "description": "How day_one and end_rule change the real deadline, in words."
     },
     "quote": {
      "type": "string",
      "description": "The sentence in the bank's terms this was read from."
     },
     "source": {
      "type": "string",
      "description": "Where the clause was read: the bank's terms document, or a CDR product feature.",
      "enum": [
       "terms_document",
       "cdr_feature"
      ]
     },
     "terms_url": {
      "type": [
       "string",
       "null"
      ],
      "description": "The terms document the quote came from; null when it came from the CDR feed.",
      "format": "uri"
     },
     "evidence": {
      "$ref": "#/components/schemas/Evidence"
     }
    },
    "required": [
     "days",
     "basis",
     "label",
     "quote",
     "source"
    ]
   },
   "BrandRegister": {
    "type": "object",
    "properties": {
     "source": {
      "type": "string",
      "description": "Data source statement."
     },
     "brands": {
      "type": "array",
      "items": {
       "type": "object",
       "description": "A CDR Register data holder brand, as published.",
       "properties": {
        "dataHolderBrandId": {
         "type": "string"
        },
        "brandName": {
         "type": "string"
        },
        "industries": {
         "type": "array",
         "items": {
          "type": "string"
         }
        },
        "logoUri": {
         "type": [
          "string",
          "null"
         ]
        },
        "publicBaseUri": {
         "type": "string"
        },
        "abn": {
         "type": [
          "string",
          "null"
         ]
        },
        "acn": {
         "type": [
          "string",
          "null"
         ]
        },
        "lastUpdated": {
         "type": [
          "string",
          "null"
         ]
        }
       }
      }
     }
    },
    "required": [
     "brands"
    ]
   },
   "DatasetIndex": {
    "type": "object",
    "properties": {
     "dataset": {
      "type": "string",
      "description": "Dataset name."
     },
     "page": {
      "type": "string",
      "description": "Human-readable page for the dataset.",
      "format": "uri"
     },
     "start_here": {
      "type": [
       "object",
       "null"
      ],
      "description": "The small file that answers most questions here: answer_file (a URL template), inputs (how to fill it), example (a filled-in URL) and sometimes also (the next file for a common variant).",
      "properties": {
       "answer_file": {
        "type": "string",
        "description": "URL template of the answer file."
       },
       "inputs": {
        "type": "string",
        "description": "What each placeholder takes."
       },
       "example": {
        "type": "string",
        "description": "A filled-in answer file URL.",
        "format": "uri"
       },
       "also": {
        "type": "string",
        "description": "Another file for a common variant of the question."
       },
       "lookup": {
        "type": "string",
        "description": "Where present: a /v1/lookup URL that takes the reader's own numbers, applies the bucket rules and redirects to the answer file.",
        "format": "uri"
       },
       "compare": {
        "type": "string",
        "description": "Where present: a /v1/compare URL that ranks every rate at the reader's exact amount and answers with JSON directly.",
        "format": "uri"
       }
      }
     },
     "generated_at": {
      "type": "string",
      "description": "When this index was written, UTC, YYYY-MM-DDTHH:MM:SSZ.",
      "format": "date-time",
      "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}Z$"
     },
     "fetched_at": {
      "type": "string",
      "description": "When the source was last fetched, UTC, YYYY-MM-DDTHH:MM:SSZ.",
      "format": "date-time",
      "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}Z$"
     },
     "data_as_of": {
      "type": "string",
      "description": "How current the data is: a date (YYYY-MM-DD) or a UTC timestamp (YYYY-MM-DDTHH:MM:SSZ); data_as_of_basis says what it means here.",
      "pattern": "^\\d{4}-\\d{2}-\\d{2}(T\\d{2}:\\d{2}:\\d{2}Z)?$"
     },
     "data_as_of_basis": {
      "type": "string",
      "description": "One sentence saying what data_as_of means for this dataset."
     },
     "source": {
      "type": "string",
      "description": "Data source statement."
     },
     "licence_note": {
      "type": "string",
      "description": "Terms of reuse and the not-advice note."
     },
     "licences": {
      "type": "array",
      "description": "What may be reused and on what terms, layer by layer: each layer's source, the fields it covers, its licence and the attribution it asks for. The last layer is Deep Almanac's own work (CC BY 4.0), covering every field no other layer names. Reusing a field means meeting the terms of the layer that covers it.",
      "items": {
       "type": "object",
       "required": [
        "layer",
        "covers",
        "licence",
        "licence_url",
        "attribution"
       ],
       "properties": {
        "layer": {
         "type": "string",
         "description": "The source."
        },
        "covers": {
         "type": "string",
         "description": "The fields it covers."
        },
        "licence": {
         "type": "string",
         "description": "Its licence, or why there is none."
        },
        "licence_url": {
         "type": [
          "string",
          "null"
         ],
         "format": "uri",
         "description": "The licence's own page, where it has one."
        },
        "attribution": {
         "type": "string",
         "description": "The credit the layer asks for."
        }
       }
      }
     },
     "questions": {
      "type": "string",
      "description": "This dataset's questions.json: what to ask the reader first and which file answers each.",
      "format": "uri"
     },
     "openapi": {
      "type": "string",
      "description": "This dataset's OpenAPI document.",
      "format": "uri"
     },
     "status": {
      "type": "string",
      "description": "https://deepalmanac.com/status.json: when every dataset was last fetched and when it counts as overdue.",
      "format": "uri"
     },
     "llms": {
      "type": "string",
      "description": "https://deepalmanac.com/llms.txt: the site's guide for language models.",
      "format": "uri"
     },
     "files": {
      "type": "array",
      "description": "Every top-level file this dataset publishes, as absolute URLs.",
      "items": {
       "type": "string",
       "format": "uri"
      }
     },
     "file_guide": {
      "type": "array",
      "description": "What each of those files holds, in the same order.",
      "items": {
       "type": "object",
       "properties": {
        "file": {
         "type": "string"
        },
        "url": {
         "type": "string",
         "format": "uri"
        },
        "description": {
         "type": "string"
        }
       }
      }
     },
     "answering": {
      "$ref": "#/components/schemas/TermDepositQuestionGuide"
     },
     "best_dir": {
      "type": "object",
      "description": "The per-bucket slices of best.json; read one of these rather than the whole file.",
      "properties": {
       "path": {
        "type": "string"
       },
       "url_template": {
        "type": "string"
       },
       "description": {
        "type": "string"
       },
       "segments": {
        "type": "array",
        "items": {
         "type": "string"
        }
       },
       "reference_deposits": {
        "type": "array",
        "items": {
         "type": "integer"
        }
       },
       "terms": {
        "type": "array",
        "items": {
         "type": "integer"
        }
       },
       "count": {
        "type": "integer"
       }
      }
     },
     "top_dir": {
      "type": "object",
      "description": "The compact top-10 sibling of each best/ slice; read one of these first.",
      "properties": {
       "path": {
        "type": "string"
       },
       "url_template": {
        "type": "string"
       },
       "description": {
        "type": "string"
       },
       "segments": {
        "type": "array",
        "items": {
         "type": "string"
        }
       },
       "reference_deposits": {
        "type": "array",
        "items": {
         "type": "integer"
        }
       },
       "terms": {
        "type": "array",
        "items": {
         "type": "integer"
        }
       },
       "count": {
        "type": "integer"
       }
      }
     },
     "brands_dir": {
      "type": "object",
      "properties": {
       "path": {
        "type": "string"
       },
       "url_template": {
        "type": "string"
       },
       "page_template": {
        "type": "string"
       },
       "description": {
        "type": "string"
       },
       "count": {
        "type": "integer"
       },
       "brands": {
        "type": "array",
        "items": {
         "type": "object",
         "properties": {
          "brand": {
           "type": "string",
           "description": "Brand name exactly as in the CDR Register."
          },
          "brand_label": {
           "type": "string",
           "description": "Display name for the brand (register name tidied, e.g. 'CommFCU' -> 'Community First Bank')."
          },
          "brand_slug": {
           "type": "string",
           "description": "Stable URL slug for the brand; key for brands/{brand_slug}.json and the per-bank page."
          },
          "url": {
           "type": "string",
           "format": "uri"
          },
          "page": {
           "type": "string",
           "description": "The bank's page, /au/finance/banks/<brand_slug>/; its term deposits are the #term-deposits section.",
           "format": "uri"
          },
          "product_count": {
           "type": "integer"
          },
          "row_count": {
           "type": "integer"
          }
         }
        }
       }
      }
     },
     "source_dir": {
      "type": "object",
      "properties": {
       "path": {
        "type": "string"
       },
       "url_template": {
        "type": "string"
       },
       "description": {
        "type": "string"
       },
       "count": {
        "type": "integer"
       },
       "brand_count": {
        "type": "integer"
       }
      }
     }
    },
    "required": [
     "dataset",
     "page",
     "start_here",
     "generated_at",
     "fetched_at",
     "data_as_of",
     "data_as_of_basis",
     "source",
     "licence_note",
     "licences",
     "questions",
     "openapi",
     "status",
     "llms",
     "files",
     "brands_dir"
    ]
   },
   "SourceSnapshot": {
    "type": "object",
    "properties": {
     "snapshot_at": {
      "type": [
       "string",
       "null"
      ],
      "description": "When the current version of the product's CDR record (its source_snapshot) was first fetched; changes only when the bank's data changes.",
      "format": "date-time"
     },
     "brand": {
      "type": "string",
      "description": "Brand name exactly as in the CDR Register."
     },
     "brand_slug": {
      "type": "string",
      "description": "Stable URL slug for the brand; key for brands/{brand_slug}.json and the per-bank page."
     },
     "product_id": {
      "type": "string",
      "description": "The bank's CDR productId."
     },
     "cdr_url": {
      "type": [
       "string",
       "null"
      ],
      "description": "The live CDR product-detail endpoint.",
      "format": "uri"
     },
     "x_v": {
      "type": [
       "integer",
       "null"
      ],
      "description": "The x-v header value the endpoint required."
     },
     "how_to_fetch": {
      "type": "string",
      "description": "A curl command that reproduces the fetch."
     },
     "note": {
      "type": "string",
      "description": "What this file is and what snapshot_at means."
     },
     "data": {
      "type": "object",
      "description": "The bank's CDR product detail response, verbatim."
     }
    },
    "required": [
     "snapshot_at",
     "brand_slug",
     "product_id",
     "data"
    ]
   }
  }
 }
}
