{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/super-payments/main/json-schema/super-payments-create-customer20260401-request-dto-schema.json",
  "title": "CreateCustomer20260401RequestDto",
  "x-generated": "2026-10-12",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/super-payments-customer-api-openapi.yml#/components/schemas/CreateCustomer20260401RequestDto",
  "type": "object",
  "properties": {
    "externalReference": {
      "type": "string",
      "minLength": 1
    },
    "brandId": {
      "type": "string",
      "format": "uuid"
    },
    "metadata": {
      "type": [
        "object",
        "null"
      ],
      "additionalProperties": {
        "type": "string",
        "pattern": "^[^\\r\\n\\t\\b\\f\\v]+$",
        "maxLength": 200
      }
    },
    "firstName": {
      "type": [
        "string",
        "null"
      ],
      "maxLength": 255,
      "minLength": 1
    },
    "lastName": {
      "type": [
        "string",
        "null"
      ],
      "maxLength": 255,
      "minLength": 1
    },
    "emailAddress": {
      "type": [
        "string",
        "null"
      ],
      "format": "email"
    },
    "phoneNumber": {
      "type": [
        "string",
        "null"
      ],
      "maxLength": 20,
      "pattern": "^\\+?[\\d\\s\\-().]+$"
    }
  },
  "required": [
    "externalReference",
    "brandId"
  ]
}