{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/lynx/main/json-schema/lynx-get-claims-response-schema.json",
  "title": "GetClaimsResponse",
  "x-generated": "2026-10-14",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/lynx-claims-service-api-openapi.yml#/components/schemas/GetClaimsResponse",
  "type": "object",
  "properties": {
    "clientOrg": {
      "$ref": "#/$defs/ClientOrgDto"
    },
    "memberClaims": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/MemberClaimDetailInfo"
      }
    }
  },
  "$defs": {
    "ClientOrgDto": {
      "type": "object",
      "properties": {
        "name": {
          "type": "string",
          "description": "The name of the client organization"
        }
      },
      "required": [
        "name"
      ]
    },
    "MemberAccountIdDto": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string",
          "format": "uuid",
          "description": "Unique identifier of the bank account"
        }
      },
      "required": [
        "id"
      ]
    },
    "MemberClaimDetailInfo": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string",
          "format": "uuid",
          "description": "The unique identifier of the claim"
        },
        "claimNumber": {
          "type": "string",
          "description": "The claim number"
        },
        "memberAccount": {
          "$ref": "#/$defs/MemberAccountIdDto"
        },
        "reimbursementType": {
          "type": "string",
          "description": " Method of reimbursement (ACH or CHECK)."
        },
        "status": {
          "type": "string",
          "description": "The status of the claim"
        },
        "claimAmount": {
          "type": "number",
          "description": "Total amount of the claim"
        },
        "approvedAmount": {
          "type": "number",
          "description": "The Approved Claim Amount"
        },
        "expenseDate": {
          "type": "string",
          "description": "Date of Expense"
        },
        "addDatetime": {
          "type": "string",
          "description": "Date and time of add"
        },
        "aiRecommendation": {
          "type": "string",
          "description": "The AI'd recommendation for the claim."
        },
        "member": {
          "$ref": "#/$defs/MemberDto"
        }
      },
      "required": [
        "addDatetime",
        "approvedAmount",
        "claimAmount",
        "claimNumber",
        "expenseDate",
        "id",
        "memberAccount",
        "reimbursementType",
        "status"
      ]
    },
    "MemberDto": {
      "type": "object",
      "properties": {
        "clientMemberId": {
          "type": "string",
          "description": "Unique client-side identifier for the member"
        },
        "firstName": {
          "type": "string",
          "description": "First name"
        },
        "lastName": {
          "type": "string",
          "description": "Last name"
        }
      },
      "required": [
        "clientMemberId"
      ]
    }
  }
}