{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/q2/json-schema/q2-account-beneficiary-replace200-response-schema.json",
  "title": "AccountBeneficiaryReplace200Response",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/q2-account-beneficiary-api-openapi.yml#/components/schemas/AccountBeneficiaryReplace200Response",
  "allOf": [
    {
      "$ref": "#/$defs/0"
    },
    {
      "type": "object",
      "properties": {
        "data": {
          "type": "object",
          "properties": {
            "customerId": {
              "$ref": "#/$defs/HelixId"
            },
            "accountId": {
              "$ref": "#/$defs/HelixId"
            },
            "accountBeneficiaries": {
              "type": "array",
              "items": {
                "type": "object",
                "properties": {
                  "customerBeneficiaryId": {
                    "$ref": "#/$defs/HelixId"
                  },
                  "beneficiaryPosition": {
                    "type": [
                      "integer",
                      "null"
                    ],
                    "description": "Position or order of this beneficiary on the account."
                  },
                  "distributionPercentage": {
                    "type": [
                      "integer",
                      "null"
                    ],
                    "minimum": 0,
                    "maximum": 100,
                    "description": "Whole-number percentage of the account balance to distribute to this beneficiary."
                  },
                  "distributionDescription": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "description": "Free-form description of the distribution."
                  },
                  "distributionType": {
                    "$ref": "#/$defs/DistributionType"
                  },
                  "isActive": {
                    "type": "boolean"
                  }
                }
              }
            }
          }
        }
      }
    }
  ],
  "$defs": {
    "DistributionType": {
      "type": [
        "string",
        "null"
      ],
      "description": "The method used to distribute the account balance to this beneficiary. Accepted values: Percentage, DescriptionOnly",
      "enum": [
        "Percentage",
        "DescriptionOnly"
      ]
    },
    "HelixId": {
      "type": "integer",
      "format": "int32",
      "minimum": 1
    }
  }
}