---
title: "CaseStatusComparisonResponse"
url: "https://developers.zinnia.com/apis/case-management-1-0-0/versions/0091226b-6452-4e75-93ce-4bbfe022aad5/schemas/CaseStatusComparisonResponse"
---

> Full API specification: https://developers.zinnia.com/apis/case-management-1-0-0/versions/0091226b-6452-4e75-93ce-4bbfe022aad5.md

# CaseStatusComparisonResponse

Response containing case status count comparison results

## OpenAPI definition

```yaml
openapi: 3.0.3
info:
  title: Case Management API
  version: 1.0.0
servers:
  - url: https://dev.api.zinnia.io/
    description: Dev Environment
  - url: https://qa.api.zinnia.io/
    description: QA Environment
  - url: https://uat.api.zinnia.io/
    description: UAT Environment
  - url: https://api.zinnia.io/
    description: PROD Environment
components:
  schemas:
    CaseStatusCountDiff:
      type: object
      description: Count comparison for a specific case status
      required:
        - caseStatus
        - mongoCount
        - elasticCount
        - difference
      properties:
        caseStatus:
          type: string
          description: The case status being compared
          example: OPEN
        mongoCount:
          type: integer
          format: int64
          description: Count from MongoDB for this status
          example: 250
        elasticCount:
          type: integer
          format: int64
          description: Count from Elasticsearch for this status
          example: 235
        difference:
          type: integer
          format: int64
          description: Absolute difference between the counts
          example: 15
    CaseStatusComparisonResponse:
      type: object
      description: Response containing case status count comparison results
      required:
        - matched
        - mongoTotal
        - elasticTotal
        - totalCountDifference
        - statusComparison
      properties:
        matched:
          type: boolean
          description: Whether the counts match between MongoDB and Elasticsearch
          example: false
        mongoTotal:
          type: integer
          format: int64
          description: Total count from MongoDB
          example: 1500
        elasticTotal:
          type: integer
          format: int64
          description: Total count from Elasticsearch
          example: 1480
        totalCountDifference:
          type: integer
          format: int64
          description: Absolute difference between total counts
          example: 20
        statusComparison:
          type: array
          items:
            $ref: "#/components/schemas/CaseStatusCountDiff"
          description: Detailed comparison for each case status
```
