{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/perkville/json-schema/perkville-get-v2-levels-view-response-schema.json",
  "title": "GetV2LevelsViewResponse",
  "x-generated": "2026-11-16",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/_ae-authored/perkville-openapi-generated.yml#/components/schemas/GetV2LevelsViewResponse",
  "type": "object",
  "properties": {
    "badge_url": {
      "type": "string"
    },
    "business": {
      "type": "string"
    },
    "is_current_level": {
      "type": "boolean"
    },
    "level_id": {
      "type": "integer"
    },
    "name": {
      "type": "string"
    },
    "point_floor": {
      "type": "integer"
    },
    "require_active_membership": {
      "type": "boolean"
    },
    "unlockable_perks": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "perk_id": {
            "type": "integer"
          },
          "business": {
            "type": "string"
          },
          "title": {
            "type": "string"
          },
          "description": {
            "type": "string"
          },
          "points": {
            "type": "integer"
          },
          "type": {
            "type": "string"
          },
          "classification": {
            "type": "string"
          },
          "perk_use": {
            "type": "string"
          },
          "display_order": {
            "type": "integer"
          },
          "from_date": {
            "type": [
              "string",
              "null"
            ]
          },
          "to_date": {
            "type": [
              "string",
              "null"
            ]
          },
          "picture_card": {
            "type": [
              "string",
              "null"
            ]
          },
          "fine_print": {
            "type": "string"
          },
          "redemption_instructions": {
            "type": "string"
          },
          "external_reward_url": {
            "type": [
              "string",
              "null"
            ]
          },
          "required_level": {
            "type": "string"
          },
          "must_redeem_at_home_location": {
            "type": "boolean"
          },
          "redemption_limit_interval": {
            "type": "string"
          },
          "redemption_limit_interval_count": {
            "type": [
              "string",
              "null"
            ]
          },
          "redemption_limit_count": {
            "type": [
              "string",
              "null"
            ]
          },
          "user_redemption_limit_info": {
            "type": [
              "string",
              "null"
            ]
          },
          "valid_customer_attributes": {
            "type": "array",
            "items": {}
          },
          "can_redeem": {
            "type": "boolean"
          }
        }
      }
    },
    "unlockable_privileges": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "perk_id": {
            "type": "integer"
          },
          "business": {
            "type": "string"
          },
          "title": {
            "type": "string"
          },
          "description": {
            "type": "string"
          },
          "points": {
            "type": "integer"
          },
          "type": {
            "type": "string"
          },
          "classification": {
            "type": "string"
          },
          "perk_use": {
            "type": "string"
          },
          "display_order": {
            "type": "integer"
          },
          "from_date": {
            "type": [
              "string",
              "null"
            ]
          },
          "to_date": {
            "type": [
              "string",
              "null"
            ]
          },
          "picture_card": {
            "type": [
              "string",
              "null"
            ]
          },
          "fine_print": {
            "type": "string"
          },
          "redemption_instructions": {
            "type": "string"
          },
          "external_reward_url": {
            "type": [
              "string",
              "null"
            ]
          },
          "required_level": {
            "type": "string"
          },
          "must_redeem_at_home_location": {
            "type": "boolean"
          },
          "redemption_limit_interval": {
            "type": [
              "string",
              "null"
            ]
          },
          "redemption_limit_interval_count": {
            "type": [
              "string",
              "null"
            ]
          },
          "redemption_limit_count": {
            "type": [
              "string",
              "null"
            ]
          },
          "user_redemption_limit_info": {
            "type": [
              "string",
              "null"
            ]
          },
          "valid_customer_attributes": {
            "type": "array",
            "items": {}
          },
          "can_redeem": {
            "type": "boolean"
          }
        }
      }
    },
    "points_accumulated_toward_level": {
      "type": "integer"
    },
    "points_until_this_level": {
      "type": "integer"
    },
    "level_validity_interval": {
      "type": "string"
    },
    "level_valid_until_dt": {
      "type": "string",
      "format": "date"
    },
    "unlocked_dt": {
      "type": [
        "string",
        "null"
      ]
    }
  }
}