{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/perkville/json-schema/perkville-get-v2-challenges-view-response-schema.json",
  "title": "GetV2ChallengesViewResponse",
  "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/GetV2ChallengesViewResponse",
  "type": "object",
  "properties": {
    "business": {
      "type": "string"
    },
    "challenge_id": {
      "type": "integer"
    },
    "completed": {
      "type": "boolean"
    },
    "completion_dt": {
      "type": [
        "string",
        "null"
      ]
    },
    "completion_rewards": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "perk_id": {
            "type": "integer"
          },
          "title": {
            "type": "string"
          },
          "description": {
            "type": "string"
          },
          "fine_print": {
            "type": "string"
          },
          "points": {
            "type": "integer"
          },
          "type": {
            "type": "string"
          }
        }
      }
    },
    "description": {
      "type": "string"
    },
    "end_date": {
      "type": "string",
      "format": "date"
    },
    "fine_print": {
      "type": "string"
    },
    "incomplete_message": {
      "type": "string"
    },
    "ineligible_message": {
      "type": "string"
    },
    "join_dt": {
      "type": [
        "string",
        "null"
      ]
    },
    "join_message": {
      "type": "string"
    },
    "join_status": {
      "type": "string"
    },
    "loc_id": {
      "type": "integer"
    },
    "name": {
      "type": "string"
    },
    "require_active_membership": {
      "type": "boolean"
    },
    "requirements": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "challenge_perk_requirement_id": {
            "type": "integer"
          },
          "completed_requirement": {
            "type": "boolean"
          },
          "description": {
            "type": "string"
          },
          "detail_link": {
            "type": "string"
          },
          "display_order": {
            "type": [
              "string",
              "null"
            ]
          },
          "earned_quantity": {
            "type": "integer"
          },
          "required_quantity": {
            "type": "integer"
          },
          "title": {
            "type": "string"
          }
        }
      }
    },
    "restriction_reasons": {
      "type": "array",
      "items": {}
    },
    "slug": {
      "type": "string"
    },
    "start_date": {
      "type": "string",
      "format": "date"
    },
    "success_message": {
      "type": "string"
    },
    "use_membership_start_date": {
      "type": "boolean"
    },
    "user_can_join_challenge": {
      "type": "boolean"
    },
    "user_display_status": {
      "type": "string"
    },
    "user_end_date": {
      "type": [
        "string",
        "null"
      ]
    },
    "user_start_date": {
      "type": [
        "string",
        "null"
      ]
    },
    "valid_customer_attributes": {
      "type": "array",
      "items": {}
    }
  }
}