{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/currencycloud/main/json-schema/currencycloud-person-schema.json",
  "title": "person",
  "x-generated": "2026-10-12",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/currencycloud-people-api-openapi.yml#/components/schemas/person",
  "type": "object",
  "properties": {
    "id": {
      "type": "string"
    },
    "form_id": {
      "type": "string"
    },
    "document_ids": {
      "type": "array",
      "description": "List of IDs for any uploaded supporting documents.",
      "items": {
        "type": "string"
      }
    },
    "roles": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "first_name": {
      "type": "string"
    },
    "middle_name": {
      "type": [
        "string",
        "null"
      ]
    },
    "last_name": {
      "type": "string"
    },
    "dob": {
      "type": [
        "string",
        "null"
      ],
      "format": "date"
    },
    "phone_number": {
      "type": [
        "string",
        "null"
      ]
    },
    "email": {
      "type": [
        "string",
        "null"
      ]
    },
    "ownership_percentage": {
      "type": "number",
      "minimum": 0,
      "maximum": 100
    },
    "id_number": {
      "type": [
        "string",
        "null"
      ]
    },
    "home_country": {
      "type": "string"
    },
    "passport_number": {
      "type": [
        "string",
        "null"
      ]
    },
    "passport_country_of_issue": {
      "type": [
        "string",
        "null"
      ]
    },
    "personal_address": {
      "type": "object",
      "properties": {
        "city": {
          "type": "string"
        },
        "street": {
          "type": "string"
        },
        "country": {
          "type": "string"
        },
        "postal_code": {
          "type": "string"
        },
        "apartment_number": {
          "type": [
            "string",
            "null"
          ]
        },
        "building_name": {
          "type": [
            "string",
            "null"
          ]
        },
        "building_number": {
          "type": [
            "string",
            "null"
          ]
        },
        "state_or_province": {
          "type": [
            "string",
            "null"
          ]
        }
      }
    },
    "created_at": {
      "type": "string",
      "format": "date-time"
    },
    "updated_at": {
      "type": "string",
      "format": "date-time"
    }
  },
  "required": [
    "id",
    "roles",
    "first_name",
    "last_name",
    "home_country"
  ]
}