{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/q2/json-schema/q2-customer-relationship-object200-response-schema.json",
  "title": "CustomerRelationshipObject200Response",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/q2-customer-relationship-api-openapi.yml#/components/schemas/CustomerRelationshipObject200Response",
  "allOf": [
    {
      "$ref": "#/$defs/0"
    },
    {
      "type": "object",
      "properties": {
        "data": {
          "type": "object",
          "properties": {
            "primaryCustomerId": {
              "$ref": "#/$defs/HelixId"
            },
            "relatedCustomerId": {
              "$ref": "#/$defs/HelixId"
            },
            "relationshipType": {
              "$ref": "#/$defs/RelationshipType"
            },
            "canOpenAccounts": {
              "type": "boolean"
            },
            "isPrimaryContact": {
              "type": "boolean"
            },
            "isControlPerson": {
              "type": "boolean"
            },
            "isBeneficialOwner": {
              "type": "boolean"
            },
            "beneficialOwnerPercentage": {
              "type": "number",
              "format": "decimal"
            },
            "title": {
              "type": "string",
              "maxLength": 100
            },
            "externalAccountAccessType": {
              "$ref": "#/$defs/ExternalAccountAccessType"
            }
          }
        }
      }
    }
  ],
  "$defs": {
    "ExternalAccountAccessType": {
      "type": "string",
      "enum": [
        "FULL",
        "RDLY",
        "ACH",
        "NONE"
      ]
    },
    "HelixId": {
      "type": "integer",
      "format": "int32",
      "minimum": 1
    },
    "RelationshipType": {
      "type": "string",
      "enum": [
        "Signer",
        "Owner",
        "NonTransactional",
        "BeneficialOwner",
        "Trustee",
        "SuccessorTrustee",
        "Guardian",
        "Conservator",
        "Executor",
        "Agent",
        "PowerOfAttorney",
        "Custodian",
        "Administrator",
        "Fiduciary"
      ]
    }
  }
}