{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/lynx/json-schema/lynx-member-contribution-request-detail-response-schema.json",
  "title": "MemberContributionRequestDetailResponse",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/lynx-transactions-api-openapi.yml#/components/schemas/MemberContributionRequestDetailResponse",
  "type": "object",
  "properties": {
    "member": {
      "$ref": "#/$defs/MemberDTO"
    },
    "clientOrg": {
      "$ref": "#/$defs/ClientOrgDTO"
    },
    "memberContributionRequest": {
      "$ref": "#/$defs/MemberContributionDetailResponseDTO"
    }
  },
  "required": [
    "clientOrg",
    "member",
    "memberContributionRequest"
  ],
  "$defs": {
    "ClientOrgDTO": {
      "type": "object",
      "properties": {
        "name": {
          "type": "string",
          "description": "The name of the client organization"
        }
      },
      "required": [
        "name"
      ]
    },
    "MemberAccountDTO": {
      "type": "object",
      "properties": {
        "accountName": {
          "type": "string",
          "description": "A name for this account"
        },
        "accountType": {
          "type": "string",
          "description": "Type of account"
        },
        "productName": {
          "type": "string",
          "description": "The name of the product"
        },
        "lastFourAccountNumber": {
          "type": "string",
          "description": "The last four digits of the bank account number"
        }
      }
    },
    "MemberBankAccountDTO": {
      "type": "object",
      "properties": {
        "accountName": {
          "type": "string",
          "description": "Name of the account"
        },
        "routingNumber": {
          "type": "string",
          "description": "The account routing number (9 Digits, numeric)"
        },
        "lastFourAccountNumber": {
          "type": "string",
          "description": "The last four digits of the bank account number"
        }
      }
    },
    "MemberContributionDetailResponseDTO": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string",
          "format": "uuid",
          "description": "Internal unique identifier for the monetary transaction"
        },
        "contributionDate": {
          "type": "string",
          "format": "date",
          "description": "Date on which this contribution applies"
        },
        "direction": {
          "type": "string",
          "description": "Debit vs. Credit"
        },
        "amount": {
          "type": "number",
          "description": "Dollar amount of the contribution request."
        },
        "status": {
          "type": "string",
          "description": "Status of this transaction"
        },
        "statusReason": {
          "type": "string",
          "description": "The reason for a particular status"
        },
        "memberAccount": {
          "$ref": "#/$defs/MemberAccountDTO"
        },
        "referenceIdentifier": {
          "type": "string",
          "description": "Transaction reference identifier"
        },
        "category": {
          "type": "string",
          "description": "Describes the transaction category. Possible values are: CONTRIBUTION, DISBURSEMENT, REDEMPTION, TRANSFER, DEPOSIT, WITHDRAWAL, CORPORATE_ACTION, CARD, ADJUSTMENT, RETURN, FEE, and MEMBER_FEE_REVENUE"
        },
        "type": {
          "type": "string",
          "description": "Additional transaction type. Some possible values are listed below; to view the full list refer to the documentation. MemberContribution, ClientOrgContribution, Incentive, Payroll, Cashback, Refund, Reimbursement, MemberPurchase, TransferPointsToDollars, MemberTransfer, Closed, ReceivedAchTransaction, ReceivedWireTransaction."
        },
        "shortMemo": {
          "type": "string",
          "description": "10 character memo associated to the transaction"
        },
        "longMemo": {
          "type": "string",
          "description": "100 character memo associated to the transaction"
        },
        "counterpartyAccount": {
          "$ref": "#/$defs/MemberBankAccountDTO"
        },
        "correctionIndicator": {
          "type": "boolean",
          "description": "Indicates whether the transaction is a correction"
        },
        "taxYear": {
          "type": "string",
          "description": "Tax year to which a contribution or limit applies"
        },
        "creationDate": {
          "type": "string",
          "format": "date-time",
          "description": "Date when the record was created"
        }
      }
    },
    "MemberDTO": {
      "type": "object",
      "properties": {
        "clientMemberId": {
          "type": "string",
          "description": "Unique client-side identifier for the member"
        }
      },
      "required": [
        "clientMemberId"
      ]
    }
  }
}