{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/curacel/json-schema/curacel-customer-individual-schema.json",
  "title": "Individual",
  "x-generated": "2026-11-30",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/_original/curacel-openapi-openapi.yml#/components/schemas/CustomerIndividual",
  "type": "object",
  "required": [
    "first_name",
    "last_name",
    "email"
  ],
  "properties": {
    "customer_type": {
      "type": [
        "string",
        "null"
      ],
      "enum": [
        "individual"
      ],
      "default": "individual",
      "description": "Omit this field, or set it to `individual`, to create an individual customer."
    },
    "ref": {
      "type": [
        "string",
        "null"
      ],
      "maxLength": 150,
      "description": "Your unique identifier for the customer as it exists on your database. It must be unique for your account. If you omit it, Curacel generates one. This would be used to identify this customer in all other operations."
    },
    "first_name": {
      "type": "string",
      "description": "Letters, numbers, dashes and underscores only. Spaces are not allowed."
    },
    "last_name": {
      "type": "string",
      "description": "Letters, numbers, dashes and underscores only. Spaces are not allowed."
    },
    "middle_name": {
      "type": [
        "string",
        "null"
      ]
    },
    "sex": {
      "type": [
        "string",
        "null"
      ],
      "enum": [
        "M",
        "F"
      ],
      "description": "Must be either M or F"
    },
    "birth_date": {
      "type": [
        "string",
        "null"
      ],
      "format": "date",
      "description": "Customer's date of birth in `YYYY-MM-DD` format. The customer must be at least 18 years old. Required for partners onboarded on or after 1 August 2023."
    },
    "email": {
      "type": "string",
      "format": "email",
      "description": "Customer's email address. It must be unique for your account when you do not send `ref`."
    },
    "phone": {
      "type": [
        "string",
        "null"
      ],
      "description": "Customer's phone number. Required for partners onboarded on or after 1 August 2023."
    },
    "occupation": {
      "type": [
        "string",
        "null"
      ]
    },
    "specialty": {
      "type": [
        "string",
        "null"
      ],
      "description": "The specialty of the policy holder"
    },
    "state_of_origin": {
      "type": [
        "string",
        "null"
      ]
    },
    "nationality": {
      "type": [
        "string",
        "null"
      ]
    },
    "residential_address": {
      "type": [
        "string",
        "null"
      ],
      "description": "Customer's home address. Required for partners onboarded on or after 1 August 2023. Also required to buy credit life products."
    },
    "town": {
      "type": [
        "string",
        "null"
      ]
    },
    "city": {
      "type": [
        "string",
        "null"
      ]
    },
    "state": {
      "type": [
        "string",
        "null"
      ]
    },
    "country": {
      "type": [
        "string",
        "null"
      ]
    },
    "bvn": {
      "type": [
        "string",
        "null"
      ],
      "pattern": "^[0-9]+$",
      "description": "Bank Verification Number. Digits only. This KYC field is optional."
    },
    "proof_of_address": {
      "type": [
        "object",
        "null"
      ],
      "required": [
        "type",
        "url"
      ],
      "properties": {
        "type": {
          "type": "string",
          "description": "The type of proof of address e.g Electricity bill"
        },
        "url": {
          "type": "string",
          "format": "url",
          "description": "A publicly available URL to the customer's proof of address file"
        }
      },
      "description": "The proof of the customer's address. This KYC field is optional. When you send it, both `type` and `url` are required. The type can be any string that describes the document. The url must be publicly accessible when you make this request, because Curacel copies and stores the file for insurers to view."
    },
    "next_of_kin_name": {
      "type": [
        "string",
        "null"
      ],
      "description": "The name of the customer's next of kin. Required to buy credit life products."
    },
    "next_of_kin_phone": {
      "type": [
        "string",
        "null"
      ],
      "description": "Phone number of the customer's next of kin. Required to buy credit life products."
    },
    "id_card": {
      "type": [
        "string",
        "null"
      ],
      "format": "binary",
      "description": "ID card of the customer. To upload it, send the request as `multipart/form-data`. When you upload it, `id_number` and `id_expiry` are required."
    },
    "id_type": {
      "type": [
        "string",
        "null"
      ],
      "enum": [
        "driversLicense",
        "internationalPassport",
        "votersCard",
        "nimc"
      ],
      "description": "Type of ID"
    },
    "id_number": {
      "type": [
        "string",
        "null"
      ],
      "description": "Number of the ID. Required when you upload `id_card`."
    },
    "id_expiry": {
      "type": [
        "string",
        "null"
      ],
      "format": "date",
      "description": "Expiry date of the ID in `YYYY-MM-DD` format. It must be today or a later date. Required when you upload `id_card`."
    }
  }
}