{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/curacel/json-schema/curacel-customer-business-schema.json",
  "title": "Business",
  "x-generated": "2026-11-30",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/_original/curacel-openapi-openapi.yml#/components/schemas/customerBusiness",
  "type": "object",
  "required": [
    "customer_type",
    "business_name",
    "email",
    "country",
    "residential_address",
    "description",
    "registration_number",
    "tin",
    "birth_date",
    "registration_certificate",
    "id_card",
    "id_number",
    "id_expiry"
  ],
  "properties": {
    "customer_type": {
      "type": "string",
      "enum": [
        "business"
      ],
      "description": "Must be `business` to create a business 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."
    },
    "business_name": {
      "type": "string"
    },
    "email": {
      "type": "string",
      "format": "email",
      "description": "Business email address. It must be unique for your account when you do not send `ref`."
    },
    "phone": {
      "type": [
        "string",
        "null"
      ],
      "description": "Business phone number. Required for partners onboarded on or after 1 August 2023."
    },
    "description": {
      "type": "string",
      "description": "Description of the business."
    },
    "residential_address": {
      "type": "string",
      "description": "Address of the business"
    },
    "country": {
      "type": "string",
      "description": "ISO 3166-1 alpha-2 code of the business country, for example `NG`, `KE` or `GH`."
    },
    "state": {
      "type": [
        "string",
        "null"
      ],
      "description": "State of the business address"
    },
    "city": {
      "type": [
        "string",
        "null"
      ],
      "description": "City of the business address"
    },
    "registration_number": {
      "type": "string",
      "description": "Business registration number"
    },
    "tin": {
      "type": "string",
      "description": "Tax Identification Number (TIN) of the business"
    },
    "registration_certificate": {
      "type": "string",
      "format": "binary",
      "description": "Proof of business registration (file)"
    },
    "memart": {
      "type": "string",
      "format": "binary",
      "description": "Memorandum and Articles of Association (file). Required when `country` is `NG`."
    },
    "birth_date": {
      "type": "string",
      "format": "date",
      "description": "Date of birth of the director whose ID you upload, in `YYYY-MM-DD` format. The director must be at least 18 years old."
    },
    "id_card": {
      "type": "string",
      "format": "binary",
      "description": "ID card of one director (file)"
    },
    "id_type": {
      "type": [
        "string",
        "null"
      ],
      "enum": [
        "driversLicense",
        "internationalPassport",
        "votersCard",
        "nimc"
      ],
      "description": "Type of ID"
    },
    "id_number": {
      "type": "string",
      "description": "Number of the ID"
    },
    "id_expiry": {
      "type": "string",
      "format": "date",
      "description": "Expiry date of the ID in `YYYY-MM-DD` format. It must be today or a later date."
    }
  }
}