{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/karmacheck/json-schema/karmacheck-case-summary-schema.json",
  "title": "CaseSummary",
  "x-generated": "2026-11-09",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/karmacheck-cases-api-openapi.yml#/components/schemas/CaseSummary",
  "type": "object",
  "required": [
    "id",
    "crStamp",
    "crUserId",
    "caseTypeId",
    "caseType",
    "caseStatusId",
    "caseStatus",
    "resultType",
    "modStamp",
    "packageName",
    "packageId",
    "groupProfileId",
    "groupName",
    "resultTypeId",
    "caseInvitationId",
    "companyId",
    "companyName",
    "invitationEmail",
    "isMinorCandidate",
    "hasParentalConsent",
    "isCustomerProvidedPii",
    "archived",
    "orderedStamp",
    "companyReadableName"
  ],
  "properties": {
    "id": {
      "type": "string",
      "description": "The unique identifier of the case."
    },
    "crStamp": {
      "type": "string",
      "format": "date-time"
    },
    "crUserId": {
      "type": "string"
    },
    "caseTypeId": {
      "type": "string",
      "enum": [
        "cde61186-4f22-45f4-9e19-429061365bce"
      ]
    },
    "caseType": {
      "type": "string",
      "enum": [
        "Background Check"
      ]
    },
    "caseStatusId": {
      "$ref": "#/$defs/CaseStatusID"
    },
    "caseStatus": {
      "$ref": "#/$defs/CaseStatus"
    },
    "secondaryCaseStatusId": {
      "$ref": "#/$defs/CaseSecondaryStatusID"
    },
    "secondaryStatus": {
      "$ref": "#/$defs/CaseSecondaryStatus"
    },
    "resultType": {
      "$ref": "#/$defs/CaseResult"
    },
    "modStamp": {
      "type": "string",
      "format": "date-time"
    },
    "candidateId": {
      "type": "string"
    },
    "candidateEmail": {
      "type": "string"
    },
    "candidateGivenName": {
      "type": "string"
    },
    "candidateFamilyName": {
      "type": "string"
    },
    "packageName": {
      "type": "string"
    },
    "packageId": {
      "type": "string"
    },
    "packageCompanyName": {
      "type": "string"
    },
    "billingReferenceId": {
      "type": "string"
    },
    "groupProfileId": {
      "type": "string"
    },
    "groupName": {
      "type": "string"
    },
    "resultTypeId": {
      "$ref": "#/$defs/CaseResultID"
    },
    "caseInvitationId": {
      "type": "string"
    },
    "invitationGivenName": {
      "type": "string"
    },
    "invitationFamilyName": {
      "type": "string"
    },
    "invitationStatusId": {
      "$ref": "#/$defs/InvitationStatusID"
    },
    "invitationStatusName": {
      "$ref": "#/$defs/InvitationStatus"
    },
    "companyId": {
      "type": "string"
    },
    "companyName": {
      "type": "string"
    },
    "companyCommonName": {
      "type": "string"
    },
    "companyLogo": {
      "type": "string"
    },
    "serviceGroupId": {
      "type": "string"
    },
    "invitationEmail": {
      "type": "string"
    },
    "isMinorCandidate": {
      "type": "integer",
      "description": "A boolean integer: 1 (true) if the candidate is a minor; 0 (false) otherwise."
    },
    "hasParentalConsent": {
      "type": "integer",
      "description": "A boolean integer: 1 (true) if the candidate is a minor and parental consent has been provided; 0 (false) otherwise."
    },
    "isCustomerProvidedPii": {
      "type": "integer",
      "description": "A boolean integer: 1 (true) if the case was ordered using the customer-provided PII flow; 0 (false) otherwise."
    },
    "archived": {
      "type": "integer",
      "description": "A boolean integer: 1 (true) if the case is archived; 0 (false) otherwise."
    },
    "adverseActionId": {
      "type": "string"
    },
    "adverseActionStatusName": {
      "$ref": "#/$defs/AdverseActionStatusName"
    },
    "adverseActionStatusId": {
      "$ref": "#/$defs/AdverseActionStatusID"
    },
    "apiTrackingCode": {
      "type": "string"
    },
    "apiTrackingUser": {
      "type": "string"
    },
    "orderedStamp": {
      "type": "string",
      "format": "date-time"
    },
    "beginOnboardingStamp": {
      "type": "string",
      "format": "date-time"
    },
    "completedOnboardingStamp": {
      "type": "string",
      "format": "date-time"
    },
    "beginProcessingStamp": {
      "type": "string",
      "format": "date-time"
    },
    "completedInitialProcessingStamp": {
      "type": "string",
      "format": "date-time"
    },
    "completedLatestProcessingStamp": {
      "type": "string",
      "format": "date-time"
    },
    "companyReadableName": {
      "type": "string"
    }
  },
  "$defs": {
    "AdverseActionStatusID": {
      "title": "AdverseActionStatusID",
      "type": "string",
      "enum": [
        "bb34dc52-4e3b-4baf-8e0b-b6603f9e2a84",
        "ebbcb8e0-a0e7-43fb-930e-e52db4032d47",
        "d61950cb-00aa-4839-9da5-0c97f236c813",
        "fb32cc36-7eb6-47fa-ad4a-2635e99f197a"
      ],
      "description": "The status ID of an adverse action on a candidate.\n\n- Pre-Adverse: bb34dc52-4e3b-4baf-8e0b-b6603f9e2a84\n- Dispute: ebbcb8e0-a0e7-43fb-930e-e52db4032d47\n- Cancel: d61950cb-00aa-4839-9da5-0c97f236c813\n- Post: fb32cc36-7eb6-47fa-ad4a-2635e99f197a\n"
    },
    "AdverseActionStatusName": {
      "title": "AdverseActionStatusName",
      "type": "string",
      "enum": [
        "Pre-Adverse",
        "Dispute",
        "Cancel",
        "Post"
      ]
    },
    "CaseResult": {
      "title": "CaseResult",
      "type": "string",
      "enum": [
        "Open",
        "Placed",
        "Pre-Adverse Action",
        "Dispute Adverse Action",
        "Adverse Action"
      ]
    },
    "CaseResultID": {
      "title": "CaseResultID",
      "type": "string",
      "description": "The ID of the result for the case. See [Case-level result and statuses](docs/reference/case-status.md) for more details about each possible result.\n\n- Open: 8c94f0d9-57c9-4c7b-be95-5ec309cff330\n- Placed: bbbd9fa2-598f-43f6-8363-b8b55e7aa777\n- Pre-Adverse Action: 14bba02d-e6c7-45bf-a993-e28c306303c6\n- Dispute Adverse Action: result-type-dispute-adverse\n- Adverse Action: d082a629-5dff-4303-83ae-897776ebcb17",
      "enum": [
        "8c94f0d9-57c9-4c7b-be95-5ec309cff330",
        "bbbd9fa2-598f-43f6-8363-b8b55e7aa777",
        "14bba02d-e6c7-45bf-a993-e28c306303c6",
        "result-type-dispute-adverse",
        "d082a629-5dff-4303-83ae-897776ebcb17"
      ]
    },
    "CaseSecondaryStatus": {
      "title": "CaseSecondaryStatus",
      "type": "string",
      "enum": [
        "Waiting for Authorization",
        "Authorization in Progress",
        "Waiting for Parental Consent",
        "Verifying Candidate Input",
        "Reviewing Order",
        "Consider",
        "Canceled"
      ]
    },
    "CaseSecondaryStatusID": {
      "title": "CaseSecondaryStatusID",
      "type": "string",
      "enum": [
        "8e0c9756-a42f-4a7d-b8e2-412a0f6b9dea",
        "c5f240cb-5221-451c-8bd1-4be5bf348ce5",
        "b2c707af-091f-4d07-9546-4a1453f939e5",
        "status-type-verifying-cand-input",
        "status-type-reviewing-order",
        "status-type-consider",
        "4155584b-708c-4108-86a8-8f3321b9b17c"
      ],
      "description": "The ID for the secondary status of a case. See [Case-level result and statuses](docs/reference/case-status.md) for more details about each possible status.\n\n- Waiting for Authorization: 8e0c9756-a42f-4a7d-b8e2-412a0f6b9dea\n- Authorization in Progress: c5f240cb-5221-451c-8bd1-4be5bf348ce5\n- Waiting for Parental Consent: b2c707af-091f-4d07-9546-4a1453f939e5\n- Verifying Candidate PII Input: status-type-verifying-cand-input\n- Reviewing Order: status-type-reviewing-order\n- Consider (completed needs review): status-type-consider\n- Canceled: 4155584b-708c-4108-86a8-8f3321b9b17c  "
    },
    "CaseStatus": {
      "title": "CaseStatus",
      "type": "string",
      "enum": [
        "Pending",
        "Blocked",
        "Complete",
        "Adjudicated"
      ]
    },
    "CaseStatusID": {
      "title": "CaseStatusID",
      "type": "string",
      "enum": [
        "d894b8a0-937e-46b1-8799-15bad611844f",
        "93827364-937e-46b1-8799-777366485997",
        "22334455-937e-46b1-8799-887766554433",
        "47463524-937e-46b1-8799-873f63e7b402"
      ],
      "description": "The ID for the primary status of a case. See [Case-level result and statuses](docs/reference/case-status.md) for more details about each possible status.\n\n- Pending (in progress): d894b8a0-937e-46b1-8799-15bad611844f\n- Blocked (blocked): 93827364-937e-46b1-8799-777366485997\n- Complete (done): 22334455-937e-46b1-8799-887766554433\n- Adjudicated (decision made): 47463524-937e-46b1-8799-873f63e7b402"
    },
    "InvitationStatus": {
      "title": "InvitationStatus",
      "type": "string",
      "enum": [
        "pending",
        "expired",
        "completed",
        "cancelled"
      ],
      "description": "The status of onboarding invitation to a candidate."
    },
    "InvitationStatusID": {
      "title": "InvitationStatusID",
      "type": "string",
      "enum": [
        "3f5e6898-6641-4685-8ee0-1363b7e10c98",
        "b5af27f7-8a03-4820-b2bd-82587dcacf5b",
        "d1962405-dd97-48f2-bede-530c2895481f",
        "0f6acacc-71c4-43ec-80fa-941ff71c0c16"
      ],
      "description": "The status ID of a case invitation. See [Invitation status](docs/reference/invitation-status.md) for more details about each possible status.\n\n- pending: 3f5e6898-6641-4685-8ee0-1363b7e10c98\n- expired: b5af27f7-8a03-4820-b2bd-82587dcacf5b\n- completed: d1962405-dd97-48f2-bede-530c2895481f\n- cancelled: 0f6acacc-71c4-43ec-80fa-941ff71c0c16 "
    }
  }
}