{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/curlec/json-schema/curlec-stakeholder-schema.json",
  "title": "Stakeholder",
  "description": "A business owner or director associated with a Linked Account. Only one stakeholder is allowed per Route Linked Account. Prefix: sth_",
  "x-generated": "2026-11-04",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/curlec-linked-accounts-api-openapi.yml#/components/schemas/Stakeholder",
  "type": "object",
  "properties": {
    "id": {
      "type": "string",
      "description": "Stakeholder ID. Prefix: sth_"
    },
    "entity": {
      "type": "string",
      "enum": [
        "stakeholder"
      ]
    },
    "name": {
      "type": "string",
      "description": "Full name of the stakeholder."
    },
    "email": {
      "type": "string",
      "description": "Email address."
    },
    "percentage_ownership": {
      "type": "number",
      "description": "Ownership percentage (0-100)."
    },
    "relationship": {
      "type": "object",
      "properties": {
        "director": {
          "type": "boolean",
          "description": "True if the stakeholder is a company director."
        },
        "executive": {
          "type": "boolean",
          "description": "True if the stakeholder is an executive."
        }
      }
    },
    "phone": {
      "type": "object",
      "properties": {
        "primary": {
          "type": "object",
          "properties": {
            "number": {
              "type": "string"
            },
            "country_code": {
              "type": "string"
            }
          }
        },
        "secondary": {
          "type": "object",
          "properties": {
            "number": {
              "type": "string"
            },
            "country_code": {
              "type": "string"
            }
          }
        }
      }
    },
    "addresses": {
      "type": "object",
      "properties": {
        "residential": {
          "type": "object",
          "properties": {
            "street": {
              "type": "string"
            },
            "city": {
              "type": "string"
            },
            "state": {
              "type": "string"
            },
            "postal_code": {
              "type": "string"
            },
            "country": {
              "type": "string"
            }
          }
        }
      }
    },
    "kyc": {
      "type": "object",
      "properties": {
        "pan": {
          "type": "string",
          "description": "Individual PAN. 4th character must be 'P'."
        }
      }
    },
    "notes": {
      "$ref": "#/$defs/Notes"
    },
    "created_at": {
      "type": "integer"
    }
  },
  "$defs": {
    "Notes": {
      "type": "object",
      "description": "Key-value pairs for storing custom metadata. Maximum 15 pairs. Each key and value must not exceed 256 characters.",
      "additionalProperties": {
        "type": "string"
      },
      "maxProperties": 15
    }
  }
}