{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/curlec/json-schema/curlec-partner-stakeholder-schema.json",
  "title": "PartnerStakeholder",
  "description": "A stakeholder (director/executive) associated with a sub-merchant account. Multiple stakeholders allowed per account (unlike Route which allows only 1).",
  "x-generated": "2026-11-04",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/curlec-partner-stakeholders-api-openapi.yml#/components/schemas/PartnerStakeholder",
  "type": "object",
  "properties": {
    "id": {
      "type": "string",
      "description": "Stakeholder ID with prefix sth_"
    },
    "entity": {
      "type": "string",
      "enum": [
        "stakeholder"
      ]
    },
    "name": {
      "type": "string"
    },
    "email": {
      "type": "string"
    },
    "percentage_ownership": {
      "type": "number"
    },
    "relationship": {
      "type": "object",
      "properties": {
        "director": {
          "type": "boolean"
        },
        "executive": {
          "type": "boolean"
        }
      }
    },
    "phone": {
      "type": "object",
      "properties": {
        "primary": {
          "type": "string"
        },
        "secondary": {
          "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"
        }
      }
    },
    "notes": {
      "type": "object"
    }
  }
}