{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/recurly/json-schema/recurly-tiers-schema.json",
  "title": "Tiers",
  "description": "If the `tier_type` is `flat`, then `tiers` must be absent. The `tiers` object must include one to many tiers with `ending_quantity` and `unit_amount_in_cents` for the desired currencies. There must be one tier with an `ending_quantity` of 999999999 which is the default if not provided.",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/recurly-plan-add-ons-api-openapi.yml#/components/schemas/Tiers",
  "type": "array",
  "items": {
    "$ref": "#/$defs/Tier"
  },
  "$defs": {
    "Tier": {
      "type": "object",
      "title": "Tier",
      "required": [
        "ending_quantity",
        "unit_amount_in_cents"
      ],
      "properties": {
        "ending_quantity": {
          "type": "integer",
          "title": "Ending quantity",
          "description": "Upper limit for the tier."
        },
        "unit_amount_in_cents": {
          "type": "integer",
          "title": "Unit amount in cents",
          "description": "Monetary amount to charge for a tier."
        }
      }
    }
  }
}