---
title: "PendingApplicationStatsResponseModel"
url: "https://developers.zinnia.com/apis/policy-service-0-1-0/versions/8306e031-b41c-452a-a7ed-d73d65602086/schemas/PendingApplicationStatsResponseModel"
---

> Full API specification: https://developers.zinnia.com/apis/policy-service-0-1-0/versions/8306e031-b41c-452a-a7ed-d73d65602086.md

# PendingApplicationStatsResponseModel

## OpenAPI definition

```yaml
openapi: 3.0.0
info:
  title: Policy Service
  version: 0.0.21
servers:
  - url: https://qa.api.zinnia.io
components:
  schemas:
    PendingApplicationAgeBucket:
      type: object
      properties:
        label:
          type: string
          description: Display label for the bucket. The final bucket is suffixed with "+"
            and is open-ended, so "6+" holds cases 6 or more days old. Read
            fromDays/toDays rather than inferring bounds from the label.
          example: "3"
        fromDays:
          type: number
          description: Inclusive lower bound of the bucket, as case age in days
          example: 2
        toDays:
          type: number
          description: Exclusive upper bound of the bucket, as case age in days. Null on
            the final open-ended bucket.
          example: 3
          nullable: true
        count:
          type: number
          description: Number of pending applications falling in this age bucket
          example: 7
        counts:
          description: Breakdown of this bucket by case status
          type: array
          items:
            $ref: "#/components/schemas/CaseStatCount"
      required:
        - label
        - fromDays
        - toDays
        - count
        - counts
    CaseStatGroup:
      type: object
      properties:
        attribute:
          type: string
          description: Grouping attribute name
          example: caseStatus
        counts:
          description: Counts by label for the attribute
          type: array
          items:
            $ref: "#/components/schemas/CaseStatCount"
      required:
        - attribute
        - counts
    CaseStatCount:
      type: object
      properties:
        label:
          type: string
          description: Label of the grouped value
          example: IN_PROGRESS
        value:
          type: number
          description: Count for the grouped label
          example: 12
      required:
        - label
        - value
    PendingApplicationStatsResponseModel:
      type: object
      properties:
        count:
          type: number
          description: Total number of matching pending applications. Equal to the sum of
            the age bucket counts, since the final bucket is open-ended.
          example: 100
        ageBuckets:
          description: Counts bucketed by case age in days, oldest bucket last
          type: array
          items:
            $ref: "#/components/schemas/PendingApplicationAgeBucket"
        stats:
          description: Counts grouped by each requested groupBy dimension
          type: array
          items:
            $ref: "#/components/schemas/CaseStatGroup"
      required:
        - count
        - ageBuckets
        - stats
```
